Easy Steps to Backup Hard Drive from Command Prompt

Posted by @Cody

May 4, 2016

Learn the step by step guide to backup hard drive from command prompt in Windows 10/8/7.

About Windows Wbadmin backup command line

In Windows 10/8/7, you can use Backup and Restore or File History to backup your system or files. The backup and restore features vary on different Windows operating system, but they have the same command line backup and recovery feature WBadmin. As you know, Windows GUI backup tool only allows you to include partitions with a drive letter in the backup. If you want to backup the entire hard drive that has none drive letter partitions, you can backup hard drive from command line. Learning WBadmin command, you can also write a script, so you can perform unattended backup or restore. You can also use Task Scheduler to run WBadmin command, so you can run Wbadmin scheduled backup more flexibly.

Create WBadmin disk backup from command line

If you want to backup an entire hard drive, you can use Wbadmin command to create a full backup that includes all the drives connected to your PC. You can follow the steps below to do it:

1. Open an elevated command prompt. You can type “CMD” in the search box, and in the listed results, select “CMD” or “Command Prompt”.

2. Then run the following command:

wbadmin start backup -backupTarget:F: -include:C:, D:,E: -allCritical -quiet

This command will create a backup including your C, D, and E drive to F drive. When you write command to backup your hard drive, you need to change the drive letters based on your situation. The switch: -quiet means to run the backup without prompting for extra input. Therefore, the backup will start right away after input this command.

If one of the partition that needs backing up does not have a drive letter, you can include this partition using volume GUID, which can be revealed by running “mountvol” command.

For example:

wbadmin start backup -backuptarget:\\\Public\backup -allCritical -include:C:,D:,E:,\\?\Volume{95b895b8-0000-0000-0036-223470000000}\

Wbadmin Backup

As you can see from the screen, WBadmin also allows you to backup to a network shared folder. If the shared folder is encrypted, you will need to use switch -user:username and -password:userPassword to input your user name and password. If you need to let WBadmin restore backup from command line, you need a Windows installation disc or system repair disc.

Create hard drive backup from command line in a more easier way

Besides using WBadmin to create backups from command line, you can also use third party software AOMEI Backupper to backup hard drive with a simpler command. It provides specified command to backup hard drive, partition, and system. It provides multiple editions for both PC and Server.

To create hard drive backup from command line using AOMEI Backupper:

1. Download and run the free trial version of AOMEI Backupper.

2. Open an elvated command prompt and type the path of the installation directory of AOMEI Backupper and press Enter. For example: cd C:\Program Files (x86) \AOMEI Backupper.

Backupper Command

3. Write a command referring to the following to backup an entire hard disk:

AMBackup.exe /b new /t disk /s [source disk number] /d “[target location path]” /n “[task name]”

For example: AMBackup.exe /b new /t disk /s 0 /d “E:\disk backup” /n “Disk Backup”

This command will create a backup task named “Disk Backup” include the whole disk 0 to E:\disk backup folder.

Besides backup, there are many command line parameters of AOMEI Backupper that allows you to create incremental backup, clone hard drive, restore system, etc. AOMEI Backupper comes also with an intuitive interface, so you can create disk backup with a few clicks instead backup hard drive from command prompt.