mikeleahy
asked on
xcopy
hi i have a customer who backs up using tape every night. they also have a spare server and would like to copy the data to that server at night as an extra backup. xcopy takes too long and is still running in the morning. is there any other way to do this??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi
i have created a batch file for testing
robocopy c:\web c:\test /s /e
if i run it from the command prompt it runs in 2-3 seconds, if i kick off the batch file it goes on for ages and i just stop it
any ideas why
i have created a batch file for testing
robocopy c:\web c:\test /s /e
if i run it from the command prompt it runs in 2-3 seconds, if i kick off the batch file it goes on for ages and i just stop it
any ideas why
Not without looking at the batch...
ASKER
that is the bath line
robocopy c:\web c:\test /s /e
robocopy c:\web c:\test /s /e
That's all that's in the batch?
Try adding the /log:C:\LogFile.txt
option to the end.
Try adding the /log:C:\LogFile.txt
option to the end.
ASKER
im just doing a test like
If that's all that's in the batch, then you 'may' see an error on the console - if not, then using the log option will put the data into a file for examination (in case you have @echo off in your batch).
ASKER
doesnt work
ASKER
if not using batch files, is there any other way i can scheduly a robocopy
From a command line...
schtasks /create /ru USERNAME /rp PASSWORD /sc Daily /st 01:00:00 /tn RC_Copy /tr "cmd /c robocopy c:\source c:\target /s" <Enter>
schtasks /create /ru USERNAME /rp PASSWORD /sc Daily /st 01:00:00 /tn RC_Copy /tr "cmd /c robocopy c:\source c:\target /s" <Enter>
ASKER