I am working on a project to recover 30 individual days of email from a clients mailbox. This requires me to restore 30 days worth of backups to the Recovery Storage Group(RSG) on a specific server. I have quickly grown tired of selecting the name from the giant Exmerge list and worked out how to use a batch file to run Exmerge against the RSG.
Part 1: Exmerge.ini
[Exmerge]
MergeAction=0
RestoreDB=1
FileContainingListOfDatabases=database.txt
SourceServerName=<Exchange Server Name>
FileContainingListOfMailboxes=Mailboxes.txt
CopyDeletedItemsFromDumpster=1
DataDirectoryName=D:\EXMERGEDATA
LogFileName=ExMerge.logPart 2: database.txt
CN=SG1-PRIV1,CN=RECOVERY STORAGE GROUPPart 3: mailboxes.txt
/o=<Organization Name>/ou=First Administrative Group/cn=Recipients/cn=<MailboxAlias>
/o=<Organization Name>/ou=First Administrative Group/cn=Recipients/cn=<MailboxAlias2>Part 4: the Batch file (exportMbx.bat)
exmerge.exe -b -f exmerge.ini I've now put a shortcut to the bat file on my desktop and double-click it after the restore completes. If I could only find a script that would then dismount the database, mark it for overwrite and start a new restore from the server, I'd be done! Unfortunately, I've been told by Microsoft you can't script against the RSG, so still got a bunch of clicks for each day.
Back to work...
Comments
Post new comment