Lambino81
asked on
Scheduling Robocopy to run
Hi,
I am attempting to run robocopy to in effect archive data older than a year. I am having problems with scheduling though, as I get invalid parameter /SOON.
I am running -
ROBOCOPY "\\Server\Share\Folder" "\\Server2\Share\Folder" /E /Z /MOV /MINAGE:365 /V /Log:"C:\RCLog.txt" /SOON: 1030 /SAVE:"C:\Archive.rcj"
I'm pretty confident that it is OK, except the /SOON command, as I have not done this before, I'm not sure on how to use the command. I have also seen references to /AT, but I had the same invalid parameter with that.
Please Help,
Regards
A
I am attempting to run robocopy to in effect archive data older than a year. I am having problems with scheduling though, as I get invalid parameter /SOON.
I am running -
ROBOCOPY "\\Server\Share\Folder" "\\Server2\Share\Folder" /E /Z /MOV /MINAGE:365 /V /Log:"C:\RCLog.txt" /SOON: 1030 /SAVE:"C:\Archive.rcj"
I'm pretty confident that it is OK, except the /SOON command, as I have not done this before, I'm not sure on how to use the command. I have also seen references to /AT, but I had the same invalid parameter with that.
Please Help,
Regards
A
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
In the properties of the task, you just add the arguments the exact same way you'd do it from the command line, for example like this:
"C:\Program Files\Windows Resource Kits\Tools\robocopy.exe" "\\Server\Share\Folder" "\\Server2\Share\Folder" /E /Z /MOV /MINAGE:365 /V /Log:"C:\RCLog.txt" /JOB:"C:\Archive.rcj"
Note robocopy's "/L" switch, which will only simulate the copy and log everything as usual, but it won't copy anything for real.
"C:\Program Files\Windows Resource Kits\Tools\robocopy.exe" "\\Server\Share\Folder" "\\Server2\Share\Folder" /E /Z /MOV /MINAGE:365 /V /Log:"C:\RCLog.txt" /JOB:"C:\Archive.rcj"
Note robocopy's "/L" switch, which will only simulate the copy and log everything as usual, but it won't copy anything for real.
ASKER
How do you tell Scheduled Tasks to run the saved job that I created with Robocopy earlier?
I can get RC to launch at a specified time with no problems, but it wont copy anything as its not rec'ing any of the Switches or SD / DD.
Thanks,
Alan