Introduction
In this article, I would like to emphasize more on the types of data you backup in your organization and what options do we have and why we use those options in different scenarios.
Backing up and recovering Exchange data is a bit different than backing up other types of data, primarily because Exchange has different units of backup and recovery than Microsoft Windows. You not only work with files and drives, you also work with the information store and the data structures it contains. Remember, the information store can contain one or more storage groups and in turn, each storage group can contain one or more databases.
What makes a complete backup of an Exchange Server?
Storage groups and databases are the units of backup and recovery for the information store. Storage groups are the smallest units of backup, and mailboxes are the smallest units of recovery. In other words, you have the following backup and recovery options for the information store.
Backup Options – You can backup the following:
Recovery Options – You can recover the following:
Exchange 2000 and 2003 has greater ability to recover an individual database from backup compared to Microsoft Exchange 5.0 and Exchange 5.5. There are some fundamental issues about transactions we all should know before recover individual databases such as transactions, transaction logs, and transaction logging modes.
Exchange server uses transactions to control database changes. Imagine transaction as a logical unit of work that contains one or more operations that affect the information store. If all the operations in a transaction are successfully executed, Exchange Server marks the transaction as successful and permanently commits the change. Otherwise, marks the transaction as failed and removes any changes that the transaction created – this process is called rolling back.
Transactions logs are the units of storage for transactions. Exchange Server writes each transaction to a log file and maintains the log files according to the logging mode.
Following are the two transaction logging modes:
Standard – Using standard logging, Exchange server reserves 5 MB of disk space for the active transaction log. As soon as the contents of the log reach 5 MB, Exchange server creates new log file. Remember, the transaction logs are kept until the next Full Backup, and you recover Exchange Server to the last transaction.
Circular - Circular logging works much like standard logging with one key distinction. Exchange server overwrites transaction log files after data they contain has been committed to the database. This method reduces Exchange Server disk space requirements. The drawback is, Exchange Server cannot recover to the last transaction without old transactions logs which results Exchange server to recover only up to the last Full backup.
The ability to recover mailboxes selectively from backup is an improvement over Microsoft Exchange 2000. Recovery Storage Groups (RSG) is special types of storage groups that are reserved for recovery operations. You use RSG to restore mailboxes from any of the regular storage groups in an Exchange organization. You can recover individual or multiple mailboxes at the same time, provided the database for those mailboxes is in the same storage group. RSG cannot be used to restore public folder databases.
Note: The server on which you create recovery storage group must be in the same administrative group as the server for which you want to recover mailboxes. If you need to recover mailboxes stored on multiple Exchange servers, you don’t have to create a recovery storage group on each server. Instead, you can create one recovery storage group for each administrative group.
Choosing Backup OptionsYou can perform backups online (while exchange services are running) or offline (while exchange services are stopped). With online backups, you can archive the following items:
With offline backups, you are not able to archive Exchange configuration or user data. In other words, you can only archive the following items:
Here are the basic types of backups you may want to perform:
Important Note: You cannot perform incremental or differential backups with circular logging enabled because circular logging allows Exchange server to overwrite log files, which makes it impossible to reliably restore from transaction logs.
As a best practice, you may want to plan your backup in such a way that to perform full backups on a weekly basis and supplement them with nightly differential or incremental backups. Also carefully plan the tape rotation and off-site storage.