2 Ways to Perform Windows Server Backup Command Line

You will learn how to use Windows Server Backup command line with Wbadmin or third-party tool. Besides, you can use the GUI version of backup software if you want a simpler way.

By @Ivy Last Updated June 13, 2024
๐Ÿ’ฌ If you want to skip the basics of Windows Server Backup command line, go to the complete guide below. For easier way, try the GUI version of backup software.

Windows Server Backup Command Line Tool - WBadmin

Microsoft has brought us the Windows Server Backup since Windows Server 2008, both command line and graphic user interface, as a replacement of NTBackup. It is at the block level and allows you to backup or restore operating system, volume, file, folder or application in a faster, simpler, and more reliable way. 

You can choose to create a bare metal backup to restore computer to dissimilar hardware under the recovery environment. The backup image is created mainly in the form of virtual hard drive (vhd) files, with some accompanying XML configuration files. And you can mount it in Windows Disk Manager to view content or copy individual files if the orginal one is damaged or corrupted. 

And it uses a different engine to update the backup files. Once the original backup file is created, it will update the changes using Volume Shadow Copy Service. The scheduled task is set to daily or more.

Execute Windows Server Backup Command Line Step by Step 

Here you will use the command line interface of Windows Server Backup to backup and restore system in Windows Server 2022, 2019, 2016, 2012 or 2008. Before using this tool, you need to install Windows Server Backup and Wbadmin command line in Server Manager. 

To use Wbadmin.exe, you need to open an elevated command prompt with administrator permission, and then run a backup or recovery job referring to the following WBadmin examples

1. To create a system state backup to E: drive:

wbadmin start systemstatebackup -backuptarget:E:

2. To create wbadmin backup to network share including all critcal volumes, system state, and “chrun” folder in D:drive to network shared folder:

wbadmin start backup -allcritical -systemstate -include:D:\chrun -backuptarget:\\networkshare\backup -quiet

3. To create a scheduled backup job at 00:00 daily to the shared folder that can only be accessed with username and password:

wbadmin enable backup -addtarget:\\192.168.0.225\Public\schedule -include:D: -systemstate -user:admin -password:1234 -schedule:00:00

4. To restore a full server backup to dissimilar hardware with version:11/11/2015-00:00 to another server with machine name Varlar:

wbadmin start sysrecovery –version: 11/11/2015-00:00 –backuptarget:E: -machine:Varlar

5. To restore system state with version: 01/11/2016-01:09:

wbadmin start systemstaterecovery -version:01/11/2016-01:09 -backupTarget: F: -quiet

โ˜…Notes:
The switch: -quiet means to run the task without being prompted to enter “Y” to confirm.
Besides backup and restore, you can still delete old backup with Windows Server Backup.

Although the Wbadmin command line tool is convenient for those who know how to use it, it does have some restrictions, such as:

  • Only partitions formatted with NTFS can be used as backup source or backup target,

  • You cannot configure a scheduled backup less frequently than daily.

Therefore, if you need more advanced command-line backup solutions, you can use third-party backup software.

Advanced Way to Perform Windows Server Backup Command Line

As the best Windows Server Backup command line alternative, AOMEI Backupper Server allows you to perform backup and recovery with more options and in a more flexible way. 

โ—ˆ Backup types and locations You can choose any files, folders, partitions, disks, system, etc., as backup source. You could backup files to any locations, like local disk, external hard disk, USB flash drive, CD/DVD, Network share or NAS, even clouds, etc. โ—ˆ Backup schedule Unlike Windows Server Backup, AOMEI Backupper allows you to custom backup frequency in a scheduled task, you have 5 options: Daily, Weekly, Monthly, Event triggers, and USB plug in followed by Full, Incremental or Differential Backups. โ—ˆ Backup scheme It will delete old backup images automatically to help you free up disk space and resolve the backup disk full issue from the root. There are 4 automatic backup cleanup methods in the Backup Schemes.

To use command line backup feature, please download and install AOMEI Backupper Server. Windows Server 2022, 2019, 2016, 2012, 2008, 2003 (including R2), SBS 2003, 2008, 2011 and Windows PCs are supported. For unlimited servers and PCs, try AOMEI Backupper TechPlus version.

Download Free Trial Win 11/10/8.1/8/7 & Server
Secure Download

(PS: The free trial version of works within 30 days, to continuously protect system, it's suggested to upgrade server trail. The discount is up to 44%. )

1. In an elevated command prompt, enter the path of the installation directory of this software and press Enter. For example, “cd C:\Program Files (x86)\AOMEI Backupper”.

2. Type in the right backup command of AOMEI Backupper and press Enter. For example, to perform a system backup of your server to a folder named “system backup” in F: drive, run the command below:

AMBackup.exe /b new /t system /d “f: \system backup” /n “Backup System”

Try the GUI Version of Backup Software to Backup Server 

Besides the Windows Server Backup command line, you could try GUI operations. Since the GUI version of Windows Server Backup still has limitations as Wbadmin, it's suggested to use specialized server backup programs - AOMEI Backupper or AOMEI Cyber Backup.

๐Ÿ’ฌ If you don't mind the Windows Server Backup limitations, refer to this article: image backup Windows Server.

1. AOMEI Backupper Server

Follow the steps below to backup server computer with AOMEI Backupper Server.

1. Launch AOMEI Backupper Server, choose Backup > System Backup subsequently.

2. Rename the Task Name if required and choose a destination to save your server system image. All the partitions related to your server system files and boot files will be selected by default.

3. Press Start Backup >> button to create a system image for Windows Server. To schedule backup system, click Schedule Backup to set it up and you have 5 options, namely using Daily, Weekly, Monthly, Event triggers, and USB plug in.

๐Ÿ“” Which is the best way to resolve the backup disk full issue?

It seems good in a scheduled task since you don't need to manually backup the system. It is able to minimize the size of backup image using different options. However, the disk space will be fulfilled in the long run due to accumulated backups. In this case, you can choose to delete old backups manually or automatically. 

If you do this manually, based on the nature of incremental backups, all backups between two full backups may become invalid. To avoid this, it's suggested to enable Backup Scheme and delete backup file automatically. You have 4 options, By quantity,  By time, By daily/weekly/monthly, and By space, depending on the selected backup method.

๐Ÿ“” What is the advantage of differential backup?

The Differential Backup method backup only changed files since the last full backup, so there are no invalid backup. For differences between them, please refer to: Incremental or Differential Backup.

๐Ÿ“”How to be the first to know if a backup task is successful

Besides, you still can enable email notification to confirm if the backup task is completed successfully or not. Comment, split, compress the backup image, or select a backup mode, etc. 

๐Ÿ“”How to backup Windows Server when it fails to boot

Sometimes, you may meet unbootable issues in Windows Server and want to backup system without Windows. The Create Bootable Media and Recovery Environments features in AOMEI Backupper help a lot. 

Directly boot from the created bootable USB or CD/DVD and backup system just like within Windows. Also, if you made a recovery environment in advance, restart your computer, then you will see an option like Enter into AOMEI Backupper. Select it and you will see the main page of AOMEI Backupper just as in Step 1. 

2. AOMEI Cyber Backup

AOMEI Cyber Backup provides a convenient and reliable solution for centralized backup management of all Windows operating systems.

  • It enables you to create a system image, disk image or partition image for client Windows PCs and Servers.
  • You are allowed to save backup images on a local disk, external hard drive, network share or NAS device, etc.
  • You can schedule a backup task to run every day/week/month using the full/incremental/differential backup method.
  • It also allows you to backup VMware, Hyper-V, and SQL databases.

Download this powerful enterprise backup software now to try it out!

Download Free TrialEasiest Enterprise Backup Software
Secure Download

To make backups for client computers, follow these steps:

1. Log in AOMEI Cyber Backup, and add the Windows Server device that you want to backup.

2. Click Backup Task on the left menu bar and select Backup Task Create New Task.

3. Choose System Backup as the Backup Type and finish the rest settings.

๐Ÿ’ฌIf you don’t know how to choose between AOMEI Backupper and AOMEI Cyber Backup, check the comparison table on page: Windows Server Backup.

Conclusion

You can use both Windows Server Backup and AOMEI Backupper Server to perform Windows Server backup command line. But if you want an easier way, try the GUI version of backup software: AOMEI Backupper for personal use and AOMEI Cyber Backup for business.

With the GUI version of backup software, the backup process becomes easy, and you can set multiple backup settings in Schedule Backup, Backup Scheme, and Options in a few clicks. In addition, it's a versatile data protection software embedded with many features, such as Basic Sync, Real-Time Sync, Mirror Sync, and Two-Way Sync.

AOMEI Backupper

Performing Windows Server backup using command line is complicated and error-prone, so it's wise to try the GUI version of backup software!