Scripting and automating backup jobs using NTbackup

This KB will show you how to automate the Microsoft build in Backup software NTbackup using a script.

 

Script 1:
This script use an existing pre configured job to backup to a tape drive:

ntbackup backup [systemstate]”@C:path to jobjobname.bks” /g /p “LTO ultrium”

 

/ p – “Tape drive name”
/G – Override tape

Script 2:
Backup specific folders to tap drive:

ntbackup backup systemstate “E:folder” “F:folder” /p “LTO ultrium” /d “Complete Backup” /um /hc:on

 

/hc – Uses hardware compression
/um -Use the first available media
/p – tape drive name

 

Microsoft NTbackup on the web
https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntbackup_command.mspx?mfr=true

CategoriesKB