Solved

Scheduling Robocopy to run

Posted on 2008-06-10
3
1,605 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 84

Accepted Solution

by:
oBdA earned 125 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 84

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Questions about DHCP migration 5 100
Windows 8.1 HP issues 11 62
Where can I find a virus scanner for XP SP2? 22 79
Want Win 10 Pro to search like Server 2010 or 2012 27 104
Learn about cloud computing and its benefits for small business owners.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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…

679 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