Solved

Scheduling Robocopy to run

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

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 83

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 Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now