Troy and Alana
  • Home
  • Privacy Policy
  • Sitemap
  • Contact Us
Troy and Alana
Troy and Alana
  • Home
  • Privacy Policy
  • Contact Us

How to backup and restore with Microsoft DPM

  • Kane Dane
  • September 20, 2021

Microsoft DPM is a data protection and recovery solution that helps you to protect your business-critical information. This article provides an overview of the backup process, including how to back up, restore, and recover data using DPM.

Microsoft DPM is a backup and recovery tool that allows you to backup and restore data. It can be used with Windows Server 2008 R2, 2012, and 2016.

We’ve completed the installation and setup of Microsoft DPM 2019, and now it’s time to build and test a backup operation. I’ll just cover data backup and recovery (AD, File, Exchange, and SQL); I won’t go into bare metal backup and restoration. I don’t typically use Microsoft DPM for bare metal restore since I have alternative tools for it.

Before we get started, let’s have a look at

If you want to learn more about this lab, check out my blog posts on “How to install DPM 2019” and “Configuring DPM 2019.” In those two pieces, I went through all of the details in great detail.

We’ll get to work right away.

Putting Together a Protection Group

Protection Group for Alzheimer’s Disease

I’ll make a few of protective groups – of course, you may do what you think is best for you.

I’ll create an AD protection group, a Group for File Protection, an Group for Exchange Protection, and a SQL Security Group.

Select Protection | New | The wizard to Create a New Protection Group will appear | Next

How-to-backup-and-restore-with-Microsoft-DPM

I’ll choose Servers | Next.

1632160913_784_How-to-backup-and-restore-with-Microsoft-DPM

On the next page, you’ll see a list of all the servers where you’ve deployed agents (we gone through that in Configuring DPM 2019 guide). We’ll go with DC1.

1632160913_571_How-to-backup-and-restore-with-Microsoft-DPM

A pop-up window will display. Read it, since this is what DPM can’t protect.

1632160914_94_How-to-backup-and-restore-with-Microsoft-DPM

This is what I’m going to protect on my AD – System Protection.

1632160914_830_How-to-backup-and-restore-with-Microsoft-DPM

You will get the following notice if you want to safeguard Sysvol on your AD. SYSVOL and NETLOGON are typically added to their own Protection Group; I will not include those maps in this Protection Group.

DC2 was also added to this Protection Group. Next

1632160915_311_How-to-backup-and-restore-with-Microsoft-DPM

I’m going to call my Protection Group “AD Protection Group,” and I’m going to use disk as a protection mechanism | Next

1632160916_691_How-to-backup-and-restore-with-Microsoft-DPM

I’m going to establish a 10-day retention period. The short-term disk retention rate may be adjusted to a maximum of 448 days. When calculating your retention range, you must account for disk capacity. Every day at 8:00 a.m., I’ll also choose Express Full Backup | Next

This is something you should calculate and think about for yourself; there is no best practice here; it’s all about your requirements.

https://docs.microsoft.com/en-us/system-center/dpm/plan-long-and-short-term-data-storage?view=sc-dpm-2019

1632160916_938_How-to-backup-and-restore-with-Microsoft-DPM

On the next page, you’ll get information about your disk allocation and available storage… So I chose 10 days of retention, which DPM estimated to 54.61GB under “Disk storage to be supplied on DPM.” If I choose, for example, 100 days, the total would be 168GB. It’s usually better to plan your backups, RTOs, and RPOs ahead of time, but if you don’t, DPM will alert you if you don’t have enough space for what you want to do.

IMPORTANT INFORMATION – DPM does not compute disk space properly, resulting in a replica is inconsistent error – the procedures to fix this are listed below, so make sure you follow them. This is the same problem I’ve seen since DPM 2010, and I can’t believe it hasn’t been resolved yet.

Next

1632160917_595_How-to-backup-and-restore-with-Microsoft-DPM

To build an initial replica, you have two options: manually uploading data or automatically beginning over the network. I have to admit that I prefer the manual option since there are times when you can’t get all of the data to backup (like branch office with weak internet connection). I’m going to choose “Automatically over the network” and “Do it Now.” Next

1632160918_635_How-to-backup-and-restore-with-Microsoft-DPM

“Run a consistency check if a replica becomes inconsistent,” I’d want to do next.

1632160918_51_How-to-backup-and-restore-with-Microsoft-DPM

Check the options and choose one. Form a Group

1632160919_926_How-to-backup-and-restore-with-Microsoft-DPM

…

1632160919_391_How-to-backup-and-restore-with-Microsoft-DPM

We can see that the formation of our first Protection Group was a perfect success after a little delay! Close

1632160920_7_How-to-backup-and-restore-with-Microsoft-DPM

Happiness, on the other hand, did not endure long. I proceeded to the protection page and intended to establish another recovery point right away, but I received an error message stating that I needed to conduct a consistency check. I tried it and got the following result: “Replica is inconsistent.” DPM was installed for the first time in a new LAB.

1632160920_399_How-to-backup-and-restore-with-Microsoft-DPM

“DPM dailed to make the backup,” according to the logs. If you’re just storing up System State, make sure you have adequate space on the protected machine to hold the backup. Verify that Windows Server Backup (WSB) is installed and that it is not executing any other backup or recovery tasks on protected machines running WS2008 or above.

1632160921_341_How-to-backup-and-restore-with-Microsoft-DPM

Let’s see if we can fix this on DC2. First and foremost, enable the Windows Server backup feature. (On the Windows Server Backup, do not schedule any tasks!!)

1632160921_663_How-to-backup-and-restore-with-Microsoft-DPM

Create a file share on one network client (with enough of storage space). I established a fileshare on DFS1 and called the share folder DFS1BareMetalShare.

Now, let’s return to the DC2. Start CMD in elevated mode (as Administrator) and enter the backup command as follows.

Replace DFS1BareMetalShare with the name of your network file share.

wbadmin.exe wbadmin.exe wbadmin.exe wbadmin. -allcritical -quiet -backuptarget:DFS1BareMetalShare-backuptarget:DFS1BareMetalShare-backuptarget:DFS1BareMetalShare-backuptarget:DF 1632160922_446_How-to-backup-and-restore-with-Microsoft-DPM

After some time, the backup was finished.

1632160923_526_How-to-backup-and-restore-with-Microsoft-DPM

I proceeded to the location where the backup was stored on the file sharing. The backup is 19.1 GB large.

1632160923_437_How-to-backup-and-restore-with-Microsoft-DPM

So, it seems that DPM calculates data size properly.

I simply activated Windows Server backup on DC1 and then ran a consistency check (without run wbadmin command). It turned out to be satisfactory.

1632160924_520_How-to-backup-and-restore-with-Microsoft-DPM

Okay, now we have a clear picture of the issue.

File Protection Group

I also have two DFS Servers that I’d want to secure. I’m more concerned about my ITDocs file sharing than with the operating system. As a result, I’ll back it up.

I also won’t go through the whole process (because it’s pretty much the same), so I’ll just go over the key portions. I chose IT Docs on both the DFS2 and DFS3 servers (these two are now operational; DFS1, as you can see on the screen, is not).

1632160924_17_How-to-backup-and-restore-with-Microsoft-DPM

File Protection Group was the name I gave to the group.

1632160925_964_How-to-backup-and-restore-with-Microsoft-DPM

There aren’t much information about File Protection Group.

1632160926_726_How-to-backup-and-restore-with-Microsoft-DPM

Everything is OK; I haven’t had any problems with AD protection.

1632160926_979_How-to-backup-and-restore-with-Microsoft-DPM

Exchange Protection Group

Again, I’ll just point out variations since the overall procedure is almost same. I have a DAG set up, so I’ll choose DAG DB1, which will automatically determine that servers ex1 and ex2 are members. If you don’t have DAG, you may choose the location of your database (I enlarged EX1 server to show you – database on E drive, logs on F drive).

1632160927_185_How-to-backup-and-restore-with-Microsoft-DPM

Exchange Protection Group is the name I gave to my Protection Group.

1632160927_644_How-to-backup-and-restore-with-Microsoft-DPM

I want Eseutil to run, and I also want it to run just for log files (since I have DAG in place)

1632160928_819_How-to-backup-and-restore-with-Microsoft-DPM

A minor blunder.

1632160928_247_How-to-backup-and-restore-with-Microsoft-DPM

The files ese.dll and eseutil.dll are stored in C:Exchange Server. Files for Programs V15Bin MicrosoftExchange Server

1632160929_180_How-to-backup-and-restore-with-Microsoft-DPM

I copied them to C: on the server that has my central DPM installation. Microsoft System CenterDPMDPMbin folderProgram FilesMicrosoft System CenterMicrosoft System CenterMicrosoft System CenterMicrosoft System

1632160929_578_How-to-backup-and-restore-with-Microsoft-DPM

After then, backup was activated. Because I have a DAG, it can’t perform a complete backup on both DBs, as the screen below shows. As a result, I chose Ex1 for a complete backup and Ex2 for a copy backup.

1632160930_611_How-to-backup-and-restore-with-Microsoft-DPM

My Exchange Protection Group Settings have resulted in this.

1632160930_841_How-to-backup-and-restore-with-Microsoft-DPM

Everything seems to be in order.

1632160931_63_How-to-backup-and-restore-with-Microsoft-DPM

SQL Protection Group

This will be the final one in this series.

Because SQL is set to Always ON, I’ll backup SQL using SQLCluster. If you just have one SQL server, you can see how it appears above, as I enlarged SQL1.

1632160931_276_How-to-backup-and-restore-with-Microsoft-DPM

The group will be called SQL Protection Group.

1632160932_345_How-to-backup-and-restore-with-Microsoft-DPM

These are the options available.

1632160933_453_How-to-backup-and-restore-with-Microsoft-DPM

I was able to create a group, but I received an error message saying that I was unable to set protection.

1632160933_176_How-to-backup-and-restore-with-Microsoft-DPM

“The DPM task for XY failed because the protection agent did not have administrator rights on the SQL Server instance,” says the message, which has been around for a long time (since early DPM versions).

1632160934_340_How-to-backup-and-restore-with-Microsoft-DPM

Open SSMS and go to Security, expand Logins, find NT AuthoritySYSTEM – right-click on it and choose Properties | expand Server Roles and select sysadmin. Carry out this procedure on all of your SQL servers that are included in the backup.

1632160934_694_How-to-backup-and-restore-with-Microsoft-DPM

Return to your DPM server and perform a consistency check on your SQL protection group by right-clicking it and selecting Perform consistency check. Yes, yes, yes, yes, yes, yes, yes, yes, yes, yes, yes, yes, yes

1632160935_562_How-to-backup-and-restore-with-Microsoft-DPM

We were able to eliminate one problem, but a new one emerged: Replica is inconsistent.

1632160935_946_How-to-backup-and-restore-with-Microsoft-DPM

This time, the error code is 3106, which means that the SQL Server instance has refused to connect to the protection agent (ID 30172).

1632160936_832_How-to-backup-and-restore-with-Microsoft-DPM

When you have an Always On replica, this error will display. Return to your SQL server and launch SSMS. Expand Always ON High Availability and right-click on the database you’re protecting and backing up – in my instance, TopDB | Properties. Change Readable Secondary from No to Yes under General | Availability Replicas.

1632160936_210_How-to-backup-and-restore-with-Microsoft-DPM

This is how it should seem.

1632160937_193_How-to-backup-and-restore-with-Microsoft-DPM

Finally, after doing a consistency check, everything seemed to be in order.

1632160937_290_How-to-backup-and-restore-with-Microsoft-DPM

Okay, the backups are complete, everything is green, and we can go on to the recovery portion.

How can I get my data back from DPM?

I’m getting ahead of myself, so I’ll simply show you how to restore data from the backups we just made.

I’m going to leave the AD and bare metal recovery guides I chose at the start for another guide. Here, I’ll teach you how to restore files and databases fast.

Recovering Data

Okay, I’ll go ahead and remove the file NewBeginnings.txt from the file server.

1632160938_734_How-to-backup-and-restore-with-Microsoft-DPM

Deleted

1632160939_300_How-to-backup-and-restore-with-Microsoft-DPM

Whatever you do, the procedure is the same (be it file, db or bare metal restore) In the DPM Administrator Console, go to the Recovery section | Select the server you want to restore – in my instance, DFS2 – and extend it to the E disk, which contains my ITDocs folder. Choose a day and time when you want to get back on track. I don’t have many options here, so it’ll be 7:31 a.m.

Finally, expand the ITDocs folder by clicking on it.

1632160939_281_How-to-backup-and-restore-with-Microsoft-DPM

That’s fantastic, I’ve removed the file NewBeginnings.txt from my backup. Recover it by right-clicking on it.

1632160940_308_How-to-backup-and-restore-with-Microsoft-DPM

Next, a new wizard emerges.

1632160940_329_How-to-backup-and-restore-with-Microsoft-DPM

I would want to return to my original location | Next

1632160941_422_How-to-backup-and-restore-with-Microsoft-DPM

On the next page, you may choose what the system should do if a copy of the file already exists (I chose Create copy) and Apply the destination computer’s security settings (this will restore user privileges to the file/folder). Next

1632160941_650_How-to-backup-and-restore-with-Microsoft-DPM

Let’s get back on track.

1632160942_178_How-to-backup-and-restore-with-Microsoft-DPM

The recuperation, according to the DPM, was a success.

1632160942_314_How-to-backup-and-restore-with-Microsoft-DPM

Yes, it was — the file has been restored!

1632160943_604_How-to-backup-and-restore-with-Microsoft-DPM

SQL Server Redundancy

I made a backup of the AlwaysON database. I then removed the AlwaysON group as well as the database. I’m sometimes asked whether there’s a method to perform granular recovery, as with files, and just recover one table. No, you can restore the whole database and then export/copy the table to the database you require.

Because I have a cluster, I am unable to choose Recover to original instance of SQL after starting recovery. If I choose Recover to any SQL server instance,

1632160943_630_How-to-backup-and-restore-with-Microsoft-DPM

I’m unable to restore my SQLCluster since the cluster was also destroyed when I deleted the AlwaysOn SQL group.

1632160944_79_How-to-backup-and-restore-with-Microsoft-DPM

In this situation, I believe the quickest and best solution is to just establish a file share and transfer the database to that file share. After that, you may connect the database to SQL, rebuild the cluster, and AlwaysON – before backing up. If you’re in a scenario like this, this is the quickest option.

1632160945_97_How-to-backup-and-restore-with-Microsoft-DPM

I established the SQL1DBRestore file sharing and chose it as the destination for the restoration.

1632160945_913_How-to-backup-and-restore-with-Microsoft-DPM

Configure the security settings

1632160946_920_How-to-backup-and-restore-with-Microsoft-DPM

Let’s get this party started.

1632160946_251_How-to-backup-and-restore-with-Microsoft-DPM

Done

1632160947_64_How-to-backup-and-restore-with-Microsoft-DPM

DB is, in fact, in place.

1632160947_151_How-to-backup-and-restore-with-Microsoft-DPM

I cleaned up the directory a little so there aren’t as many subdirs, and I gave my SQL user (sqldb admin) full rights on the database, logs folder, and log file, as well as making it the owner of the database and logs.

1632160949_586_How-to-backup-and-restore-with-Microsoft-DPM

I went into SQL SSMS and unchecked the DBs box. Attach a database – choose a database file and a log directory and file!

1632160949_184_How-to-backup-and-restore-with-Microsoft-DPM

The database is connected, and all of the tables and data are in place.

1632160950_454_How-to-backup-and-restore-with-Microsoft-DPM

In this scenario, I’d have to restore cluster and AlwaysON replication, but that’s a minor issue once I get my data back.

Recovery of Exchange

When compared to SQL, the situation on the Exchange server is a bit better. We can restore mailboxes (not individual emails! – for that, you’ll need to set up a retention policy).

In our exchange server, we have a mailbox for test.user2.

1632160950_983_How-to-backup-and-restore-with-Microsoft-DPM

That user will be removed from the system.

1632160951_207_How-to-backup-and-restore-with-Microsoft-DPM

On Ex1 Server, I also built a Recovery database called RDB1 so that I could restore mailboxes to it. On Exchange Server Ex1, we need to build a new recovery database using Exchange Powershell.

-Recovery -EdbFilePath E:ExDBRDB1.edb -LogFolderPath F:LogsRDB1 -New-MailboxDatabase -Server EX1 -Name RDB1 -Recovery -EdbFilePath E:ExDBRDB1.edb -EdbFilePath E:ExDBRDB1.edb -EdbF 1632160952_448_How-to-backup-and-restore-with-Microsoft-DPM

Service Exchange Information Store must be restarted!

Don’t be fooled: RDB isn’t visible in ECP; you can only handle it via Powershell!

Restore Database should be mounted.

RDB1-Database-Mount

Finally, we must set the overwrite flag for our RDB database.

set-mailboxdatabase RDB1 -AllowFileRestore $true set-mailboxdatabase RDB1 -AllowFileRestore $true set-mailboxdatabase R 1632160952_123_How-to-backup-and-restore-with-Microsoft-DPM

Let’s attempt to resurrect the user and observe what happens to the mailbox’s contents.

There will be a test. Let’s restore user2 from our backup.

1632160953_421_How-to-backup-and-restore-with-Microsoft-DPM

I’ll get it back into the Exchange server database.

1632160953_480_How-to-backup-and-restore-with-Microsoft-DPM

Ex1 is the name of the Exchange server, and RDB1 is the name of the recovery database. This was something I had planned for. It’s not a good idea to restore to your production/normal database!

1632160954_896_How-to-backup-and-restore-with-Microsoft-DPM

Let’s see if we can get the database back.

1632160954_476_How-to-backup-and-restore-with-Microsoft-DPM

Despite the fact that the recovery database’s overwrite flag was set, I received error 30174: “Recovery failed for Exchange Mailbox Database because the overwrite flag is not set for…”

1632160955_736_How-to-backup-and-restore-with-Microsoft-DPM

Ex1, Ex2 server, and DPM backup server were all restarted.

After that, I launched Exchange management shell as an administrator on Ex1 and ran the commands below.

RDB1 displayed AllowFileRestore as False for some reason, so I ran the command again to make it true.

Set-MailboxDatabase -Identity RDB1 -AllowFileRestore $true Get-MailboxDatabase | Select Name, Identity, and AllowFileRestore 1632160955_417_How-to-backup-and-restore-with-Microsoft-DPM

I knew I wasn’t going insane because whenever I tried to restore a mailbox and it failed with the error above or event id 2033, the AllowFileRestore flag was reset.

1632160956_153_How-to-backup-and-restore-with-Microsoft-DPM

This is something I’ve done before, and I’ve recorded it (for myself) – it works. I wasted 2.5 hours trying to figure out what was going on, but I couldn’t.

So, for the time being, it seems that we are unable to restore an item to Exchange.

Conclusion

Given that this is a Microsoft product designed to protect other Microsoft products, it contains far too many flaws. I originally wrote about DPM on this blog in 2014 – I’ve been using it for a long time (albeit not as a primary product somewhere) and I’m still amazed at how many problems I have with it every time I use it.

Anyway, it works great once you get it to function, but getting it to work may be a lengthy and difficult process.

Finally, after you get over all of the setup and configuration problems, I have to say I appreciate the product’s dependability.

Disclaimer

Microsoft DPM is a backup and restore solution that allows users to back up and restore data. This solution can be downloaded from the Microsoft website. Reference: microsoft dpm download.

Frequently Asked Questions

How do I restore using DPM?

To restore a saved game, you will need to use the DPM (Data Pack Management) tool that is included in the Beat Saber install folder.

How does DPM backup work?

DPM backup is a method of saving your game progress to an external hard drive. This allows you to save your game in case the PS4 crashes or if it is stolen, and also allows you to play on any console that has the same version of the game.

How does DPM backup SQL Server?

DPM backups SQL Server by taking a snapshot of the database. It then replays that snapshot to restore the database.

Related Tags

  • system center data protection manager 2019 download
  • bare metal recovery windows server 2016
  • bare metal recovery windows server 2012
  • microsoft data protection manager licensing
  • bare metal backup vs full backup
Kane Dane

Previous Article

Keto Popsicles | Blueberry Lemon Cheesecake!

  • Kane Dane
  • September 20, 2021
View Post
Next Article

How to Install Chrome OS in Windows 11 in Virtual Machine?

  • Kane Dane
  • September 21, 2021
View Post
Table of Contents
  1. Before we get started, let’s have a look at
  2. Putting Together a Protection Group
  3. How can I get my data back from DPM?
  4. SQL Server Redundancy
  5. Conclusion
    1. Frequently Asked Questions
Featured
  • 1
    Gut-Skin Axis: Can Your Digestion Be Sabotaging Your Glow?
    • April 29, 2025
  • 2
    Avoid These Common Pitfalls When Purchasing Property in Singapore
    • April 17, 2025
  • 3
    What Does a Commercial Director Do? Understanding Their Key Role in Your Business
    • April 12, 2025
  • 4
    HDB or Condo? The Real Differences That Will Make or Break Your Decision
    • April 7, 2025
  • 5
    Is a Financial Controller Worth the Investment for Small Businesses?
    • April 2, 2025
Must Read
  • 1
    Effective Strategies for Enhancing Your Business’s Financial Management
  • 2
    Download APL for PC Windows 10,8,7
  • 3
    Kareem Abdul-Jabbar, Kent Benson Have Different Versions of What Led to Ugly Sucker Punch, Broken Hand, and Record-Setting Fine
Contact us

Email: online@troyandalana.org

Troy and Alana
  • Home
  • Privacy Policy
  • Sitemap
  • Contact Us

Input your search keywords and press Enter.