ntbackup command line

R

RC

I'm creating a .bat to run a backup job and it keeps failing. The event log
says that no media was specified. The job works fine if I load it to the
GUI. The 4mm DAT drive is specified in the GUI but that doesn't seem to
carry over to the command line. In the end all I want is a full C: backup
and the system state, overwriting whatever tape is in the drive. This is the
command from the .bat

ntbackup backup "@c:\backup\server.bks" /m normal /v:yes

Any ideas?
Thanks
RC
 
W

Wesley Vogel

The following examples show how to use the ntbackup command to back up files
and folders from the command prompt or by using a batch file.
http://www.microsoft.com/resources/...ocs/en-us/ntbackup_command_line_examples.mspx

Ntbackup
Perform backup operations at a command prompt or from a batch file using the
ntbackup command followed by various parameters.
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntbackup_command.mspx

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
K

Kerry Brown

RC said:
I'm creating a .bat to run a backup job and it keeps failing. The event
log says that no media was specified. The job works fine if I load it to
the GUI. The 4mm DAT drive is specified in the GUI but that doesn't seem
to carry over to the command line. In the end all I want is a full C:
backup and the system state, overwriting whatever tape is in the drive.
This is the command from the .bat

ntbackup backup "@c:\backup\server.bks" /m normal /v:yes

Any ideas?
Thanks
RC

Create the job with the GUI and schedule it to run sometime in the future.
Exit the GUI and open Scheduled Tasks. Copy the command line from scheduled
tasks to the script. Delete the scheduled task.

Kerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top