Advertisement

09.18.2007 at 12:03PM PDT, ID: 22836931 | Points: 250
[x]
Attachment Details

NTBackup generates 0x1f error when using scheduler

Asked by InvoiceInsight in Windows Batch Scripting, Windows 2003 Server

Tags: , , ,

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\Atlas01DailyBackup.bks" /a /v:yes /J "Full Backup for %tmpDate%" /m normal /hc:off /l:f /f "\\server_name\directory\volume\backed_up_server_name_%tmpDate%.bkf"

=====================
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
[+][-]09.18.2007 at 12:09PM PDT, ID: 19915686

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 12:20PM PDT, ID: 19915792

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 12:26PM PDT, ID: 19915833

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 12:33PM PDT, ID: 19915900

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 01:10PM PDT, ID: 19916178

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 01:11PM PDT, ID: 19916191

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 01:14PM PDT, ID: 19916218

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 01:24PM PDT, ID: 19916294

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 03:23PM PDT, ID: 19917040

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 08:31AM PDT, ID: 19956560

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 09:01AM PDT, ID: 19956787

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 09:11AM PDT, ID: 19956863

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.20.2008 at 02:50AM PDT, ID: 22528996

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628