parsonjack
IS-IT--Management
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?
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?