NtBackup problem - Scheduled jobs dont run

  • Thread starter Thread starter Bartosz Wegrzyn
  • Start date Start date
B

Bartosz Wegrzyn

Hi,

I am using ntbackup to backup all data on the C,D drives to mapped
folder.
First, I created the backup job using the backup wizard.
As a backup location I selected mapped "Z" drive on which I backup
data from all servers. Then I copied the command from the run window
of the backup job to a file located on the Z: drive in the scripts
folder.

This is a bat file which contains this:
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"

Then I created another scheduled job which runs the bat file.
Unfortunately, for some reason it does not work.
The log of the scheduled tasks logs:
4.71.2195.6920"dns1full.job" (Script-dns1full.bat) 11/30/2004 12:46:22
AM ** WARNING **
Invalid working directory..
The specific error is:
0x00000003: The system cannot find the path specified.
Verify that the directory exists and try again.
"dns1full.job" (Script-dns1full.bat)
Started 11/30/2004 12:46:22 AM
"dns1full.job" (Script-dns1full.bat)
Finished 11/30/2004 12:46:22 AM
Result: The task completed with an exit code of (1).
[ ***** Most recent entry is above this line ***** ]

I dont know what the invalid directory is.
Also if I try to run the configured job itself the backup log
logs:Backup Status
The operation was not performed because the specified media cannot
be found.

----------------------


But what is funny is that when I run manually the bat file with this
command:
"
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"
"
it works without any problems.

Looks like thereis something that backup does not like, but what is
it?

Any ideas?

Bartosz Wegrzyn
 
Bartosz Wegrzyn said:
Hi,

I am using ntbackup to backup all data on the C,D drives to mapped
folder.
First, I created the backup job using the backup wizard.
As a backup location I selected mapped "Z" drive on which I backup
data from all servers. Then I copied the command from the run window
of the backup job to a file located on the Z: drive in the scripts
folder.

This is a bat file which contains this:
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"

Then I created another scheduled job which runs the bat file.
Unfortunately, for some reason it does not work.
The log of the scheduled tasks logs:
4.71.2195.6920"dns1full.job" (Script-dns1full.bat) 11/30/2004 12:46:22
AM ** WARNING **
Invalid working directory..
The specific error is:
0x00000003: The system cannot find the path specified.
Verify that the directory exists and try again.
"dns1full.job" (Script-dns1full.bat)
Started 11/30/2004 12:46:22 AM
"dns1full.job" (Script-dns1full.bat)
Finished 11/30/2004 12:46:22 AM
Result: The task completed with an exit code of (1).
[ ***** Most recent entry is above this line ***** ]

I dont know what the invalid directory is.
Also if I try to run the configured job itself the backup log
logs:Backup Status
The operation was not performed because the specified media cannot
be found.

----------------------


But what is funny is that when I run manually the bat file with this
command:
"
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"
"
it works without any problems.

Looks like thereis something that backup does not like, but what is
it?

Any ideas?

Bartosz Wegrzyn

The account you use for the backup job has most likely insufficient
access rights to z:\dns1.
 
Pegasus \(MVP\) said:
Bartosz Wegrzyn said:
Hi,

I am using ntbackup to backup all data on the C,D drives to mapped
folder.
First, I created the backup job using the backup wizard.
As a backup location I selected mapped "Z" drive on which I backup
data from all servers. Then I copied the command from the run window
of the backup job to a file located on the Z: drive in the scripts
folder.

This is a bat file which contains this:
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"

Then I created another scheduled job which runs the bat file.
Unfortunately, for some reason it does not work.
The log of the scheduled tasks logs:
4.71.2195.6920"dns1full.job" (Script-dns1full.bat) 11/30/2004 12:46:22
AM ** WARNING **
Invalid working directory..
The specific error is:
0x00000003: The system cannot find the path specified.
Verify that the directory exists and try again.
"dns1full.job" (Script-dns1full.bat)
Started 11/30/2004 12:46:22 AM
"dns1full.job" (Script-dns1full.bat)
Finished 11/30/2004 12:46:22 AM
Result: The task completed with an exit code of (1).
[ ***** Most recent entry is above this line ***** ]

I dont know what the invalid directory is.
Also if I try to run the configured job itself the backup log
logs:Backup Status
The operation was not performed because the specified media cannot
be found.

----------------------


But what is funny is that when I run manually the bat file with this
command:
"
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"
"
it works without any problems.

Looks like thereis something that backup does not like, but what is
it?

Any ideas?

Bartosz Wegrzyn

The account you use for the backup job has most likely insufficient
access rights to z:\dns1.


The account I am using has the same name and password that the account
on the server where the shared drive is located.
Both administrator passwords are the same.
 
Bartosz Wegrzyn said:
"Pegasus \(MVP\)" <[email protected]> wrote in message
Bartosz Wegrzyn said:
Hi,

I am using ntbackup to backup all data on the C,D drives to mapped
folder.
First, I created the backup job using the backup wizard.
As a backup location I selected mapped "Z" drive on which I backup
data from all servers. Then I copied the command from the run window
of the backup job to a file located on the Z: drive in the scripts
folder.

This is a bat file which contains this:
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"

Then I created another scheduled job which runs the bat file.
Unfortunately, for some reason it does not work.
The log of the scheduled tasks logs:
4.71.2195.6920"dns1full.job" (Script-dns1full.bat) 11/30/2004 12:46:22
AM ** WARNING **
Invalid working directory..
The specific error is:
0x00000003: The system cannot find the path specified.
Verify that the directory exists and try again.
"dns1full.job" (Script-dns1full.bat)
Started 11/30/2004 12:46:22 AM
"dns1full.job" (Script-dns1full.bat)
Finished 11/30/2004 12:46:22 AM
Result: The task completed with an exit code of (1).
[ ***** Most recent entry is above this line ***** ]

I dont know what the invalid directory is.
Also if I try to run the configured job itself the backup log
logs:Backup Status
The operation was not performed because the specified media cannot
be found.

----------------------


But what is funny is that when I run manually the bat file with this
command:
"
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"
"
it works without any problems.

Looks like thereis something that backup does not like, but what is
it?

Any ideas?

Bartosz Wegrzyn

The account you use for the backup job has most likely insufficient
access rights to z:\dns1.


The account I am using has the same name and password that the account
on the server where the shared drive is located.
Both administrator passwords are the same.

Add some simple diagnostics so that you can see what's going on!

1 @echo off
2 set folder=C:\Documents and Settings\Administrator\Local
Settings\Application Data\Microsoft\Windows NT\NTBackup\data
3 echo %date% %time% Start of job > c:\test.log
4 echo UserName=%UserName% >> c:\test.log
5 net use >> c:\test.log
6 md Z:\DNS1\TestFolder 1>>c:\test.log 2>>c:\test.err
7 md %Folder%\TestFolder 1>>c:\test.log 2>>c:\test.err
8 C:\WINNT\system32\NTBACKUP.EXE backup "@%Folder%\C_systemstate_data.bks"
/n "C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no /hc:off
/m normal /j "C_systemstate_data" /l:f /f "Z:\DNS1\C_systemstate_data.bkf"
1>>c:\test.log 2>>c:\test.err
9 echo %date% %time% End of job >> c:\test.log

Run the job, then examine the two log files. Remove the line numbers
before running the job!

Also: Your job details are held in a file on drive Z:. Who says that
drive Z: exists for your background job? It most likely does not?
Use UNC coding or store the job details on a local drive!
 
Pegasus \(MVP\) said:
Bartosz Wegrzyn said:
"Pegasus \(MVP\)" <[email protected]> wrote in message
Hi,

I am using ntbackup to backup all data on the C,D drives to mapped
folder.
First, I created the backup job using the backup wizard.
As a backup location I selected mapped "Z" drive on which I backup
data from all servers. Then I copied the command from the run window
of the backup job to a file located on the Z: drive in the scripts
folder.

This is a bat file which contains this:
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"

Then I created another scheduled job which runs the bat file.
Unfortunately, for some reason it does not work.
The log of the scheduled tasks logs:
4.71.2195.6920"dns1full.job" (Script-dns1full.bat) 11/30/2004 12:46:22
AM ** WARNING **
Invalid working directory..
The specific error is:
0x00000003: The system cannot find the path specified.
Verify that the directory exists and try again.
"dns1full.job" (Script-dns1full.bat)
Started 11/30/2004 12:46:22 AM
"dns1full.job" (Script-dns1full.bat)
Finished 11/30/2004 12:46:22 AM
Result: The task completed with an exit code of (1).
[ ***** Most recent entry is above this line ***** ]

I dont know what the invalid directory is.
Also if I try to run the configured job itself the backup log
logs:Backup Status
The operation was not performed because the specified media cannot
be found.

----------------------


But what is funny is that when I run manually the bat file with this
command:
"
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\C_systemstate_data.bks" /n
"C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no
/hc:off /m normal /j "C_systemstate_data" /l:f /f
"Z:\DNS1\C_systemstate_data.bkf"
"
it works without any problems.

Looks like thereis something that backup does not like, but what is
it?

Any ideas?

Bartosz Wegrzyn

The account you use for the backup job has most likely insufficient
access rights to z:\dns1.


The account I am using has the same name and password that the account
on the server where the shared drive is located.
Both administrator passwords are the same.

Add some simple diagnostics so that you can see what's going on!

1 @echo off
2 set folder=C:\Documents and Settings\Administrator\Local
Settings\Application Data\Microsoft\Windows NT\NTBackup\data
3 echo %date% %time% Start of job > c:\test.log
4 echo UserName=%UserName% >> c:\test.log
5 net use >> c:\test.log
6 md Z:\DNS1\TestFolder 1>>c:\test.log 2>>c:\test.err
7 md %Folder%\TestFolder 1>>c:\test.log 2>>c:\test.err
8 C:\WINNT\system32\NTBACKUP.EXE backup "@%Folder%\C_systemstate_data.bks"
/n "C_systemstate_data" /d "C_systemstate_data" /v:yes /r:no /rs:no /hc:off
/m normal /j "C_systemstate_data" /l:f /f "Z:\DNS1\C_systemstate_data.bkf"
1>>c:\test.log 2>>c:\test.err
9 echo %date% %time% End of job >> c:\test.log

Run the job, then examine the two log files. Remove the line numbers
before running the job!

Also: Your job details are held in a file on drive Z:. Who says that
drive Z: exists for your background job? It most likely does not?
Use UNC coding or store the job details on a local drive!


I did try to copy the script to local drive, but the same was going on.
Also I tried UNC, but this did not solve the problem.

I will try your script and will let you know.

Thanks
 
did you ever get this working?
I am having a similar problem and pulling my hair out trying to get it sorted.

Cheers
 
Back
Top