Re: Recovering mailboxes list.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks !  I really appreciate your answer, was conclusive and very helpful.

My best regards!

Fabio S. Schmidt
Brasília - Brazil

----- Original Message -----
From: Dan White [mailto:dwhite@xxxxxxx]
To: fabio@xxxxxxxxxxxxxx
Cc: info-cyrus@xxxxxxxxxxxxxxxxxxxx
Sent: Fri, 13 May 2011 08:55:37 -0500
Subject: Re: Recovering mailboxes list.

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:

http://www.cyrusimap.org/docs/cyrus-imapd/2.4.8/internal/database-formats.php

Everything except the *_cache databases contain persistent data.

I believe most of those are contained underneath your configured
'configdirectory' location.

>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.

--
Dan White
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux