Perform Windows Server Backup Command Line Easily (2 Ways)
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.
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 server computer to similar or 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
- 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.
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.
(PS: The free trial version of works within 30 days, to continuously protect system, it's suggested to upgrade server trail. 100$ off for one server computer. )
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”
Use GUI Version of Backup Software to Protect Server
Besides the Windows Server Backup command line, you could try its GUI version and the alternative software - AOMEI Backupper to create a system image in Windows Server 2022, 2019, 2016, 2012, etc.
Since the GUI version of Windows Server Backup still has limitations as Wbadmin, thus it's suggested to use AOMEI Backupper Server for system backup. If you don't mind it, refer to this article: image backup Windows Server.
Then, 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 the Windows Server 2019 system image. All the partitions related to Windows Server 2019 system files and boot files will be selected by default.
4. Press Start Backup >> button to create a system image for Windows Server 2019 or other systems. To schedule backup system, you need to set Schedule Backup, you have 5 options, namely using Daily, Weekly, Monthly, Event triggers, and USB plug in.
It seems to be good since you don't need to backup system manually. And it is able to minimize the size of backup image using incremental backup, normal compression, intelligent sector backup, and automatic splitting. But in the long run, the disk space will be fulfilled 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, it is possible that all backups between two full backups will become invalid. Thus you need to enable Backup Scheme and delete backup file automatically. You have 3 options, By quantity, By time, By daily/weekly/monthly. You need to upgrade now (5% off for one computer) before using it.
At the same time, you can choose to use differential backup as backup method for the scheduled task, which completely compensates for this problem with incremental backups. For differences between them, please refer to: Incremental or Differential Backup.
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.
Sometimes, you may meet the unbootable issues when the Windows computer fails to boot, and intend to backup system without Windows using bootable media created before.
Also, if you made a recovery environment in advance, you just need to restart your computer and then you will see an option like Enter into AOMEI Backupper. Select it and you will see the main page AOMEI Backupper Standard just as in Step 1.
★ More advanced way to create Windows Server backup
If you want a more advanced way to backup and restore system in Windows Server 2022, 2019, 2016, 2012, 2008, and 2003, etc., you can turn to AOMEI OneKey Recovery. It enables you to create a factory recovery partition to save the image file. When your computer refuses to boot, you can launch the program by pressing the "F11" or "A" key during computer startup and then perform system restore.
You can use both Windows Server Backup and AOMEI Backupper Server to perform Windows Server backup command line. Also, you can use their GUI version to create a system image backup in Windows Server 2012/2016/2019/2022, etc. And it makes the backup process becomes really easy, you can set multiple backup settings in Schedule Backup, Backup Scheme, Options in a few clicks.
If you want a simpler way, the GUI version of backup software will be a better choice. If you only want to backup or sync files between Windows Server to protect data, you could use File Backup, Basic Sync, Real-Time Sync, Mirror Sync, and Two-Way Sync. Believe me, it's one of the best backup software to help you protect server computer. And you can even create portable version of it with its TechPlus edition.