Methos to Backup Hard Drive from Command Prompt

How to Backup Hard Drive from Command Prompt

If you want to backup hard drive content, here you can learn how to backup hard drive from command prompt and how to backup files with hard drive backup software.

Wondershare Recoverit Authors

Dec 03, 2020 • Filed to: Take Data Backup • Proven solutions


We all know how important it is to take a timely backup of our data files. Even though there are plenty of new ways to backup content, nothing can compare with the method of taking a backup of the hard disk via command prompt. It can be implemented even after a system crash, as it takes a backup of files via command prompt and not the Windows native interface.

While it is recommended to backup content on the cloud, users can always backup hard drive from command prompt directly. It is a secure way to backup your content, even when your system doesn't seem to function properly. It might seem a little tedious, but after following some easy steps, it can be done without much trouble. To help our readers do the same, we have come up with this comprehensive guide on how to the backup hard drive from the command prompt.

  • Part 1: Overview of Windows Wbadmin Backup Command Line
  • Part 2: How to Backup Hard Drive with Command Prompt and Notepad
  • Part 3: How to Backup Hard Drive with Command Prompt and copy
  • Part 4: How to Backup Hard Drive with Data Backup Software

Part 1: Overview of Windows Wbadmin Backup Command Line

Wbadmin is the command-line utility that is majorly used to backup folders, files, system states, etc. on popular Windows versions (like Vista, 2008, 7, 8, 2012, and more). Besides taking a backup of your content, you can also use it to restore your backup afterward. It is a disk-based backup utility tool that is used to create a "bare metal" backup. This means the backup can be used to restore the operating system to the same or any other hardware.

If the CMD line cannot help you backup and restore files easily and successfully, try to use AOMEI Backupper Professional, for this job. AOMEI data backup software enables you to do automatic and incremental files or hard drive backup on a regular basis so as to save your time and energy.

The backup files that are created by Wbadmin utility are known as virtual hard disks, with the extension of.VHD. Though, it can also accompany some XML files as well. After opening the command prompt, you can simply provide the "Wbadmin /?" command. It will give you the following options:

Now when you are familiar with Wbadmin command-line utility, let's proceed and learn how to backup hard drive from the command prompt in two different ways.

backup hard drive with command prompt

Part 2: How to Backup Hard Drive With Command Prompt and Notepad

In the first technique, we will boot the computer in command prompt to take its backup. As you know, the method can be used to backup content, even when the system is not functioning in the ideal state. Since we would be manually taking the backup, it will let us save selected content to a respective location. To backup hard drive from the command prompt, follow these steps:

    1. Start by turning on your computer and press the F8 button to enter the advanced booting options.
    2. After entering the advanced boot option, select the feature of "Repair your computer". This will set your system into recovery mode.
    3. In case there is no option for "Repair your computer", you need to take the assistance of a system recovery disc. Burn a system recovery disc and select it while booting your PC to perform the recovery operation.
    4. While using a system recovery disc, you need to make changes in the BIOS settings. As your system will boot via the system repair disc, it will let you know by displaying a "Windows is loading files" message.
    5. Subsequently, you need to make selections regarding your language, keyboard type, etc. to initiate the setup.
    6. When the installation wizard would appear, click on the "Repair your computer" option instead of the "Install now" button.
    7. This will initiate the Windows recovery options as your system will list the operating systems.

windows recovery options for command prompt backup

    1. Simply make your selection and click on the "Next" button to get access to various recovery tools.
    2. From the listed recovery options, select Command Prompt.

command prompt option

  1. After launching the Command Prompt, type "Notepad.exe" to open Notepad's interface.
  2. Once the Notepad's interface is opened, go to File > Save as option to launch a new Window.
  3. Locate the files you wish to backup and plug in a USB drive (or external storage)
  4. Select the file you wish to save, right-click it, and send it to your external storage device.

backup hard drive from command prompt

Part 3: How to Backup Hard Drive With Command Prompt and xcopy

While the above-stated method can let you directly send the files to a USB storage, this is a more time-consuming and extensive process. In this technique, we will backup hard drive from command prompt one step at a time via the xcopy command. Follow the above-mentioned steps to launch a command prompt from the system recovery option. Make sure that your external drive is connected to the system.

  1. Now, instead of opening Notepad, give the "diskpart" command.
  2. Subsequently, write the "list volumes" command to view if your external drive has been recognized by your system or not.
  3. Write "exit" to leave this window after making sure that you have noted the number (or letter) allocated to your external drive.
  4. Now, go to the location of the file that you wish to backup from the command prompt. You can also type the "dir" command to view the directory list.
  5. Use the "cd <folder name >" command to reach the location of the files you want to save.
  6. Now, give the command "xcopy <Directory-Path-To-Copy Drive-Letter-To-Copy-Into>/E". For example "xcopy D:\Data E\ /E" will copy the data from D drive to E drive. The suffix "/E" denotes that all folders (including the empty ones) would be copied.

Repeat the same for all the files you wish to backup. Since it is a manual process, it might take a while, but it is a foolproof way to yield the desired result. However, there is another trouble-free and surefire way to help you win backup files or hard drive hands down, that is to backup hard drive with AOMEI Backupper Professional.

Part 4. How to Backup Hard Drive with Data Backup Software

1. The Best Automatic Hard Drive Backup Software for Windows

Backing up hard drive with command prompt is undoubtedly safe. Yet it is not so easy and personally since you have to backup all the files on a hard drive repeatedly and manually, which will take you a lot of time and energy. Things can be different if you utilize a data backup program, for example, AOMEI Backupper Professional. With the best data backup software, you can backup files, photos, audios, videos, and any other data to multiple data storage, such as a hard drive, external hard disk, computer, laptop, memory card, Cloud, NAS drive, and so on. Besides, it allows you to take backups of the whole hard drive, partition, and system. More surprisingly, automatic and incremental backups can be scheduled on a daily, weekly, or monthly basis. If you do not want to spend lots of time to keep backing up files, AOMEI Backupper Professional can help you free from the cumbersome jobs.

data backup
  • Allows you to take automatic, full, incremental, and differential backups of system, disk, partition, and files.
  • Supports system restore, disk restore, dissimilar hardware restore, partition restore, and selective file restore.
  • Supports disk clone, partition/volume clone, flexible clone, system clone, and command line clone.
  • Supports Windows 10, Windows 8.1/8, Windows 7, Vista, and XP (all editions, 32/64-bit)

2. How to Make Copies of Hard Drive

Making copies of hard drives and files can be a snap if AOMEI Backupper Professional is used. Now download this data backup software and follow the below stepwise guide to back up your hard drive at once.

Step 1 To backup hard drive with AOMEI Backupper Professional, you need to launch it and select "Disk Backup" under the "Backup" tab.

disk backup

Step 2Next, you should select a hard drive you want to make copies of. Click "Select a disk you need to backup" and then add the specific hard disk.

Add disk to backup

Step 3Then, you need to choose a target location to store the backup hard drive. Click "Step 2" to open and select the destination path for backup storage.

Select a location to store backup hard drive data

Step 4Before starting the backup, you can schedule an automatic backup for this backup task. Tick the "Schedule" button and make some settings on the pop-up window.

Schedule automatic backup

Step 5Finally, click "Start Backup" to begin the hard drive backup process. Before that, you can configure this backup task, including editing the task name.

Start hard drive backup

As you can see, backing up a hard drives can be done in 5 simple steps. With the help of AOMEI Backupper Professional, it is not a hard and painful job as you imagine.


If backing up hard drive with Command Prompt, you have to do it all by yourself every time although it is a safer way compared to Cloud backup. However, we recommend another secure and convenient way - backup files with data backup software. We are sure that AOMEI Backupper Software will come in handy to you on numerous occasions. It will let you backup your files and save your important data in an unforeseen situation.

Recoverit author

Amy Dennis

staff Editor

(Click to rate this post)

Generally rated4.5(105participated)

Home > Resources > Take Data Backup > How to Backup Hard Drive from Command Prompt