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.