The Ntbackup Command in .NET

Generation QR Code in .NET The Ntbackup Command

The Ntbackup Command
Painting QR In .NET Framework
Using Barcode creator for ASP.NET Control to generate, create QR Code 2d barcode image in ASP.NET applications.
www.OnBarcode.com
Bar Code Drawer In Visual Studio .NET
Using Barcode generator for ASP.NET Control to generate, create bar code image in ASP.NET applications.
www.OnBarcode.com
The Ntbackup command provides the opportunity to script backup jobs on Windows Server 2003. Its syntax is
Painting QR Code 2d Barcode In Visual C#
Using Barcode creator for VS .NET Control to generate, create QR Code image in .NET framework applications.
www.OnBarcode.com
QR Code 2d Barcode Creator In .NET Framework
Using Barcode generator for .NET Control to generate, create QR image in VS .NET applications.
www.OnBarcode.com
Ntbackup backup {"path to backup" or "@selectionfile.bks"} /j "Job Name" options
Make Quick Response Code In VB.NET
Using Barcode encoder for Visual Studio .NET Control to generate, create QR Code image in VS .NET applications.
www.OnBarcode.com
GTIN - 13 Printer In VS .NET
Using Barcode drawer for ASP.NET Control to generate, create GTIN - 13 image in ASP.NET applications.
www.OnBarcode.com
The command s first switch is backup, which sets its mode you cannot restore from the command line. That switch is followed by a parameter that specifies what to back up. You can specify the actual path to the local folder, network share, or file that you want to back up. Alternatively, you can indicate the path to a backup selection file (.bks file) to be used with the syntax @selectionfile.bks. The at (@) symbol must precede the name of the backup selection file. A backup selection file contains information on
Making Linear 1D Barcode In .NET
Using Barcode encoder for ASP.NET Control to generate, create Linear 1D Barcode image in ASP.NET applications.
www.OnBarcode.com
Making 2D Barcode In .NET
Using Barcode drawer for ASP.NET Control to generate, create 2D Barcode image in ASP.NET applications.
www.OnBarcode.com
7-26
Bar Code Creator In .NET Framework
Using Barcode generator for ASP.NET Control to generate, create barcode image in ASP.NET applications.
www.OnBarcode.com
Generate Barcode In .NET
Using Barcode generation for ASP.NET Control to generate, create bar code image in ASP.NET applications.
www.OnBarcode.com
7
Quick Response Code Generation In Visual Studio .NET
Using Barcode drawer for ASP.NET Control to generate, create QR Code ISO/IEC18004 image in ASP.NET applications.
www.OnBarcode.com
Draw Monarch In Visual Studio .NET
Using Barcode printer for ASP.NET Control to generate, create 2 of 7 Code image in ASP.NET applications.
www.OnBarcode.com
Backing Up Data
Generating Code39 In VS .NET
Using Barcode generator for VS .NET Control to generate, create Code 3/9 image in .NET framework applications.
www.OnBarcode.com
Recognize GTIN - 13 In Visual Basic .NET
Using Barcode recognizer for VS .NET Control to read, scan read, scan image in VS .NET applications.
www.OnBarcode.com
the files and folders you have selected for backup. You have to create the file using the graphical user interface (GUI) version of the Backup Utility. The third switch, /J JobName , specifies the descriptive job name, which is used in the backup report. You can then select from a staggering list of switches, which are grouped below based on the type of backup job you want to perform.
PDF-417 2d Barcode Creator In Java
Using Barcode encoder for Java Control to generate, create PDF417 image in Java applications.
www.OnBarcode.com
Bar Code Creation In None
Using Barcode maker for Online Control to generate, create barcode image in Online applications.
www.OnBarcode.com
Backing Up to a File
Decoding European Article Number 13 In Visual C#.NET
Using Barcode reader for .NET framework Control to read, scan read, scan image in .NET framework applications.
www.OnBarcode.com
Code39 Recognizer In C#
Using Barcode reader for Visual Studio .NET Control to read, scan read, scan image in VS .NET applications.
www.OnBarcode.com
Use the switch /F FileName where FileName is the logical disk path and file name. You must not use the following switches with this switch: /T /P /G. The following example backs up the remote Data share on Server01 to a local file on the E drive:
Creating GS1-128 In Java
Using Barcode drawer for Eclipse BIRT Control to generate, create EAN 128 image in BIRT applications.
www.OnBarcode.com
Making ANSI/AIM Code 39 In VS .NET
Using Barcode maker for Reporting Service Control to generate, create Code-39 image in Reporting Service applications.
www.OnBarcode.com
ntbackup backup "\\server01\Data" /J "Backup of Server 01 Data folder" /F "E:\Backup.bkf"
Appending to a File or Tape
Use the switch: /A to perform an append operation. If appending to a tape rather than a file, you must use either /G or /T in conjunction with this switch. Cannot be used with /N or /P. The following example backs up the remote Profiles share on Server02 and appends the set to the job created in the first example:
ntbackup backup "\\server02\Profiles" /J "Backup of Server 02 Profiles folder" /F "E:\Backup.bkf" /A
Backing Up to a New Tape or File, or Overwriting an Existing Tape
Use the switch:
/N MediaName
where MediaName specifies the new tape name. You must not use /A with this switch.
Lesson 3
Advanced Backup and Restore
7-27
Backing Up to a New Tape
Use the switch /P PoolName where PoolName specifies the media pool that contains the backup media. This is usu ally a subpool of the backup media pool, such as 4mm DDS. You cannot use the /A, /G, /F, or /T options if you are using /P. The following example backs up files and folders listed in the backup selection file c:\backup.bks to a tape drive:
ntbackup backup @c:\backup.bks /j "Backup Job 101" /n "Command Line Backup Job" /p "4mm DDS"
Backing Up to an Existing Tape
To specify a tape for an append or overwrite operation, you must use either the /T or /G switch along with either /A (append) or /N (overwrite). Do not use the /P switch with either /T or /G. To specify a tape by name, use the /T switch with the following syntax: /T TapeName where TapeName specifies a valid tape in the media pool. To back up the selection file and append it to the tape created in the previous example, you would use this command line:
ntbackup backup @c:\backup.bks /j "Backup Job 102" /a /t "Command Line Backup Job"
To specify a tape by its GUID, rather than its name, use the /G switch with the follow ing syntax: /G GUIDName where GUIDName specifies a valid tape in the media pool.
Job Options
For each of the job types described above, you can specify additional job options using these switches:
/M {BackupType} Specifies the backup type, which must be one of the follow ing: normal, copy, differential, incremental, or daily. /D { SetDescription } Specifies a label for the backup set.
7-28
7
Backing Up Data
/V:{yes | no}
Verifies the data after the backup is complete.
/R:{yes | no} Restricts access to this tape to the owner or members of the Administrators group. /L:{f | s | n} is created). Specifies the type of log file: f=full, s=summary, n=none (no log file Backs up the migrated data files located in Remote Storage.
/RS:{yes | no}
The /RS command-line option is not required to back up the local Remov able Storage database, which 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} Uses hardware compression, if available, on the tape drive. Specifies whether the backup should use a Volume Shadow
Copyright © OnBarcode.com . All rights reserved.