Quantcast
Channel: Backup – Windows and Windows Server forum
Viewing all articles
Browse latest Browse all 3323

The operation was stopped. The parameter is incorect.

$
0
0

I'm administering a network system which I built and installed for a local company.

I set up wbadmin to backup the server (Windows Server 2012) to a local computer and then move the files to a NAS drive. (wbadmin would not store the backup on the NAS).

All was working well until I installed another 2 hard drives (E:) on a raid controller to supplement the raid boot drives (C:).  I moved the server folders over to the E: drive and edited my batch program to include drive E: in the backup.

Since then the system generates an error stating that the operation has stopped. The parameter is incorrect.

I have Google'd this error for over a month now but to no avail.

I've shrunk the E: drive from 2Tb to less than 1Tb but no change.

I've rewritten the batch file to backup C: and then after the files have been moved onto the NAS to backup E:.  The C: drive backs up but then the error appears again when E: tries to back up.

Batch File: -

@echo off
setlocal
set currentdate=%date:/=-%
set target=\\Shop-PC\ServerBackup\
set log=%target%backup log %computername% %currentdate%.txt
set errorlog=%target%backup error log %computername% %currentdate%.txt
set backuptarget=%target%WindowsImageBackup\%computername%
set desiredtarget=%target%%computername% - %currentdate%
set nastarget=\\NAS\ServerBackup\Saturday

(
 wbadmin start backup -backupTarget:%target% -include:c:\,e:\ -allCritical -systemState -user:CardrossAdmin -password:Cardros1895s -vssFull -quiet 
) 1>>"%log%" 2>>"%errorlog%"

RMDIR "%nastarget%" /S /Q 

MD "%nastarget%"

move "%backuptarget%" "%desiredtarget%"

xcopy %target% %nastarget% /E /C /H /Y

RMDIR "%desiredtarget%" /S /Q 

DEL "%target%\*.TXT"

endlocal

Any assistance in resolving this issue would be greatly appreciated.


Viewing all articles
Browse latest Browse all 3323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>