windows 2008 command based backup
Windows 2008 backup
Microsoft has been introused a volume level back up(volume shadow copy)and recovey solution in their new version of windows 2008 called as Windows server backup(WBAdmin),a MMc snap in based.This is a replacement of old style windows back up (Ntbackup.exe) and extremely faster and supports restoring from backup to a different hardware.
To be know Windows Server Backup is a disk-to-disk backup solution ,it does not support backing up to tapes.Which means backup targets are
Direct attached disk volumes
External USB drives
Components using Windows Server Backup
Backup Management Console (WBADMIN.MSC) – A GUI
Command-line user interface (WBADMIN.EXE) – Using command operations
Backup Service (WBENGINE.EXE) – Running the jobs which we create
Set of Powershell Cmdlets
Windows Server Backup Features
# Simplified restoration. You can restore items by choosing a backup and then selecting specific items from that backup to restore. You can recover specific files from a folder or all the contents of a folder. In addition, previously, you needed to manually restore from multiple backups if the item was stored on an incremental backup. But this is no longer true—you can now choose the date of the backup version for the item you want to restore.
# Simplified recovery of your operating system. Windows Server Backup works with new Windows recovery tools to make it easier for you to recover your operating system. You can recover to the same server—or if the hardware fails, you can recover to a separate server that has similar hardware and no operating system.
#Faster backup technology. Windows Server Backup uses Volume Shadow Copy Service (VSS) and block-level backup technology to back up and recover your operating system, files and folders, and volumes. After the first full backup is created, you can configure Windows Server Backup to automatically run incremental backups by saving only the data that has changed since the last backup. Even if you choose to always perform full backups, your backup will take less time than it did in earlier versions of Windows.
#Offsite removal of backups for disaster protection. You can save backups to multiple disks in a rotation, which enables you to move disks from an offsite location. You can add each disk as a scheduled backup location and, if the first disk is moved offsite, Windows Server Backup will automatically save backups to the next disk in the rotation.
#Automatic disk usage management. After you configure a disk for a scheduled backup, Windows Server Backup automatically manages the disk usage—you do not need to be concerned about running out of disk space after repeated backups. Windows Server Backup will automatically reuse the space of older backups when creating new backups. The management tool displays the backups that are available and the disk usage information. This can help you plan for provisioning additional storage to meet your recovery objectives.
#Remote administration. Windows Server Backup uses an MMC snap-in to give you a familiar and consistent experience for managing your backups. After you install the snap-in, you can access this tool through Server Manager or by adding the snap-in to a new or existing MMC console. Then, you can manage backups on other servers by clicking the Action menu in the snap-in, and then clicking Connect to Another Computer.
For using the backup ,the difference from previous versions you must install the Windows Server Backup, Command-line Tools, and Windows PowerShell items that are available in the Add Features Wizard in Server Manager.
How to install backup and recovery tools
Step1:Click Start, click Server Manager, in the left pane click Features, and then in the right pane click Add Features. This opens the Add Features Wizard.
Step2:In the Add Features Wizard, on the Select Features page, expand Windows Server Backup Features, and then select the check boxes for Windows Server Backup and Command-line Tools.
Step3:Click Add Required Features, and then click Next.
Step4:On the Confirm Installation Selections page, review the choices that you made, and then click Install. If there is an error during the installation, it will be noted on the Installation Results page.
After installations to access the tool from
Step1:Windows Server Backup snap-in, click Start, click Administrative Tools, and then click Windows Server Backup.
Step2:Click Start, right-click Command Prompt, and then click Run as administrator. At the prompt, type: wbadmin
Location of the file is c:\windows\system32\wbadmin.exe
command line syntax:
Wbadmin start backup -backupTarget:\\[Server]\[Share name] -include:C: -vssFull -quiet
That command will perform a complete backup on the server without any user interaction.
Wbadmin enable backup :-Configures and enables a daily backup schedule.
This subcommand applies only to Windows Server 2008.
Wbadmin disable backup :-Disables your daily backups.This subcommand applies only to Windows Server 2008.
Wbadmin start backup :-Runs a one-time backup. If used with no parameters, uses the settings from the daily backup schedule.
Wbadmin stop job :-Stops the currently running backup or recovery operation.
Wbadmin get versions :-Lists details of backups recoverable from the local computer or, if another location is specified, from another computer.
Wbadmin get items :-Lists the items included in a specific backup.
Wbadmin start recovery :-Runs a recovery of the volumes, applications, files, or folders specified.
Wbadmin get :-Shows the status of the currently running backup or recovery operation.
Wbadmin get disks :-Lists disks that are currently online.
Wbadmin start systemstaterecovery :-Runs a system state recovery.
Wbadmin start systemstatebackup :-Runs a system state backup.
Wbadmin delete systemstatebackup :-Deletes one or more system state backups.
Wbadmin start sysrecovery :-Runs a recovery of the full system (at least all the volumes that contain the operating system’s state). This subcommand applies only to Windows Server 2008, and it is only available if you are using the Windows Recovery Environment.
Wbadmin restore catalog :-Recovers a backup catalog from a specified storage location in the case where the backup catalog on the local computer has been corrupted.
Wbadmin delete catalog :-Deletes the backup catalog on the local computer. Use this command only if the backup catalog on this computer is corrupted and you have no backups stored at another location that you can use to restore the catalog.