Link to home
Start Free TrialLog in
Avatar of Lambino81
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
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lambino81
Lambino81

ASKER

Thanks for your help with this, I guess that this is the problem with reading many different sources on a topic you're not familiar with :)

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
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.