To backup drive D: to file C:\backup.bkf, with job name "Backup Job 1" type the following at the command line:
ntbackup.exe backup D:\ /j "Backup Job 1" /f "C:\Backup.bkf"
For a tape backup, to create a backup job named "Backup Job 1" that backs up all the files and folders listed in the backup selection file c:\backup.bks to a tape drive, type:
ntbackup backup @C:\backup.bks /n "Media created 11/5/2001 at 1:25 PM" /d "Set created 11/5/2001 at 1:25 PM" /j "Backup Job 1" /p "4mm DDS"
Important
-
If you don’t specify options at the command prompt, they will default to those specified in the Backup application.
-
Before using the command line to perform backup operations, it is recommended that you use the user interface to create the initial backup selection file, settings and a scheduled task. You can then use that scheduled task to view the command syntax. Copy the information from the scheduled task, make any changes that are necessary to create a script or command line syntax, then delete the scheduled task if it is not needed otherwise.
-
You can use Backup to back up and restore data on FAT16, FAT32, or NTFS volumes. However, if you have backed up data from an NTFS volume, it is recommended that you restore the data to an NTFS volume of the same version to prevent losing data. Some file systems might not support all of the features of other file systems.
-
To back up and restore Microsoft SQL Server database files, it is recommended that you use the built-in backup and restore utilities that SQL has. For more information, see the Microsoft SQL Server documentation.
-
Some tape drives may not support hardware compression.
Notes
-
You can use Backup to back up and restore data on FAT16, FAT32, or NTFS volumes. However, if you have backed up data from an NTFS volume, it is recommended that you restore the data to an NTFS volume of the same version to prevent losing data. Some file systems might not support all of the features of other file systems.
-
To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.
-
To view the complete syntax for this command, at a command prompt, type:
ntbackup /?
-
If you do not specify the other Backup options, ntbackup will use the default values of the Backup program for the backup type, verification setting, logging level, hardware compression, and any other settings.
-
System State data contains most elements of a system's configuration, but it might not include all of the information that you require to recover your system from a failure. Therefore, it is recommended that you back up all boot and system volumes, including the System State, when you back up your system.
-
You can only back up the System State data on a local computer. You cannot back up the System State data on a remote computer.
-
Backup files usually have the extension .bkf. You can use any extension that you want, but it is highly recommended that you use .bkf, which has file associations that will ensure that the backup file is recognizable.
-
Backup operators and administrators can back up and restore encrypted files and folders without decrypting the files or folders.
-
If you have Windows Media Services running on your computer, and you want to back up the files associated with these services, see "Running Backup with Windows Media Services" in the Windows Media Services online documentation. You must follow the procedures outlined in the Windows Media Services online documentation before you can back up or restore files associated with Windows Media Services.