JSI Tip 2710. Scheduled backup doesn't work when using different credentials?
August 14, 2000
When you schedule a backup to run with user credentials that are different from the currently logged on user, the scheduled job starts but the backup exits immediately?
If you go to Scheduled Tasks, the Last Result displays 0x2D.
If you logon as the scheduled user and run NTBackup interactively, the Tools / Report shows:
Skipped files in "NTNtbackupdata.bks" folder. Folder not found.
Only the user who scheduled the job has access to .bks file, as it is stored in their profile.
The solution is to store the .bks file in a location that each user has Read access to. If you use the example from tip 2265, you could change:
ntbackup.exe backup "@C:Documents and SettingsJerryLocal SettingsApplication DataMicrosoftWindows NTNTBackupdataALL.bks" /n "JSI001 %dtt%" /d "JSI001 %dtt%" /v:yes /r:no /rs:no /hc:on /m normal /j "%dtt%" /l:f /p "4mm DDS" /UM
to
ntbackup.exe backup "@C:BackupALL.bks" /n "JSI001 %dtt%" /d "JSI001 %dtt%" /v:yes /r:no /rs:no /hc:on /m normal /j "%dtt%" /l:f /p "4mm DDS" /UM
NOTE: Users in the Run As box in Scheduled Tasks need Read access to the scheduled executable and all associated files.
About the Author
You May Also Like