Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NtBackup from a batch file

Status
Not open for further replies.

TKinton

IS-IT--Management
Apr 16, 2002
38
GB
Not sure how useful this will be to you guys, but...

when trying to run ntbackup from a batch file make sure to include the .exe at the end. I have been crawling the web for sample batch files and scratching my head over why they wouldn't work.

I finally worked it out and came up with the following

ntbackup.exe backup c:\windows\system /t normal /hc:eek:n /d "Backup1" /l "c:\backup.log"

ntbackup.exe eject

where the path is what is backed up, /t {type} gives the type of backup (normal, copy, differential, incremental, daily), /hc:{on, off) toggles hardwar compression, /d "" labels the tape and /l tells ntbackup to log to the specified file.

Further switches and a more indepth look at this can be found at
You'll notice that the script above is theirs with the .exe extentions.

TTFN

T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top