Windows. ntbackup. Backup Tool Application

Source: Internet
Author: User

Run: ntbackup or run it using the command line. For details, see the official reference ....

Ntbackup

Execute the backup operation at the command prompt, or useNtbackupThe command is executed from the batch file.

Syntax

Ntbackup backup [systemstate]"@Filename. BKS "/J{"Jobname"}[/P{"Poolname"}] [/G{"Guidname"}] [/T{"Tapename"}] [/N{"Medianame"}] [/F{"Filename"}] [/D{"Setdescription"}] [/DS{"Servername"}] [/Is{"Servername"}] [/] [/V:{Yes|No}] [/R:{Yes|No}] [/L:{F|S|N}] [/M{Backuptype}] [/RS:{Yes|No}] [/HC:{On|Off}]

Parameters

Systemstate

Specifies the system status data to be backed up. When this option is selected, the backup type is forced to be normal or copied.

@Filename. BKS

Specifies the name of the backup option file (. BKS file) used for this backup operation. The @ character must be before the name of the backup option file. The backup option file contains information about the selected files and folders to be backed up. You must use the "backup" graphical user interface (GUI) version to create a file.

/J{"Jobname"}

Specifies the job name to be used in the backup report. The job name usually describes the files and folders that are backed up to the current backup job.

/P{"Poolname"}

Specify the Media Pool in which you want to use the media. This is usually a sub-pool of the backup media pool, such as 4mm DDS. If this option is selected, it cannot be used./,/G,/FOr/TCommand line options.

/G{"Guidname"}

Overwrite this tape or add it to this tape. Do not switch the same/P.

/T{"Tapename"}

Overwrite this tape or add it to this tape. Do not switch the same/P.

/N{"Medianame"}

Specify the new tape name. This switch cannot be the same/.

/F{"Filename"}

Logical Disk path and file name. The following switches cannot be used with this switch:/P/G/T.

/D{"Setdescription"}

Specify a tag for each backup set.

/DS{"Servername"}

Backs up directory service files for the specified Microsoft Exchange Server.

/Is{"Servername"}

Backup information storage file for the specified Microsoft Exchange Server.

/

Perform additional operations./GOr/TMust be used with this switch. Do not switch the same/P.

/V:{Yes | No}

Check for possible disk errors when copying files to a tape. This will significantly increase the time it takes to perform the backup.

/R:{Yes | No}

Restrict access to this tape to the owner or members of the Administrators group.

/L:{F | S | n}

Specify the log file type:F= All,S= Abstract,N= None (no log file is created ).

/M{Backuptype}

Specifies the Backup Type. Must be one of the following types: Normal, copy, difference, increment, and daily.

/RS:{Yes | No}

Back up the migration data file in "remote storage. No need to back up a local removable storage database (including a "remote storage" placeholder file)/RSCommand line options. When you back up the % SystemRoot % folder, the backup program automatically backs up the "Removable Storage" database.

/HC:{On | off}

If available, use hardware compression on the tape drive.

/M{Backuptype}

Specifies the Backup Type. Must be one of the following types: Normal, copy, difference, increment, and daily.

/?

Display help at a command prompt.

Note

You cannot use the ntbackup command to restore files from the command line.

The following command line options are set by default through the graphical user interface (GUI) version of "backup", unless changed by the command line options:/V/R/L/m/rs/HC. For example, if hardware compression is enabled in the backup option dialog box, if the command line does not specify/HCAnd still use hardware compression. However, if you specify/HC: Off,/HC: OffWill replace the "options" dialog box settings, and do not use compression.

If your computer is running "Windows Media Service" and you need to back up the files associated with these services, see "Run backup with Windows Media Service" in the Windows Media Service online document ". You must follow the steps described in the "Windows Media Service" online document to back up or restore files associated with Windows Media Service.

Only "system status" data on the local computer can be backed up. The "system status" data in the remote computer cannot be backed up.

If you use removable storage to manage media, or use remote storage to restore Data, you should regularly back up the files in the following folders:

Systemroot/System32/ntmsdata

Systemroot/System32/remotestorage

This ensures that all removable and remote storage data can be restored.

Example

Here are four examplesNtbackupCommand example.

Back to Top

Normal backup

In this example, a normal backup with the name "My Job 1" will be executed for Remote sharing/Iggy-Multi/C $. It will take a tape from the backup media pool and name it "command line backup 1 ". The description of the backup job is "command line functionality ". After the backup job is completed, the backup is verified. The access permission is not limited to the owner/administrator. The record level is set to abstract only. The remote data storage is not backed up, and hardware compression is enabled.

Ntbackup backup // Iggy-Multi/C $/M normal/J "My Job 1 minutes /p" backup "/N" command line backup 1 "/D" command line functionality "/V: yes/R: No/L: S/RS: No/HC: On

Back to Top

Execute copy backup

This example backs up a copy of the local drive D:/named "My job 2. The backup files and folders will be appended to the tape named "command line backup 1. All other options use the default value of the backup program.

Ntbackup backup D: // J "My job 2"/A/T "command line backup 1 running /m copy

Back to Top

Use the backup type specified in "backup" to perform backup

The following example uses the backup type specified in the backup program to perform the backup. It uses the backup option file named CommandLine. BKS in the C:/program files/Windows NT/ntbackup/data/directory to select the file to be backed up. This backup job is named "My job 3" and overwrites the tape named "command line backup 1" with the new name "command line backup 2.

Ntbackup backup "@ C:/program files/Windows NT/ntbackup/data/CommandLine. BKS "/J" My job 3 minutes /t "command line backup 1"/N "command line backup 2"

Back to Top

Back up data from a command line to a file

The following example shows how to back up data from a command line. The three examples use the default values of the backup program, including the Backup Type, verification settings, log level, hard disk compression, and other restrictions. The first example shows how to back up/Iggy-Multi/d $ to file D:/backup. BKF, and the second example shows how to attach the same file to the same backup. The third example illustrates how to overwrite files using the same backup. In all three examples, the complete UNC name can replace the drive letter (that is, the user will // Iggy-Multi/d $/backup. BKF instead of D:/backup. BKF is specified as the backup target ).

Ntbackup backup // Iggy-Multi/d $/J "command line backup 4"/F "D:/backup. BKF"

Ntbackup backup // Iggy-Multi/d $/J "command line backup 5"/F "D:/backup. BKF"/

Ntbackup backup // Iggy-Multi/d $/J "command line backup 6"/F "D:/backup. BKF"

Back to Top

Format legend

 
Format Meaning

Italics

REQUIRED INFORMATION

Bold

Elements that must be exactly typed as displayed

Ellipsis (...)

Parameters that can be repeated multiple times in the command line

Between brackets ([])

Optional items

Between braces ({}); Separate options with pipelines (|. Example: {even | odd}

The user must select only one option of the quota group.

Courier font

Code or program output

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.