Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Scheduling Robocopy to run

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

856 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