Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird SCOPY stuff going on....

Status
Not open for further replies.

parsonjack

IS-IT--Management
Apr 28, 2004
29
GB
hi,

we use scopy commands in a batch file to secure data on a single server to another location.

there are 5 scopy commands in the batch, each copying a separate drive (E,F,H,I & J) to another server. every time we run the batch it only copys the first 2 drives in the list - even if we move the order around it only ever copies the first two. the logging has no errors.

del C:\NETBACKUP\sysprev.log
ren C:\NETBACKUP\netbackup.log sysprev.log
scopy I:\ \\server1\scopy\I /o /a /s >>c:\netbackup\netbackup.log
If not errorlevel 0 goto error
scopy J:\ \\server1\scopy\J /o /a /s >>c:\netbackup\netbackup.log
If not errorlevel 0 goto error
scopy E:\ \\server1\scopy\E /o /a /s >>c:\netbackup\netbackup.log
If not errorlevel 0 goto error
scopy F:\ \\server1\scopy\F /o /a /s >>c:\netbackup\netbackup.log
If not errorlevel 0 goto error
scopy H:\ \\server1\scopy\H /o /a /s >>c:\netbackup\netbackup.log
goto exit
:error
echo Command exited with an error >>c:\netbackup\netbackup.log
:exit


anyone know why?
 
do you run this batch file as a sched task? If so, have you tried running it manually?
 
yep the batch is scheduled and we have tried running manually. once the second scopy command has completed it just bombs out..no errors..no messages. we can run all the scopy commands individually with no problem...but i cant afford the overtime to pay someone to sit here all night and do that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top