Task Scheduler not executing a job (starts and instantly stops)
Posted on 2007-03-28
I am attempting to use Task Scheduler on a Server 2003 to do backups to a drive on the network. The job runs fine if I right click and then click on "run" BUT it does not execute at all from within the Task Scheduler.
Started 3/28/2007 2:00:00 AM
Finished 3/28/2007 2:00:00 AM
Result: The task completed with an exit code of (0).
The batch job:
robocopy E:\robocopybackup09\ E:\robocopybackup10 /E /w:1 /r:3 /V /XO
rmdir E:\robocopybackup09 /S /Q
rename E:\robocopybackup08 robocopybackup09
rename E:\robocopybackup07 robocopybackup08
rename E:\robocopybackup06 robocopybackup07
rename E:\robocopybackup05 robocopybackup06
rename E:\robocopybackup04 robocopybackup05
rename E:\robocopybackup03 robocopybackup04
rename E:\robocopybackup02 robocopybackup03
rename E:\robocopybackup01 robocopybackup02
robocopy c:\LIVEAccessDBs\ "E:\robocopybackup01" /E /w:1 /r:3 /XD Windows /XD ClientApps /XF Pagefile.sys /XF NTUSER.DAT /V /XO /Purge
The idea is to have a slowly rotating set of backups and renaming is a much quicker option than doing multiple copies that would otherwise be required. Again, it works with "run" but not via the task scheduler.
I am setting this up via RDT but that shouldn't make any difference right? Use a member of the admin group as the user name and the correct password for that user.
Several other jobs run during the night with no problem. None run at the same time.