How to Start a System Image Backup from the Command Line
The simplest way to initiate a System Image backup is to follow the prompts in the Backup And Restore Center. If you want to automate or schedule System Image backups, however, you can use the WBAdmin.exe command-line tool.
For example, to initiate a System Image backup of the C drive to the L drive, you can run the following command line from an elevated command prompt.
Wbadmin start backup -backupTarget:L: -include:C: -quiet
wbadmin 1.0 - Backup command-line tool
(C) Copyright 2004 Microsoft Corp.
Retrieving volume information...
This will back up volume Local Disk(C:) to L:.
The backup operation to L: is starting.
Creating a shadow copy of the volumes specified for backup...
Creating a backup of volume Local Disk(C:), copied (0%).
Creating a backup of volume Local Disk(C:), copied (18%).
Creating a backup of volume Local Disk(C:), copied (40%).
Creating a backup of volume Local Disk(C:), copied (77%).
Creating a backup of volume Local Disk(C:), copied (98%).
The backup of volume Local Disk(C:) successfully completed.
The backup operating successfully completed.
Summary of the backup operation:
------------------
Backup of volume Local Disk(C:) completed successfully.
The behavior is identical to the System Image backups initiated from the graphical Backup And Restore tool. The first time you initiate a System Image backup, it backs up every block on the system volume. Each subsequent time, it simply updates the previous backup.
You can use the same command to schedule a task from the command line. If you use Task Scheduler, you must configure the task to run with administrative privileges. You can do this by providing an administrative user account and selecting the Run With Highest Privileges check box on the General tab of the task's Properties dialog box.
In this tutorial:
- Managing Disks and File Systems
- Overview of Partitioning Disks
- How to Choose Between MBR or GPT
- Converting from MBR to GPT Disks
- GPT Partitions
- Choosing Basic or Dynamic Disks
- Working with Volumes
- How to Create a Simple Volume
- How to Create a Spanned Volume
- How to Create a Striped Volume
- How to Resize a Volume
- How to Delete a Volume
- How to Create and Use a Virtual Hard Disk
- File System Fragmentation
- Backup And Restore
- How File Backups Work
- File and Folder Backup Structure
- How System Image Backups Work
- How to Start a System Image Backup from the Command Line
- How to Restore a System Image Backup
- System Image Backup Structure
- Best Practices for Computer Backups
- How to Manage Backup Using Group Policy Settings
- Previous Versions and Shadow Copies
- How to Manage Shadow Copies
- How to Restore a File with Previous Versions
- How to Configure Previous Versions with Group Policy Settings
- Windows ReadyBoost
- BitLocker Drive Encryption
- How BitLocker Encrypts Data
- How BitLocker Protects Data
- TPM with External Key (Require Startup USB Key At Every Startup)
- TPM with PIN (Require PIN At Every Startup)
- TPM with PIN and External Key
- BitLocker To Go
- BitLocker Phases
- Requirements for Protecting the System Volume with BitLocker
- How to Enable the Use of BitLocker on the System Volume on Computers Without TPM
- How to Enable BitLocker Encryption on System Volumes
- How to Enable BitLocker Encryption on Data Volumes
- How to Manage BitLocker Keys on a Local Computer
- How to Manage BitLocker from the Command Line
- How to Recover Data Protected by BitLocker
- How to Disable or Remove BitLocker Drive Encryption
- How to Decommission a BitLocker Drive Permanently
- How to Prepare AD DS for BitLocker
- How to Configure a Data Recovery Agent
- How to Manage BitLocker with Group Policy
- The Costs of BitLocker
- Windows 7 Encrypting File System
- How to Export Personal Certificates
- How to Import Personal Certificates
- How to Grant Users Access to an Encrypted File
- Symbolic Links
- How to Create Symbolic Links
- How to Create Relative or Absolute Symbolic Links
- How to Create Symbolic Links to Shared Folders
- How to Use Hard Links
- Disk Quotas
- How to Configure Disk Quotas on a Single Computer
- How to Configure Disk Quotas from a Command Prompt
- How to Configure Disk Quotas by Using Group Policy Settings
- Disk Tools
- EFSDump
- SDelete
- Streams
- Sync
- MoveFile and PendMoves