Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Scheduling Robocopy to run

Posted on 2008-06-10
3
Medium Priority
?
1,630 Views
Last Modified: 2008-06-10
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
0
Comment
Question by:Lambino81
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 500 total points
ID: 21749808
"soon" is an external scheduling command that was included in the W2k Resource Kit, it's not an option of robocopy.
Even if you have soon.exe installed, it wouldn't be of much use, because soon.exe is just a shortcut for the "at" command, and tasks scheduled using "at" will run in the System context, which doesn't have network credentials.
If you want to schedule robocopy, do it with the Scheduled Task from Control Panel, and use an account with the necessary permissions on the source and target servers. In addition, you should schedule this to run either on the target or on the source server, otherwise all copy operations will have to go through the network on the machine where you're scheduling this on.
For details about robocopy, check robocopy.doc in the W2k3 ResKit installation folder.
0
 

Author Comment

by:Lambino81
ID: 21749882
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
0
 
LVL 85

Expert Comment

by:oBdA
ID: 21750154
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.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question