In the previous chapter we talked about the Windows Server 2016-graphical backup domain controller approach, in this chapter we talk about how to back up a domain controller from the command line Wbadmin. In Windows Server active Directory, System State data typically includes the COM + Class registration database, the registry, boot files, system files, the SYSVOL directory, and so on.
Before running Wbadmin, we first need to know which command lines are supported in the current operating system. The simplest way to do this is to run wbadmin/? Under the command line, as follows:
1, understand wbadmin related help information:
To view the available disk identifiers: Wbadmin get disks:
3. To view the previous backup set: Wbadmin get versions
Backup system disk C drive to D drive: Wbadmin start backup–backuptarget:d:-include:c:
–backuptarget behind and back to the destination. The include is specified after the drive letter or content that needs to be backed up. The data to be backed up in the example is the contents of the C: \ disk. If the content that needs to be backed up contains several different drive characters, the two paths can be implemented with only a single comma. The system asks if you want to enter "Y" When you start the backup, and after the backup is complete, we can see if the success information is backed up by Wbadmin get versions.
4. Back up the system state to the D drive: Wbadmin start systemstatebackup–backuptarget:d:
Enter Y as prompted to confirm the start of the backup operation.
5. The backup was successful and we can see that the backup file has been generated with the current timestamp as the log name.
At this point, the currently backed up information is viewed through wbadmin get versions.
Simple steps to backup through the command line have been introduced for everyone, hope can help everyone. In a production environment, we can save this command as a bat script by setting a scheduled task to make a scheduled backup of the system state of the domain controller to improve the content of the data security. Thanks for your support.
Windows Server 2016-wbadmin command-line backup domain controller