Feed on Posts or Comments

How To & Windows Vista Walter on 27 Jun 2007 10:48 pm

Vista: Automate and Schedule Complete PC Backup

Windows Vista includes Complete PC Backup, an image-based backup program that works similarly to Norton Ghost or Acronis TrueImage. Complete PC Backup creates an image of one or more entire hard disk partitions. In the event of a hard drive failure, you can replace the disk, restore from that image, and have your computer right back at the state it was in when you last backed it up.

Unfortunately, Complete PC Backup does not have a scheduling function built in so that you can automate backups. Fortunately, the command-line equivalent wbadmin.exe supports a rich command structure and with a little help from Task Scheduler, you can schedule automatic image backups.

wbadmin.exe supports the following commands:

Start Backup. Runs a backup.
Stop Job. Stops a running backup.
Get Items. Lists backed up items.
Get Status. Lists status of currently running backup.

The Start Backup command is the one we’re concerned with here. To create a full command, you can use the following parameters:

-backuptarget. Indicates the location to save the backup image. This can be a drive letter or a UNC path.
-include. List of drive letters, volume mount points, or volume names to include in the backup.
-noverify. Tells wbadmin not to verify backups written to removable media such as DVD.
-quiet. Runs the command with no user prompts.

So, let’s look at a simple backup command:

wbadmin start backup -backuptarget:e:\backups -include:C: -quiet

This command starts a backup of the C drive and saves the image to the Backups folder on the E drive, and does it with no user prompts. This would be a useful command for backing up the typical computer with one hard drive to a folder on an external hard drive.

To make this work as a scheduled backup, all you need to do is open Task Scheduler and create a new task using this command on the appropriate schedule.

4 Responses to “Vista: Automate and Schedule Complete PC Backup”

  1. on 31 Aug 2007 at 8:06 am 1.Charles M. Barnard said …

    Is this slash correct?:
    “-backuptarget:e:/backups”
    ^
    or should it be a backstroke?

  2. on 31 Aug 2007 at 1:27 pm 2.Walter said …

    You are correct. It should be a backstroke. I changed it in the article and thanks for catching the mistake!

  3. on 01 Sep 2007 at 3:17 pm 3.Charles M. Barnard said …

    You might note that Vista Home versions do not hav wbadmin installed….

  4. on 15 Feb 2008 at 4:36 pm 4.Paul said …

    Hi,
    I did a complete pc backup of a vista system and tried to duplicate the image to another system of exactly the same model using WinRE. It seemed to be successful but, after restarting the system, it could not boot saying “disk error”. What went wrong?

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply