Monday 13 February 2012

Backup Basics in Windows Server 2008 R2

Backup Basics in Windows Server 2008 R2
A free tool from Microsoft can make backing up data in Windows Server 2008 R2 efficient and almost hassle-free. Here's how to use it effectively.

Back in the day, Microsoft's free backup tool was the now venerable NTBackup. However, that utility has gone to the great recycle bin in the sky.
Windows Server 2008 offers a new set of backup tools, and I want to show you how easy it is to use them with the new Windows Server 2008 R2. Be aware that the new backup feature can't manage backups created with NTBackup.
Installation
First off, we need to install the backup feature, as it's not installed by default. Use the Add Features wizard in Server Manager and add the Windows Server Backup Features (Figure 1). I'm going to use the command-line tools sub-feature so that I can use Windows PowerShell, which I will explain in more detail later in this article.

You can also use command-line tools, including ServerManagerCMD.exe, to install the feature:
C:\ servermanagercmd -install backup-feature
 
<><><><>


www.saswatham.com
Figure 1. The backup feature is not installed by default, so you must install it using the Add Features Wizard.
The next step is to identify locations for your backups. You can back up files to a network share, a local volume or a dedicated disk. You can't back up data to tape, but given the growth and widespread availability of inexpensive USB-attached storage, this isn't that much of a setback these days.
Creating a Backup Job
Windows Backup is intended to provide a one-stop setup to protect a server. You can enable a scheduled task to back up files and the system state, or to provide for a bare-metal restore. Microsoft assumes you'll have one scheduled task for this purpose. I'm assuming that you're using the Windows Backup feature because of limited budget and are after maximum protection given the utility's constraints.
After you install the Windows Backup feature, expand the Storage node in Server Manager and select Windows Server Backup. In the Actions pane, select "Backup Schedule," which will start the Backup Schedule Wizard. Then, click Next on the Getting Started screen.
During step two, specify what type of backup you want. Try doing a complete server backup. You can also create a custom backup and pick items such as selected files and system state. I'll show you how to do a quick file backup later, but for now I'm assuming you want complete server protection.
In the third step, specify when you want the backup task to run. Most of the time, a single backup should be sufficient, but you can run it more than once a day. If you're backing up critical files, this might be a good choice.
In step four, determine where to store the backup. Microsoft recommends using a dedicated hard disk. Remember, this drive will be reformatted and unavailable for anything else. You can also use a volume or a network share. Pay close attention to the warnings and limitations. You might see a warning reminding you that the disk will be reformatted. If you don't see all the disks, click the Show All Available Disks button to refresh. When you select a new disk, you'll be warned.
Once selected, you'll have a chance to confirm your backup settings. If anything is incorrect, use the Previous button to go back and correct the error. If all goes well, you should get a summary screen. The next day, you can check the Windows Server Backup node for results or errors.
You can also use Windows Backup to run a one-time backup. Select the Backup Once option in the Actions pane. You can use the same settings as your scheduled job or pick something completely different. If you select the latter, the wizard runs again and you can enter new parameters. For example, you might want to copy files to a network share. Remember, any existing backups to the same folder will be overwritten. The backup will execute immediately. If this is a separate backup task you'd like to do often, then you'll want to take advantage of a scripted solution from the command line or Windows PowerShell. I'll cover that procedure later.
Restoring Data
Windows Backup uses a time stamp as version information. Using the Recover task launches a wizard that's easy to follow. Select the appropriate backup source. The Recovery Wizard will display a datetime control of all available backups (see Figure 2). Select the appropriate one. Depending on the type of backup, you may only have once choice.

Figure 2. Data recovery is easy with the Recovery Wizard.
Moving on, select what type of data you want to recover. If you select Files and Folders, you'll be able to highlight the files you want to recover. Unfortunately, selecting files from multiple directories is next to impossible. You can easily recover everything or recover selected files from one directory. Keep that in mind when you set up the backup job.
When you recover files, you'll need to specify the target folder, which can be the original folder or an alternate location. You can also control what happens when you restore a current file if a current version exists. You can create a copy so that you have both versions; you can overwrite the existing version; or you can skip restoring if an existing version is detected. The recovery process happens immediately.

No comments:

Post a Comment