mag72

Active Directory Backup – Easy & Fast Way to Backup your Domain!

active directory backup – A tutorial and free guide

Marc Wilson

In this post, you are going to learn how to do a Manual backup of an Active Directory domain controller.

First, we are going to install the Windows Server Backup Feature, which is a new tool that started with Windows Server 2016.

This feature is easy to use and can help you set up manual, scheduled, full, or custom AD backups.

We are going to perform a “customized” System State backup that includes the most important components needed to restore Active Directory.

Active Directory is critical for any Windows environment.

So as a best practice, it is recommended to perform full scheduled backups.

For now, we’ll keep it simple and start with the basics.

Active Directory Backup Recommendations

Always Backup System State

When planning for a backup strategy, it is important to consider the elements that influence AD.

At least always backup the System State, which includes DNS Server, Windows System Files, DC Registry, Sysvol directory, COM+ Class Registration Database, Certificate Services Database, etc.

DC Failover and Backup

If you have only One Domain Controller in the network, backup immediately!

If you have more than one, which is recommended for fail-over protection, backup at least one DC.

Although a fail-over solution could give you fault tolerance for AD, ALWAYS perform a Backup.

The ideal DC to backup should be the one running the FSMO (Flexible Single Master Operation) role.

Perform Backups on a Regular Basis

You should back up AD with time intervals lower than 60 days; this is because, by default, the lifetime of AD tombstones are set to 60 days.

Tombstone is a “deleted object” that remains in the database for 60 days.

After the 60 days pass, the object disappears completely. If possible backup Active Directory every day.

You can create incremental backups by using a Windows Server Backup feature called Volume Shadow Copy Service (VSS).

Restoring from a Backup Should be the Last Option

A handy tool to avoid restoring is the Active Directory Recycle Bin. When you delete an object, it automatically goes to the Recycle Bin.

So if you want to recover a particular object that you recently deleted, go to the bin and restore it.

Follow the 3-2-1 Backup Rule

Keep 3 copies of your Backup – 2 Backups on Locally on different media (hard-drives, etc) and 1 Backup off-site (on a remote server, or in the cloud).

 

How to Backup Active Directory in Windows Server 2019

Active Directory is one of the most important components in any Windows network.

When AD crashes, Everything comes to a Halt.

Having no protection or backup strategy whatsoever could put the entire organization in danger – Believe it or not, Many small businesses don't regularly backup Active Directory.

Make sure to have multiple domain controllers working together with fail-over functionalities and create a good backup and recovery strategy.

Step 1. Understanding the Backup Environment

The environment for our backup is as follows:

In this demonstration, we have two Domain Controllers (DC), one is called WD2K19-DC01 and the other WD2K19-DC02.

To see the DCs, you can go to the Active Directory Users and Computers (ADUC) snap-in console on the Windows Server.

  1. Click on the Domain Controllers container on the right hand.
  2. This will show you the current DCs, along with Type, DC Type, Site, and Description. As you can see, there are two DCs: WD2K19-DC01 and WD2K19-DC02.
  3. We are going to perform the backup on the domain controller, WD2K19-DC01.aduc domain controllers window
  4. Before performing the backup, it is recommended to have enough available storage for the specific backup/restore. You can use the Disk Management system utility in Windows to view your available storage.
  5. In this lab, we are going to attach a new disk called “BackupStore (M:)” to store the DC backup.Active Directory Users and Computers

Step 2. Configuring the Shadow Copy Service (VSS) on the Volume

To create the backup copy of the DC even when the volume “BackupStore (M:),” is being used, configure the Shadow Copy (or Volume Snapshot Service, “VSS”).

The Shadow Copy helps backup data on the volume even while applications that produce data are still running.

It also allows the users to view the contents of shared folders as the content existed in previous points in time (Snapshots).

  1. For this lab, we are only going to change the Shadow Copy size limit configuration on the volume where we are going to store the AD database.
  2. Go back to Disk Management. Then Right-click on the BackupStore (M:) and go to Properties.Disk Management
  3. Go to the “Shadow Copies” tab. Select the volume where you are going to store the backup, which in this case is (M:), and then click “Settings“.Backup Store
  4. In the Shadow Copies Settings section, just select the No limit as the Maximum Size, as seen below in the screenshot. This option will allow all the space available in the volume for the AD backup.Shadow Copies

Step 3. Installing the Windows Server Backup Feature

Windows Server 2019 comes with the Windows Server Backup feature, which is essentially the same as Windows Server Backup 2016.

This feature can help you perform Active Directory database backups and restores.

Although many third-party tools help you deliver Active Directory backup and restore, the Windows Server Backup Feature is easy to use and is already bundled with Windows Server – and most importantly, 100% FREE.

So if you haven’t used the backup feature yet, you will likely have to install it first.

The way to install this feature is through the Server Manager.

  1. Open the Server Manager console.Server Manager Console
  2. Select your Local Server. Go to the Manage tab on the right upper-hand and click on the Add Roles and Features as seen in the image below.Add Roles and Features
  3. This will open the Add Roles and Features Wizard – Here you’ll see the Installation Type screen. Select the Role-based or feature-based installation and click Next.Features Wizzard
  4. The next screen will let you select the server on which you want to install the feature. Windows will automatically display the server pool. In this case, we are going to select the local server, which is WD2K19-DC01-mylablocal.Server Selection
  5. In the next screen, you can select the roles to install on the server. We are installing a feature, so you can continue to the next screen.Server Roles
  6. In the Features screen below, you’ll need to Find and Select the Windows Server Backup feature, as seen in the screenshot below.Server Features
  7. Confirm your installation. Make sure that the Windows Server Backup feature is on the screen and click on the Install button to begin the installation.Confirmation
  8. The feature will begin to install on your local server. Once the installation has been completed, you can close the console.Results

Step 4. Performing the Backup on AD

  1. Go back to the Server Manager. On the top right hand, select Tools and open the Windows Server Backup. You can also open this console by running the command wbadmin.msc on the Windows Run (Ctrl+R).Server Manager Winders Server Backup
  2. Once, you open the Windows Server Backup, you’ll be able to see scheduled backups and last backup status. Since this is the first time we do a backup here, you will not see any details.Local Windows Server Backup
  3. From the same console, go to Local Backup – Here you’ll see that there is no backup configured or no backup currently running for the local Domain Controller.
    Although you can also create an automatic scheduled backup to run daily or weekly at different hours, for this demonstration we are going to create a manual backup.
    To begin a manual AD database backup, go to Backup Once, on the right-hand window.Local Backup
  4. The Backup Once option will let you configure all the details of your Backup, such as backup items and destination.
    In the first screen, Backup Options select Different Options – The Scheduled Backup Options is grayed out because we are only doing a manual backup.Backup Options
  5. In the next screen, Select Backup Configuration and you’ll have two options,
    – Full Server (recommended)
    – Custom
    As you may notice the Full Server backup is the recommended option, as it creates a copy of all the server data, including applications, and the system state.But for this time, we’ll only backup System State – So click on Custom and click NextSetup Backup Config Custom
  6. In the Select Items for Backup screen, you’ll specify the items that you want to include in the backup.
    Items can be Bare Metal Recovery, System State, System Restore, or any other volume on the server.
    For now, there are no items specified on the backup; so go ahead and click on Add ItemsSelect Items for Backup
  7. In this backup, we are going to choose the System State Backup item, which is a copy of the most important Operating System components.
    The “System State Backup” components include:
  • Windows System Registry.
  • Performance Counter Configuration
  • Component Services Class database
  • Boot and system files.
  • Active Directory Database
  • Certificate Services.
  • Sysvol file.

8. Go ahead and check the box “System State,” and click “OkSystem State

9. You’ll see the “System State” item on the list for Backup.
Now we are going to configure the Volume Shadow Copy Service (VSS) for this backup item.
Go ahead and click on “Advanced SettingsAdvanced Settings

10. In Advanced Settings, go to the VSS Settings.
Here you’ll be able to choose the type of VSS backup that you’ll be creating.
Since we are not using any third-party application to perform the backup, select the “VSS Full Backup
This option allows you to create a backup of all the files.
After the VSS Full Backup is finished, the backup application may shorten logs or change files.

The VSS Copy Backup on the other hand also does a full backup but preserves all the application files including logs on the system.

This option is the preferred method for incremental backups, as it does not affect the sequence of backup.

In other words, it prevents AD data from being modified while the backup is in progress.

The VSS copy backup can’t be used for starting an incremental backup (or restore).

So, since this is the first backup and we are not using any third-party backup tool, we’ll go for the “VSS Full Backup” option.VSS full backup

11. In the next screen, “Specify Destination Type” you’ll need to select the type of storage for the backup.
Here you’ll be able to choose between Local Drive or Remote Shared Folder.
For the purpose of this demonstration, we are using a local hard disk to store the backup.
So choose “Local Drives” and click “NextSpecify Destination Type

12. In the next screen, “Select Backup Destination” you can choose the partition where you want to store the backup.
By default, the “BackupStore M:” is already selected.
So make sure to select the right destination and click “NextSelect Backup Destination

13. The next screen “Confirmation“, lets you double-check that all backup parameters are set correctly.
Once, you are ready, click the “Backup” button. Confirmation

14. The backup should take some time depending on the size of the domain controller server.
Once the backup is completed successfully, you can close the Backup Console.Backup Progress

15. If you closed the Backup Wizard without waiting for the last message status, the backup will continue to run on the background.
You can also confirm the status and completion results of the backup from the webadmin console (or Windows Server Backup Feature).
The console will display a message with information from this backup (and others).
It will show the timestamp, type, and results.Backup Wizard

Final Words

The main objective of this Active Directory backup demonstration was to manually store a copy of one of the two domain controllers on the local volume of the Windows server.

We manually ran a “Backup Once” but you can also configure a “Backup Schedule,” to run regular daily backup tasks.

You can also choose between a Full Backup vs. a Custom Backup.

The full backup will create a copy of all server data, including applications, OS files, and the system state. In this demonstration, we ran a customize “System State” backup, which includes essential components needed to restore Active Directory.

As already mentioned before in the Backup Recommendations section, always backup at least once a day and follow the 3-2-1 rule.

Also, remember always to have more than one domain controller running with fault-tolerance. When one DC fails, the other one should take over.

Although you can use third-party tools to run backups, the Windows Server Backup Feature comes for free as a bundled tool, and it is really easy to use.