{"id":320,"date":"2009-06-26T00:24:25","date_gmt":"2009-06-26T00:24:25","guid":{"rendered":"http:\/\/blog.cyberwizzard.nl\/?p=320"},"modified":"2016-03-20T15:40:30","modified_gmt":"2016-03-20T14:40:30","slug":"restoring-exchange-20032008-using-bacula","status":"publish","type":"post","link":"https:\/\/blog.cyberwizzard.nl\/?p=320","title":{"rendered":"Restoring Exchange 2003\/2008 using Bacula"},"content":{"rendered":"<p>Because the instructions in the Bacula documentation left me hanging on how to actually restore the Exchange data from a backup, I am writing this little summary after extracting all information from the mailing lists.<\/p>\n<p>In my case, I have one server called &#8216;axmail-fd&#8217; running Exchange 2003 and another server called &#8216;axemail-fd&#8217; running Exchange 2003 SP2. The following steps are needed to restore into the Recovery Storage Group on the new server in order to migrate the mail from the old to the new server.<\/p>\n<p>To prepare, please create the Recovery Storage Group on the target Exchange server. Create the database name you want to recover, for example &#8220;Mailbox Store (AXMAIL)&#8221;, which will generate a &#8220;Mailbox Store (AXMAIL).edb&#8221; in the Recovery Storage Group folder. Clear out any log files or other remnants of previous restores as Exchange tends to get confused if data from multiple databases are in there.<\/p>\n<p>Start bconsole, select the restore mode and select the Exchange backup to restore:<\/p>\n<pre class=\"code hl hl-bash\"><span class=\"sy0\">*<\/span>restore\nFirst you <span class=\"kw1\">select<\/span> one or <span class=\"kw2\">more<\/span> JobIds that contain files to be restored. \nYou will be presented several methods of specifying the JobIds. Then \nyou will be allowed to <span class=\"kw1\">select<\/span> <span class=\"kw2\">which<\/span> files from those JobIds are to be restored.\nTo <span class=\"kw1\">select<\/span> the JobIds, you have the following choices: &nbsp; &nbsp; \n<span class=\"nu0\">1<\/span>: List <span class=\"kw2\">last<\/span> <span class=\"nu0\">20<\/span> Jobs run &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"nu0\">2<\/span>: List Jobs where a given File is saved &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"nu0\">3<\/span>: Enter list of comma separated JobIds to <span class=\"kw1\">select<\/span> &nbsp; &nbsp;\n<span class=\"nu0\">4<\/span>: Enter SQL list <span class=\"kw3\">command<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"nu0\">5<\/span>: Select the most recent backup <span class=\"kw1\">for<\/span> a client &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"nu0\">6<\/span>: Select backup <span class=\"kw1\">for<\/span> a client before a specified <span class=\"kw1\">time<\/span> &nbsp; &nbsp; \n<span class=\"nu0\">7<\/span>: Enter a list of files to restore &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"nu0\">8<\/span>: Enter a list of files to restore before a specified <span class=\"kw1\">time<\/span> &nbsp; &nbsp; \n<span class=\"nu0\">9<\/span>: Find the JobIds of the most recent backup <span class=\"kw1\">for<\/span> a client &nbsp; &nbsp; &nbsp;\n<span class=\"nu0\">10<\/span>: Find the JobIds <span class=\"kw1\">for<\/span> a backup <span class=\"kw1\">for<\/span> a client before a specified <span class=\"kw1\">time<\/span> &nbsp; &nbsp;\n<span class=\"nu0\">11<\/span>: Enter a list of directories to restore <span class=\"kw1\">for<\/span> found JobIds &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"nu0\">12<\/span>: Cancel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \nSelect item: &nbsp;<span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span>-<span class=\"nu0\">12<\/span><span class=\"br0\">&#41;<\/span>: <span class=\"nu0\">5<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n&nbsp;Defined Clients: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n... &nbsp; &nbsp; \n<span class=\"nu0\">4<\/span>: axmail-fd &nbsp; &nbsp; \n... &nbsp; &nbsp;\n<span class=\"nu0\">10<\/span>: axemail-fd\nSelect the Client <span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span>-<span class=\"nu0\">10<\/span><span class=\"br0\">&#41;<\/span>: <span class=\"nu0\">4<\/span>\n\nThe defined FileSet resources are:\n<span class=\"nu0\">1<\/span>: AXMAIL Full Data Set\n<span class=\"nu0\">2<\/span>: Exchange\nSelect FileSet resource <span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span>-<span class=\"nu0\">2<\/span><span class=\"br0\">&#41;<\/span>: <span class=\"nu0\">2<\/span>\n+-------+-------+----------+---------------+---------------------+-------------------------------+\n<span class=\"sy0\">|<\/span> JobId <span class=\"sy0\">|<\/span> Level <span class=\"sy0\">|<\/span> JobFiles <span class=\"sy0\">|<\/span> JobBytes &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span> StartTime &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"sy0\">|<\/span> VolumeName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"sy0\">|<\/span>\n+-------+-------+----------+---------------+---------------------+-------------------------------+\n<span class=\"sy0\">|<\/span> &nbsp; &nbsp;<span class=\"nu0\">90<\/span> <span class=\"sy0\">|<\/span> F &nbsp; &nbsp; <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; <span class=\"nu0\">13<\/span> <span class=\"sy0\">|<\/span> <span class=\"nu0\">5<\/span>,<span class=\"nu0\">313<\/span>,<span class=\"nu0\">968<\/span>,<span class=\"nu0\">371<\/span> <span class=\"sy0\">|<\/span> <span class=\"nu0\">2009<\/span>-06-<span class=\"nu0\">24<\/span> <span class=\"nu0\">15<\/span>:<span class=\"nu0\">36<\/span>:<span class=\"nu0\">10<\/span> <span class=\"sy0\">|<\/span> Deventer_Exchange_Backup_0013 <span class=\"sy0\">|<\/span>\n<span class=\"sy0\">|<\/span> &nbsp; &nbsp;<span class=\"nu0\">90<\/span> <span class=\"sy0\">|<\/span> F &nbsp; &nbsp; <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; <span class=\"nu0\">13<\/span> <span class=\"sy0\">|<\/span> <span class=\"nu0\">5<\/span>,<span class=\"nu0\">313<\/span>,<span class=\"nu0\">968<\/span>,<span class=\"nu0\">371<\/span> <span class=\"sy0\">|<\/span> <span class=\"nu0\">2009<\/span>-06-<span class=\"nu0\">24<\/span> <span class=\"nu0\">15<\/span>:<span class=\"nu0\">36<\/span>:<span class=\"nu0\">10<\/span> <span class=\"sy0\">|<\/span> Deventer_Exchange_Backup_0014 <span class=\"sy0\">|<\/span>\n<span class=\"sy0\">|<\/span> &nbsp; &nbsp;<span class=\"nu0\">91<\/span> <span class=\"sy0\">|<\/span> I &nbsp; &nbsp; <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"nu0\">5<\/span> <span class=\"sy0\">|<\/span> &nbsp; &nbsp; <span class=\"nu0\">2<\/span>,<span class=\"nu0\">671<\/span>,<span class=\"nu0\">174<\/span> <span class=\"sy0\">|<\/span> <span class=\"nu0\">2009<\/span>-06-<span class=\"nu0\">24<\/span> <span class=\"nu0\">17<\/span>:<span class=\"nu0\">28<\/span>:<span class=\"nu0\">25<\/span> <span class=\"sy0\">|<\/span> Deventer_Exchange_Backup_0014 <span class=\"sy0\">|<\/span>\n<span class=\"sy0\">|<\/span> &nbsp; &nbsp;<span class=\"nu0\">92<\/span> <span class=\"sy0\">|<\/span> I &nbsp; &nbsp; <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"nu0\">5<\/span> <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; <span class=\"nu0\">233<\/span>,<span class=\"nu0\">882<\/span> <span class=\"sy0\">|<\/span> <span class=\"nu0\">2009<\/span>-06-<span class=\"nu0\">24<\/span> <span class=\"nu0\">18<\/span>:00:01 <span class=\"sy0\">|<\/span> Deventer_Exchange_Backup_0014 <span class=\"sy0\">|<\/span>\n<span class=\"sy0\">|<\/span> &nbsp; <span class=\"nu0\">118<\/span> <span class=\"sy0\">|<\/span> I &nbsp; &nbsp; <span class=\"sy0\">|<\/span> &nbsp; &nbsp; &nbsp; <span class=\"nu0\">17<\/span> <span class=\"sy0\">|<\/span> &nbsp; &nbsp;<span class=\"nu0\">40<\/span>,099,025 <span class=\"sy0\">|<\/span> <span class=\"nu0\">2009<\/span>-06-<span class=\"nu0\">25<\/span> <span class=\"nu0\">18<\/span>:00:02 <span class=\"sy0\">|<\/span> Deventer_Exchange_Backup_0014 <span class=\"sy0\">|<\/span>\n+-------+-------+----------+---------------+---------------------+-------------------------------+\n\nYou have selected the following JobIds: <span class=\"nu0\">90<\/span>,<span class=\"nu0\">91<\/span>,<span class=\"nu0\">92<\/span>,<span class=\"nu0\">118<\/span>\nBuilding directory <span class=\"kw2\">tree<\/span> <span class=\"kw1\">for<\/span> JobId<span class=\"br0\">&#40;<\/span>s<span class=\"br0\">&#41;<\/span> <span class=\"nu0\">90<\/span>,<span class=\"nu0\">91<\/span>,<span class=\"nu0\">92<\/span>,<span class=\"nu0\">118<\/span> ...\n<span class=\"nu0\">24<\/span> files inserted into the tree.<\/pre>\n<p>Now we want to select the entire First Storage Group to restore, except for the Public Folders store.<\/p>\n<p>Note: If you have the mailbox store defined, perhaps the restoration will work. An old mailing list conversation in 2008 stated that it was only possible to restore one database at a time &#8211; hence we now unmark the Public Folder.<\/p>\n<pre class=\"code hl hl-bash\">You are now entering <span class=\"kw2\">file<\/span> selection mode where you add <span class=\"br0\">&#40;<\/span>mark<span class=\"br0\">&#41;<\/span> and\nremove <span class=\"br0\">&#40;<\/span>unmark<span class=\"br0\">&#41;<\/span> files to be restored. No files are initially added, unless\nyou used the <span class=\"st0\">&quot;all&quot;<\/span> keyword on the <span class=\"kw3\">command<\/span> line. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \nEnter <span class=\"st0\">&quot;done&quot;<\/span> to leave this mode. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\ncwd is: <span class=\"sy0\">\/<\/span>$ mark <span class=\"sy0\">*<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"nu0\">29<\/span> files marked. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n$ <span class=\"kw3\">cd<\/span> <span class=\"st0\">&quot;@EXCHANGE\/Microsoft Information Store\/First Storage Group&quot;<\/span>\ncwd is: <span class=\"sy0\">\/@<\/span>EXCHANGE<span class=\"sy0\">\/<\/span>Microsoft Information Store<span class=\"sy0\">\/<\/span>First Storage Group<span class=\"sy0\">\/<\/span>\n$ unmark Public<span class=\"sy0\">*<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"nu0\">4<\/span> files unmarked. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n$ lsmark &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FC5.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FC6.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FC7.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FC8.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FC9.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FCA.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FCB.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FCC.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FCD.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FCE.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FCF.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FD0.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FD1.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FD2.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FD3.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FD4.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FD5.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\E0002FD6.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<span class=\"sy0\">*<\/span>Mailbox Store <span class=\"br0\">&#40;<\/span>AXMAIL<span class=\"br0\">&#41;<\/span><span class=\"sy0\">\/<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\priv1.edb &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"sy0\">*<\/span>C:\\Program Files\\Exchsrvr\\mdbdata\\priv1.stm &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<span class=\"sy0\">*<\/span>DatabaseBackupInfo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n$ <span class=\"kw1\">done<\/span>\n\nBootstrap records written to <span class=\"sy0\">\/<\/span>var<span class=\"sy0\">\/<\/span>bacula<span class=\"sy0\">\/<\/span>axnet-dir.restore.23.bsr &nbsp;\nThe job will require the following &nbsp; \nVolume<span class=\"br0\">&#40;<\/span>s<span class=\"br0\">&#41;<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Storage<span class=\"br0\">&#40;<\/span>s<span class=\"br0\">&#41;<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SD Device<span class=\"br0\">&#40;<\/span>s<span class=\"br0\">&#41;<\/span>\n===========================================================================\nDeventer_Exchange_Backup_ File &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FileStorage\n\n<span class=\"nu0\">25<\/span> files selected to be restored.\n\nRun Restore job\nJobName: &nbsp; &nbsp; &nbsp; &nbsp; RestoreFiles\nBootstrap: &nbsp; &nbsp; &nbsp; <span class=\"sy0\">\/<\/span>var<span class=\"sy0\">\/<\/span>bacula<span class=\"sy0\">\/<\/span>axnet-dir.restore.23.bsr\nWhere: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"sy0\">\/<\/span>tmp<span class=\"sy0\">\/<\/span>bacula-restores\nReplace: &nbsp; &nbsp; &nbsp; &nbsp; always\nFileSet: &nbsp; &nbsp; &nbsp; &nbsp; Empty FileSet\nBackup Client: &nbsp; axmail-fd\nRestore Client: &nbsp;axmail-fd\nStorage: &nbsp; &nbsp; &nbsp; &nbsp; File\nWhen: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"nu0\">2009<\/span>-06-<span class=\"nu0\">26<\/span> 00:<span class=\"nu0\">44<\/span>:<span class=\"nu0\">50<\/span>\nCatalog: &nbsp; &nbsp; &nbsp; &nbsp; MyCatalog\nPriority: &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"nu0\">10<\/span>\nPlugin Options: &nbsp;<span class=\"sy0\">*<\/span>None<span class=\"sy0\">*<\/span><\/pre>\n<p>We now need to change the target to the new server and clear out the Where setting:<\/p>\n<pre class=\"code hl hl-bash\">OK to run? <span class=\"br0\">&#40;<\/span>yes<span class=\"sy0\">\/<\/span>mod<span class=\"sy0\">\/<\/span>no<span class=\"br0\">&#41;<\/span>: m\nParameters to modify: &nbsp; &nbsp;\n<span class=\"nu0\">1<\/span>: Level &nbsp; &nbsp;\n<span class=\"nu0\">2<\/span>: Storage &nbsp; &nbsp;\n<span class=\"nu0\">3<\/span>: Job &nbsp; &nbsp;\n<span class=\"nu0\">4<\/span>: FileSet &nbsp; &nbsp;\n<span class=\"nu0\">5<\/span>: Restore Client &nbsp; &nbsp;\n<span class=\"nu0\">6<\/span>: When &nbsp; &nbsp;\n<span class=\"nu0\">7<\/span>: Priority &nbsp; &nbsp;\n<span class=\"nu0\">8<\/span>: Bootstrap &nbsp; &nbsp;\n<span class=\"nu0\">9<\/span>: Where &nbsp; \n<span class=\"nu0\">10<\/span>: File Relocation &nbsp; \n<span class=\"nu0\">11<\/span>: Replace &nbsp; \n<span class=\"nu0\">12<\/span>: JobId &nbsp; \n<span class=\"nu0\">13<\/span>: Plugin Options\nSelect parameter to modify <span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span>-<span class=\"nu0\">13<\/span><span class=\"br0\">&#41;<\/span>: <span class=\"nu0\">5<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n\nThe defined Client resources are: &nbsp; &nbsp;\n<span class=\"nu0\">1<\/span>: bartje-fd &nbsp; &nbsp;\n<span class=\"nu0\">2<\/span>: nakor-fd &nbsp; &nbsp;\n<span class=\"nu0\">3<\/span>: hermione-fd\n<span class=\"nu0\">4<\/span>: snape-fd\n<span class=\"nu0\">5<\/span>: hagrid-fd\n<span class=\"nu0\">6<\/span>: axnet-fd\n<span class=\"nu0\">7<\/span>: axweb-fd\n<span class=\"nu0\">8<\/span>: axmail-fd\n<span class=\"nu0\">9<\/span>: axexact-fd\n<span class=\"nu0\">10<\/span>: axklant-fd\n<span class=\"nu0\">11<\/span>: axemail-fd\nSelect Client <span class=\"br0\">&#40;<\/span>File daemon<span class=\"br0\">&#41;<\/span> resource <span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span>-<span class=\"nu0\">11<\/span><span class=\"br0\">&#41;<\/span>: <span class=\"nu0\">11<\/span>\n\nRun Restore job\nJobName: &nbsp; &nbsp; &nbsp; &nbsp; RestoreFiles\nBootstrap: &nbsp; &nbsp; &nbsp; <span class=\"sy0\">\/<\/span>var<span class=\"sy0\">\/<\/span>bacula<span class=\"sy0\">\/<\/span>axnet-dir.restore.23.bsr\nWhere: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"sy0\">\/<\/span>tmp<span class=\"sy0\">\/<\/span>bacula-restores\nReplace: &nbsp; &nbsp; &nbsp; &nbsp; always\nFileSet: &nbsp; &nbsp; &nbsp; &nbsp; Empty FileSet\nBackup Client: &nbsp; axmail-fd\nRestore Client: &nbsp;axemail-fd\nStorage: &nbsp; &nbsp; &nbsp; &nbsp; File\nWhen: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"nu0\">2009<\/span>-06-<span class=\"nu0\">26<\/span> 00:<span class=\"nu0\">44<\/span>:<span class=\"nu0\">50<\/span>\nCatalog: &nbsp; &nbsp; &nbsp; &nbsp; MyCatalog\nPriority: &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"nu0\">10<\/span>\nPlugin Options: &nbsp;<span class=\"sy0\">*<\/span>None<span class=\"sy0\">*<\/span>\nOK to run? <span class=\"br0\">&#40;<\/span>yes<span class=\"sy0\">\/<\/span>mod<span class=\"sy0\">\/<\/span>no<span class=\"br0\">&#41;<\/span>: m\n\nParameters to modify: &nbsp; &nbsp;\n<span class=\"nu0\">1<\/span>: Level &nbsp; &nbsp;\n<span class=\"nu0\">2<\/span>: Storage &nbsp; &nbsp;\n<span class=\"nu0\">3<\/span>: Job &nbsp; &nbsp;\n<span class=\"nu0\">4<\/span>: FileSet &nbsp; &nbsp;\n<span class=\"nu0\">5<\/span>: Restore Client &nbsp; &nbsp;\n<span class=\"nu0\">6<\/span>: When &nbsp; &nbsp;\n<span class=\"nu0\">7<\/span>: Priority &nbsp; &nbsp;\n<span class=\"nu0\">8<\/span>: Bootstrap &nbsp; &nbsp;\n<span class=\"nu0\">9<\/span>: Where &nbsp; \n<span class=\"nu0\">10<\/span>: File Relocation &nbsp; \n<span class=\"nu0\">11<\/span>: Replace &nbsp; \n<span class=\"nu0\">12<\/span>: JobId &nbsp; \n<span class=\"nu0\">13<\/span>: Plugin Options\nSelect parameter to modify <span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span>-<span class=\"nu0\">13<\/span><span class=\"br0\">&#41;<\/span>: <span class=\"nu0\">9<\/span>\nPlease enter path prefix <span class=\"kw1\">for<\/span> restore <span class=\"br0\">&#40;<\/span><span class=\"sy0\">\/<\/span> <span class=\"kw1\">for<\/span> none<span class=\"br0\">&#41;<\/span>: <span class=\"sy0\">\/<\/span>\n\nRun Restore job\nJobName: &nbsp; &nbsp; &nbsp; &nbsp; RestoreFiles\nBootstrap: &nbsp; &nbsp; &nbsp; <span class=\"sy0\">\/<\/span>var<span class=\"sy0\">\/<\/span>bacula<span class=\"sy0\">\/<\/span>axnet-dir.restore.23.bsr\nWhere:\nReplace: &nbsp; &nbsp; &nbsp; &nbsp; always\nFileSet: &nbsp; &nbsp; &nbsp; &nbsp; Empty FileSet\nBackup Client: &nbsp; axmail-fd\nRestore Client: &nbsp;axemail-fd\nStorage: &nbsp; &nbsp; &nbsp; &nbsp; File\nWhen: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"nu0\">2009<\/span>-06-<span class=\"nu0\">26<\/span> 00:<span class=\"nu0\">44<\/span>:<span class=\"nu0\">50<\/span>\nCatalog: &nbsp; &nbsp; &nbsp; &nbsp; MyCatalog\nPriority: &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"nu0\">10<\/span>\nPlugin Options: &nbsp;<span class=\"sy0\">*<\/span>None<span class=\"sy0\">*<\/span>\nOK to run? <span class=\"br0\">&#40;<\/span>yes<span class=\"sy0\">\/<\/span>mod<span class=\"sy0\">\/<\/span>no<span class=\"br0\">&#41;<\/span>: y\n\nJob queued. <span class=\"re2\">JobId<\/span>=<span class=\"nu0\">132<\/span>\nYou have messages.<\/pre>\n<p>Notice how we did not use any renaming on the database paths: if Exchange 2003 has a Recovery Storage Group defined, that group will receive any restores, making manual adjustment of the paths unneeded.<\/p>\n<h2 id=\"post-320-troubleshooting\">Troubleshooting <a class=\"heading-link\" href=\"https:\/\/blog.cyberwizzard.nl\/?p=320#troubleshooting\" title=\"Link to this section\">&#8734;<\/a><\/h2>\n<h3 id=\"post-320-error-0x7fe1f42\">Error 0x7fe1f42 <a class=\"heading-link\" href=\"https:\/\/blog.cyberwizzard.nl\/?p=320#error-0x7fe1f42\" title=\"Link to this section\">&#8734;<\/a><\/h3>\n<p>If you get this error: &#8220;Error: HrESERestoreAddDatabase failed with error 0xc7fe1f42 &#8211; Database not found. Check that the Database you are trying to restore actually exists in the Storage Group you are restoring to&#8221;. You have not created the database in the Exchange manager in the Recovery Storage Group. Make sure you created the database in the manager and check the name.<\/p>\n<h3 id=\"post-320-error-0xc7ff1004\">Error 0xc7ff1004 <a class=\"heading-link\" href=\"https:\/\/blog.cyberwizzard.nl\/?p=320#error-0xc7ff1004\" title=\"Link to this section\">&#8734;<\/a><\/h3>\n<p>I ran into this message after figuring out how to restore the data: &#8220;Error: HrESERestoreComplete failed with error 0xc7ff1004 &#8211; Unknown error&#8221;. The error is given by the FD after the data has been restored and the FD crashed after that.<\/p>\n<p>You can run the eseutil.exe against the .edb file to check the state (use <code class=\"not-hl\">eseutil \/mh filename.edb<\/code>) and you will probably see the state as &#8220;Dirty Shutdown&#8221;.<\/p>\n<p>The cause is a problem during the backup and is making the restore fail. If you have all the log files (E00xxxx.log in &#8216;restore&#8217; in the Recovery Storage Group folder) you can use the <code class=\"not-hl\">eseutil \/cc restore<\/code> command to replay the log files and fix the database.<\/p>\n<p>After replaying the logs, the database should mount fine and all the mail should be there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Because the instructions in the Bacula documentation left me hanging on how to actually restore the Exchange data from a backup, I am writing this little summary after extracting all information from the mailing lists. In my case, I have one server called &#8216;axmail-fd&#8217; running Exchange 2003 and another server called &#8216;axemail-fd&#8217; running Exchange 2003 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[368,369],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-linux-gentoolinux","tag-bacula","tag-exchange"],"views":1422,"_links":{"self":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320"}],"version-history":[{"count":3,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":579,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions\/579"}],"wp:attachment":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}