Friday, January 9, 2015

Backup and restore on windows server 2008

Windows server backup is a feature and is not installed by default. Before we can perform backup we have to install the feature.
Either go to
Start/administrative tools/server manager
Features/add features/windows server backup

Or

C:\>servermanagercmd -install backup-features

System state backup and restore

We can only perform a system state backup using the WBADMIN.EXE command-line tool.

C:\>wbadmin start systemstatebackup -backuptarget:e:

Backing up a server from command line

C:\>wbadmin start backup -include:c:,d: -backuptarget:e:

To backup all critical system volumes

C:\>wbadmin start backup -allcritical -backuptarget:e:

After starting backup wbadmin show the progress of the backup. If we close the window the backup will continue in the background. Can reconnect wbadmin to a running backup

C:\>wbadmin get status

To terminate

C:\>wbadmin stop job

Scheduling backup from command line

C:\>wbadmin enable backup -addtarget:e: -include:c:,d: -schedule:06:00,12:00,18:00

This command would backup c: and d: drives to e: drive three times a day, at 06:00 AM,12:00 PM,06:00 PM

Disable all scheduled backups

C:\>wbadmin disable backup

To restore

C:\>wbadmin start systemstaterecovery -version:12/03/2015-18:36

No comments:

Post a Comment