By Ivy / Last update March 24, 2022

Necessity for data backup

Data backup can be a very wide range which includes system backup, partition backup, file and folder backup. Data loss can be caused by many reasons. For instance: system corruption, disk crash, computer viruses, or catastrophic events like floods, earthquakes, virus, and robberies of your home or office.

Sometimes it will give you a critical strike if you are responsible for business data, a loss may involve critical financial, customer, and company data. It is also a disaster if you lose some personal files like pictures with family which can not be replaced, music with high expense. So you should back up those precious data in advance in case something bad happens. 

This passage will introduce two ways of data backup using cmd. If you want a new way to make it, you can jump to Method 2 to get one backup tool to help you. It not only can help you backup files using command prompt but also offers various powerful functions related to computer backup.

Create data backups with Wbadmin command

Wbadmin start backup Creates a backup using specified parameters. It applies to Windows 10, Windows 8.1/8, Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2012, etc.

Step 1: Click “start”, in the Search box, type cmd, and then right-click cmd, and select Run as administrator.

Step 2: To backup data using command prompt, you can use the command “wbadmin start backup -backuptarget:{|} -include:-allCritical”. So if you want to create backup of C: and E: to an external hard drive (D: drive), use this command: wbadmin start backup -backuptarget:D: -include:C:,E: -allCritical.

Backup with CMD

There are also many other syntax for Windows PC that you can choose. If you have too many partitions on one disk that you want to backup, to specify the partitions one by one, not to mention the hidden partitions, would be cumbersome.

What’s more, Windows only supports several functions, sometimes it cannot satisfy your needs. In this case, you may look for a way to use one simple command to backup hard drive from command line. If you just want to move files or other directories from one location to another one, you could try Xcopy command according to Microsoft.

An easier way to backup data with cmd by AOMEI Backupper in Windows 10/8/7

AOMEI Backupper Professional provides AMBackup.exe utility for users to make backups from command line interface or by creating a batch (.BAT) file. Sometimes, you are not within windows, you still can backup with command line. It is also very useful for unattended and multi-task backups.

The AMBackup.exe command line utility enables you to perform most of the backup operations that are supported by the AOMEI Backupper GUI. Take disk backup as an example, let’s see how to backup files from command prompt with AOMEI Backupper.

Step 1: Download and install AOMEI Backupper Professional.

Download Free Trial Win 11/10/8.1/8/7/XP
Secure Download

Step2: Click on the "Start" button in the lower left corner. In the search box, type "cmd", or press WIN+R and type "CMD", and then run as administrator privilege. After that, Command Prompt will open (please close AOMEI Backupper GUI before opening command prompt).

Command Prompt

Step 3: Type cd C:\Program Files (x86)\AOMEI Backupper, and press Enter. This command means to open the Installation directory of AOMEI Backupper.

Path of AOMEI Backupper

Step 4: At the prompt, type: AMBackup.exe /b new /t disk /s 0 /d “e:\disk”, and then hit "Enter" on your keyboard to perform the command line backup operation.


As for the required parameters

  • b: specify the type of backup, it could be one of the following: new, inc, dif, full.

  • t: specify the type of source, it could be one of the following: system, disk, part.

  • s: source for the backup.

  • d: destination path for saving the backup image, e.g. /d D:\disk

Besides the required parameters, there are many other command line parameters of AOMEI Backupper which you can choose for backup. In addition to data backup with cmd, AOMEI Backupper cmd supports Windows 10/8.1/8/7/XP/Vista which allows you to create an incremental backup, clone hard drive, restore system, etc.


That’s all for how to backup files using command prompt in Windows 10/8/7. As you can see, AOMEI Backupper offers more powerful functions that can satisfy your needs in different situations. 

Meanwhile, AOMEI Backupper comes with an intuitive interface, so you can create disk backup with a few clicks instead of data backup using AOMEI Backupper GUI if you are not familiar with Windows backup command line.

If you want to protect unlimited computers within your company, you can pick AOMEI Backupper Technician. With the inbuilt AOMEI Image Deploy tool, you are also allowed to deploy/restore system image file on server-side computer to multiple client-side computers over the network.