Two Ways to Create Data Backup Using CMD in Windows 10/8/7

Posted by @Ada

June 13, 2017

Command line is easy to use even when you are not within windows, this passage will introduce how to create data backup using cmd.

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 disasters if you lose some personal files like pictures with family which can not be replaced, music with high expense. So you should backup those precious data in advance in case something bad happens. This passage will introduce 2 ways of data backup using cmd.

Create data backups with Wbadmin command

Wbadmin start backup Creates a backup using specified parameters. It applies to Windows Vista, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2012, Windows 8.

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

Run As Administrator

Step 2: To backup data using command prompt, you can use the command “wbadmin start backup -backuptarget:{<BackupTargetLocation> | <TargetNetworkShare>} -include: <ItemsToInclude> -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

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 support 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.

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

AOMEI Backupper 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

AOMEI Backupper Professional

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 Line

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

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.

AOMEI Backup

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 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. Meanwhile, AOMEI Backupper comes with an intuitive interface, so you can create disk backup with a few clicks instead data backup using command prompt.