NT Syntax

NTBACKUP

Backup drives / folders to tape.
This page is for Windows 2000 and XP only - the Syntax for Windows NT 4 is here

Syntax Windows 2000:

    NTBACKUP backup [systemstate] "bks file name"  /J {"job name"} [options]
       [/um]

Syntax Windows XP:

    NTBACKUP backup [systemstate] "@bks file name" /J {"job name"} [options]
       [/SNAP:{on|off}]


options:

systemstate
  Back up the System State data. 
  This will also force the backup type to normal or copy.

@bks file name
  The name of the backup selection file (.bks file).
  In WinXP the at (@) character must precede this name.
  A backup selection file contains information on the files and folders 
  to be backed up. 
  You have to create the file using the GUI version of NT Backup.

/J {"job name"}
  The job name to be used in the log file 
  Describe the files and folders and the backup date-time.

/P {"pool name"}
  The media pool from which you want to use media. 
  Usually a subpool of the Backup media pool, such as 4mm DDS.
  If you select this you cannot use /A, /G, /F, or /T

/G {"guid name"}
  Overwrite or append to this tape. 
  Don't use with a media Pool (/P).

/T {"tape name"}
  Overwrite or append to this tape.
  Don't use with a media Pool (/P).

/A
  Perform an append operation. 
  Either "guid name" (/G) or "tape name" (/T) must be specified with this switch. 
  Don't use with a media Pool (/P).

/N {"media name"}
  The new tape name. Don't use with Append (/A).

/F {"file name"}
  Backup to a file - logical disk path and file name.
  Do not use with the switches: /P /G /T.

/D {"set description"}
  Label for each backup set

/DS {"server name"}
  Back up the directory service file for MS Exchange 5.5 server. 
  This is not needed/does not work with Exchange 2000 since Exchange 2000
  uses Active Directory.

/IS {"server name"}
  Back up the Information Store file for an MS Exchange 5.5 Server.

/V:{yes|no}
  Verify the data after the backup is complete.

/R:{yes|no}
  Restrict access to this tape to the Owner/AdministratorS

/L:{f|s|n}
  The type of log file: f=full, s=summary, n=none

/M {backup type}
  The backup type. One of: normal, copy, differential, incremental, or daily

/RS:{yes|no}
  Backs up the migrated data files located in Remote Storage. 
  The /RS command-line option is not required to back up the local Removable 
  Storage database (that contains the Remote Storage placeholder files). 
  When you backup the %systemroot% folder, Backup automatically backs up the 
  Removable Storage database as well.

/HC:{on|off}
  Use hardware compression, if available, on the tape drive.

/SNAP:{on|off}
  Is the backup is a volume shadow copy. Windows XP only.

/um
  Find the first available media, format it, and use for the current backup.
  Use with the /p switch to scan for available media pools. 
   This option is documented for Windows 2000 only. 
  This command is only for standalone tape devices (not tape loaders.)
  The /UM switch must be at the end of the command line.

Windows 2000
Under Windows 2000 the online help for NT Backup is incomplete - see Q300439 for corrections and examples.

"A hundred times I have thought that New York is a catastrophe...it is a beautiful catastrophe" - Le Corbusier

Related Commands:

RSM - Remote Storage Management - Eject tapes (Win2000)
Q300135 - Using the Windows 2000 Backup Wizard.
Q237310 - Manually Edit Ntbackup.exe Selection Script Files
Q260327 - NT Backup 2000 error codes.
Q300439 - List of NT Backup KB Articles
Undocumented Registry keys for NT Backup
AT - Schedule a command to run at a later time
COPY - Copy one or more files to another location
VERIFY - Verify that files have been saved
XCOPY - Copy files and folders

Equivalent Linux BASH command:

tar - Tape ARchiver



Simon Sheppard
SS64.com