Thanks ! I really appreciate your answer, was conclusive and very helpful.<br><br>My best regards!<br><br>Fabio S. Schmidt<br>Brasília - Brazil<br><br><b>----- Original Message -----</b><br>
<b>From:</b> Dan White [mailto:dwhite@olp.net]<br>
<b>To:</b> fabio@improve.inf.br<br>
<b>Cc:</b> info-cyrus@lists.andrew.cmu.edu<br>
<b>Sent:</b> Fri, 13 May 2011 08:55:37 -0500<br>
<b>Subject:</b> Re: Recovering mailboxes list.<br><br>
<font face="courier new,courier,arial,helvetica,sans-serif">On 12/05/11 15:19 -0300, Fabio S. Schmidt wrote:<br>>I'd like to learn some methods to recover a Cyrus Backend, currently I am<br>>able to restore with the mailboxes list exported using "ctl_mboxlist".<br><br>There are several databases that you should probably be backing up. See:<br><br><a href="http://www.cyrusimap.org/docs/cyrus-imapd/2.4.8/internal/database-formats.php" target='_blank'>http://www.cyrusimap.org/docs/cyrus-imapd/2.4.8/internal/database-formats.php</a><br><br>Everything except the *_cache databases contain persistent data.<br><br>I believe most of those are contained underneath your configured<br>'configdirectory' location.<br><br>>But, how can I restore the mailboxes if I dont have the mailboxes list<br>>exported? Assuming I have only the mailboxes directories, how could I<br>>rebuild the mailboxes.db? I'm using cyrus 2.4.6.<br><br>You could probably generate a mailbox list with a bit of wrangling with:<br><br>find . -type d<br><br>underneath your mail spool, and then use cvt_cyrusdb or cyr_dbtool to<br>insert that database back into your mailboxes db.<br><br>>Just another question, is there any way to rebuild the mailboxes list from<br>>a mailboxes.db file?<br><br>mailboxes.db is your mailbox database. You can use 'file mailboxes.db' to<br>determine which database format you're using. In the event of a recovery<br>(assuming all software versions are the same), copying over everything<br>under 'configdirectory' is a good first step.<br><br>You can also use cvt_cyrusdb to dump the contents of mailboxes.db into a<br>flat text format.<br><br>-- <br>Dan White<br></font>