Scheduled task unsure what is happening
I am having trouble with a scheduled backup on Windows Server 2008 R2.
I have a scheduled task created in the command prompt with the following syntax: schtasks /create / sc weekly /mo 2 /d sun /tn biweeklyserverOSbackup /rl highest /st 03:00 tr "wbadmin start backup -backuptarget:\\drobo-fs\drobo\serverOSbackup 2\ -include:c:
-nonrecurseinclude:c: -allcritical -systemstate -noverify -user:***** -password:********* -noinheritacl -vssfull -quiet
The command prompt tells me the task is successfully created. To test the task I attempted to run it manually with the following syntax: schtasks /run /tn biweeklyserverOSbackup
At this point another command prompt type window opens labeled taskeng.exe and a ton of text rapidly scrolls through in about 5 seconds. Then the original command prompt tells me "SUCCESS: Attempted to run the scheduled task "biweeklyserverOSbackup"
Success??? IT DIDN'T RUN THE BACKUP!! Why not?
Help please.
July 17th, 2012 3:00pm
Hello,
schtasks /create / sc weekly /mo 2 /d sun /tn biweeklyserverOSbackup /rl highest /st 03:00 tr "wbadmin start backup -backuptarget:\\drobo-fs\drobo\serverOSbackup 2\ -include:c: -nonrecurseinclude:c: -allcritical -systemstate -noverify -user:***** -password:*********
-noinheritacl -vssfull -quiet
Schtasks
http://technet.microsoft.com/en-us/library/cc725744(v=WS.10).aspx
According to the Microsoft KB above, the switch /tr should be followed with a scrip, batch or executable. BTW, why not use the build-in Windows Server Backup tool to schedule automatic backup?
Configuring Automatic Backups
http://technet.microsoft.com/en-us/library/cc731517.aspx
Thanks
Zhang
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2012 2:43am