Recovering mailboxes list.
dwhite at olp.net
Fri May 13 09:55:37 EDT 2011
On 12/05/11 15:19 -0300, Fabio S. Schmidt wrote:
>I'd like to learn some methods to recover a Cyrus Backend, currently I am
>able to restore with the mailboxes list exported using "ctl_mboxlist".
There are several databases that you should probably be backing up. See:
Everything except the *_cache databases contain persistent data.
I believe most of those are contained underneath your configured
>But, how can I restore the mailboxes if I dont have the mailboxes list
>exported? Assuming I have only the mailboxes directories, how could I
>rebuild the mailboxes.db? I'm using cyrus 2.4.6.
You could probably generate a mailbox list with a bit of wrangling with:
find . -type d
underneath your mail spool, and then use cvt_cyrusdb or cyr_dbtool to
insert that database back into your mailboxes db.
>Just another question, is there any way to rebuild the mailboxes list from
>a mailboxes.db file?
mailboxes.db is your mailbox database. You can use 'file mailboxes.db' to
determine which database format you're using. In the event of a recovery
(assuming all software versions are the same), copying over everything
under 'configdirectory' is a good first step.
You can also use cvt_cyrusdb to dump the contents of mailboxes.db into a
flat text format.
More information about the Info-cyrus