This article is important for any customers who have our Exchange Granular Restore Add-on, because it explains common mistakes that are made when creating backups for EGR.
Exchange Granular Restore (EGR) is a BackupAssist Add-on that allows you to restore mailbox items such a emails, tasks, file attachments, contacts and of course, mailboxes.
What backup type should you use?
Exchange Granular Restore can restore mail items from backups created by File Protection, File Archiving, System Protection and Cloud Backup. This can be the same backup job that you use to back up your other data, as long as you back up the required Exchange data.
- Backing up an Exchange Storage group allows you to restore mail items.
- Backing up an Exchange Server allows you to restore mail items as well as the Exchange Server.
What Exchange data should you back up?
Exchange Granular Restore can restore mail items from File Protection, File Archiving and System Protection backups but those backup jobs mustÂ back up Exchange correctly â€“ as explained in this section.
Exchange Servers are backed up while they are running and while data is changing. For this reason, VSS is used to maintain a crash-consistent copy of the Exchange data while it is being backed up. This ensures that the backup represents the Exchange database at a single point in time â€“ the time the backup job started. VSS does this by maintaining a snapshot of the Exchange Serverâ€™s data, which the backup job uses to record any data that has changed since the backup job started.
In addition to the consistency provided by VSS, the Exchange Server has a VSS Writer that checks its own files in the VSS snapshot to make sure they are correct. For example, information in memory and uncompleted database transactions are included in the snapshot. By doing this, the Exchange Server makes sure that the data being backed up is not just crash-consistent, but that itâ€™s application-consistent.
To create an application-consistent backup, the Exchange VSS Writer must be used. For Exchange to use its VSS Writer, the full Exchange Server or the full storageÂ group must be selected and backed up. For this reason, you should never backup just the EDB database file.
- If you only backup the Exchange EDB file, Exchange will not be aware of the backup and will not use the VSS Writer, so your backup will not be application-consistent. It will only be crashâ€“consistent.
- You must select the Full Exchange Server or Database group to create an application-consistent backup.
Why are application-consistent backups important?
If you only back up the EDB file, you will only have a crash-consistent backup of your Exchange Serverâ€™s database. Crash-consistent is okay if all you need is files at same point in time, but for a database this is not enough. Data and logs are constantly changing so the backup must be application-consistent.
Imagine a transaction where data in a database is moved from location A to location B. If the first process, â€śremoving the data from location Aâ€ť is captured by the backup job but the process â€śadding the data to location Bâ€ť is not (completely) captured by the backup job, then you can have a consistency problem in the backup of your database. This could happen because the process of adding data to the other location was still being written or in memory, and therefore not captured by the backup job.
The result is a backup of a database where data was removed from one location but not added to the other. When you go to do the restore, the data may not be there, or it may be incomplete or corrupt.
Only Exchange can verify changes to its database while transactions are taking place, therefore an application-consistent backup is required by Exchange Granular Restore.
BackupAssist does not support Exchange Granular Restores from backups that are not application-consistent.
Has granular restoration of Exchange Servers saved your bacon?
Leave your story in the comments, tweet @BackupAssist or post to Facebook.
Share this article and help others make the most of Exchange Granular Restore.