logo

2008 server job scheduler to run robocopy (Windows Server)
FRED SHIKE posted at Thursday, April 23, 2009 3:56 PM

Trying to schedule a job using the job scheduler on a microsoft  2008 server. Below is the command  I am trying to run. It works manually on the command prompt but will not work in the job scheduler.  Drive z: is a mapped drive on the backup server, the actual drive letter is d:. I am trying to backup a shared drive on  the main server to a shared drive on the backup server every nightly.  

   robocopy d:\shared\sus\ z:\\valley2\sqlbackups  /copyall

 

      

  

Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0
Re::2008 server job scheduler to run robocopy
egg egg provided a rated reply to FRED SHIKE on Thursday, April 23, 2009 10:15 PM

Check this if it works for you...

http://forums.techarena.in/server-scripting/796498.htm
Reply    Reply Using Power Editor
Having around 7 years of experience in designing and implementing software products including windows, console, service oriented and ofcourse predominantly on Web with .Net, XML, Javascript, Oracle, SQL Server
  Rank Winnings Points
February 5 $94.00 116
January 4 $100.00 362

create a .bat file and then execute
Venkat K replied to FRED SHIKE on Thursday, April 23, 2009 10:57 PM

the batch file throguh windows scheduler
@Echo off
robocopy "C:\Pictures Working Directory" "D:\PhotoBackup" /E /ETA /Z /PURGE
Goto Defrag
:Defrag
defrag c:
defrag d:

Goto Done
:Done
Echo Done
Pause 

save the aboe code as .bat and then schedule in windows tasks.

Hope this works!
Cheers
Reply    Reply Using Power Editor
  Rank Winnings Points
February 19 $0.00 13
January 25 $0.00 15


Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum

If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application.
Ask Question In Chat Chaos










  $1000 Contest    [)ia6l0 iii - $228  |  Jonathan VH - $161  |  Huggy Bear - $135  |  F Cali - $95  |  egg egg - $94  |  more Advertise  |  Privacy  |   (c) 2010