I am using the following command in a batch script that is executed through a scheduled job:
=====================
Begin backup batch script
=====================
FOR /F "tokens=1,2 delims= " %%F IN ('date /t') Do Set tmpDate=%%G
FOR /F "tokens=1,2,3 delims=/" %%F IN ("%tmpDate%") Do Set tmpDate=%%F-%%G-%%H
ntbackup backup "@D:\BackUpPgm\Atlas01Dail
yBackup.bk
s" /a /v:yes /J "Full Backup for %tmpDate%" /m normal /hc:off /l:f /f "\\server_name\directory\v
olume\back
ed_up_serv
er_name_%t
mpDate%.bk
f"
=====================
End Backup batch script
=====================
When I run the batch file manually or log in an execute the scheduled job, it executes correctly. When I log out and wait for the scheduled job to run it always returns a 0x1f in the last result code.
I have logged in with the same credentials that I am using to execute the job in the scheduler to verify that it is not a permissions issue.
The application event log generates an 8017 event:
Event Type: Error
Event Source: NTBackup
Event Category: None
Event ID: 8017
Date: 9/18/2007
Time: 2:44:02 PM
User: N/A
Computer: server_name
Description:
NTBackup error: 'The operation failed. Consult the Backup Report for more details.'
The backup report states that it can not find the media to write to, which is odd, because it finds it when i logged in.
Can scheduler / ntbackup not handle UNC paths?
Start Free Trial