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
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
Check this if it works for you...http://forums.techarena.in/server-scripting/796498.htm
the batch file throguh windows scheduler@Echo offrobocopy "C:\Pictures Working Directory" "D:\PhotoBackup" /E /ETA /Z /PURGEGoto Defrag:Defragdefrag c:defrag d:Goto Done:DoneEcho DonePause save the aboe code as .bat and then schedule in windows tasks.Hope this works!Cheers