Zedan IT Blog

IT definitions, discussions and more

Simple Windows Server Backup Script – Part 3 2008 R2

In my previous post of Backing up and restoring windows 2008 , I gave some examples of using wbadmin command in backup & restore, also I gave some idea on scheduling it and keep old backups archive.

In Windows 2008 the option Include in wbadmin command allow you to restore specific files or folders from a backup archive, but it let you only specify whole volumes to backup (taking image of them).   You cannot select specific files or folders to backup.

However, in windows 2008 R2 this ability is available.  You can select specific files or folders when using the -include option.

Another ability in 2008 R2 backup is you can select to backup the system state as an item.   It creates a backup that includes the system state in addition to any other items that you specified with the -include parameter. The system state contains boot files (Boot.ini, NDTLDR, NTDetect.com), the Windows Registry including COM settings, the SYSVOL (Group Policies and Logon Scripts), the Active Directory and NTDS.DIT on Domain Controllers and, if the certificates service is installed, the Certificate Store. If your server has the Web server role installed, the IIS Metadirectory will be included. If the server is part of a cluster, Cluster Service information will also be included.

These two options were not available in wbadmin that comes with windows 2008.

Example:

wbadmin start backup –backupTarget:d: -include:g\folder1,h:\folder2 –systemstate 

The restore operation is the same as explained for windows 2008.   Please review the previous Post ” Simple Windows Server Backup Script – Part 2 2008 

Things to remember when restoring backup:

  1. If your backuptarget is a volume (not a shared folder), e.g. ( -backuptarget:F: ) the folder named “WindowsImageBackup” should be on the root of that volume.
  2. If you are restoring registry on a Domain Controller server, you must perform the restoration in the Directory Services Recovery Mode (DSRM)

I hope this will give you a quick approach to schedule windows 2008 & 2008R2 backup.  Other parameters were not discussed as I have focused on the most important.

4 responses to “Simple Windows Server Backup Script – Part 3 2008 R2

  1. Pingback: Simple Windows Server Backup Script – Part 2 2008 « Zedan IT Blog

  2. Pingback: Run scheduled tasks with highest privileges « Zedan IT Blog

  3. Cleaners Related Sites 19/07/2013 at 1:02 AM

    After I originally left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now each
    time a comment is added I get 4 emails with the same
    comment. Perhaps there is a way you can remove me from that service?
    Cheers!

  4. Zedan 19/07/2013 at 8:22 AM

    Sorry for this but I see that your comment is the only comment on this post and I have already checked if I can disable a feature like this for your email but I did not find a thing like this. may be it was something with the wordpress itself (the host for this blog).

    Did you receive 4 emails with this comment as well?

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s