
Store writer and Replication Writer
Of the two Writers Exchange Server 2007 provides, one is build into the Exchange store, and is referred to as the Store Writer; the second one is built into the Replication Service, and is referred to as the Replication Writer. Store Writer is available on any mailbox server and is responsible for backup/restore of active databases. Replication Writer is available on the passive node of CCR cluster as well as on any mailbox server that has at least one storage group configured with LCR. Replication Writer supports backup functionality for a selected storage group where the shadow copy is taken against the replicated instance of the database and transaction log files. Backups taken by the Replication Writer can be restored to the active database location by using the Store Writer.
Exchange Writers coordinate with the Exchange services (operating on behalf of the requestor) to prepare the storage group files for backups and freeze the IO activity due to Exchange transactions before backing it up, and then to unfreeze and truncate log files after the backup is complete.
During a restore, the backup/restore application instructs the Exchange Store Writer to coordinate with the Exchange store (operating on behalf of the requestor) to verify the restore targets, rename the database file if necessary, and then replay the transaction logs (as needed). Store Writer supports both backups and restores, while the Replication Writer supports only backups.
When restoring, the Requestor also communicates with the VSS to prepare the system for the restore, and then to put the data back onto the mass storage device. The backup/restore application is also responsible for working with Windows Server 2003 to read data from and write data to the backup storage media, whether a tape archive, a storage area network, or other backup medium.
Backup and restore applications must specify a number of Exchange Server 2007-specific parameters to correctly control and manage operations run by the VSS against Exchange Server 2007 storage groups and databases. For example, because Exchange Server 2007 storage groups include multiple databases, transaction log files and a checkpoint file, successfully backing up an Exchange Server 2007 storage group requires correctly specifying and processing those components (that is each database, transaction log file, and checkpoint file).