Basic FAQs and HOWTOs

Craig White craigwhite at azapple.com
Wed Feb 23 00:11:03 EST 2005


On Tue, 2005-02-22 at 23:25 -0500, Forrest Aldrich wrote:
> Is there a FAQ on disaster recovery and such for Cyrus IMAP.   If not, 
> there ought to be one ;-)
> 
> Some of the more esoteric items such as the ctl_* commands - and what to 
> do when your server (db) goes south, etc.
----
make copies of the db or just move it into a folder.

backups are automatically created by system - at least on my setup,
there are a few of them...

# ls -l /var/lib/imap/*db /var/lib/imap/db.backup*
-rw-------    1 cyrus    mail          144 Feb 16
23:23 /var/lib/imap/annotations.db
-rw-------    1 cyrus    mail      1744896 Feb 22
21:53 /var/lib/imap/deliver.db
-rw-------    1 cyrus    mail        22032 Feb 21
21:09 /var/lib/imap/mailboxes.db
-rwxr-xr-x    1 cyrus    mail         1330 Feb  5
22:34 /var/lib/imap/recover-mailboxes.db
-rw-------    1 cyrus    mail         8192 Feb 22
04:00 /var/lib/imap/tls_sessions.db

/var/lib/imap/db:
total 21216
-rw-------    1 cyrus    mail        16384 Feb 16 23:23 __db.001
-rw-------    1 cyrus    mail       663552 Feb 16 23:23 __db.002
-rw-------    1 cyrus    mail        98304 Feb 16 23:23 __db.003
-rw-------    1 cyrus    mail     23068672 Feb 16 23:23 __db.004
-rw-------    1 cyrus    mail        32768 Feb 16 23:23 __db.005
-rw-------    1 cyrus    mail      4686575 Feb 22 22:09 log.0000000004
-rw-------    1 cyrus    mail            4 Feb 16 23:23 skipstamp

/var/lib/imap/db.backup1:
total 4608
-rw-------    1 cyrus    mail          144 Feb 22 21:53 annotations.db
-rw-------    1 cyrus    mail      4675753 Feb 22 21:53 log.0000000004
-rw-------    1 cyrus    mail        22032 Feb 22 21:53 mailboxes.db

/var/lib/imap/db.backup2:
total 4584
-rw-------    1 cyrus    mail          144 Feb 22 21:23 annotations.db
-rw-------    1 cyrus    mail      4649358 Feb 22 21:23 log.0000000004
-rw-------    1 cyrus    mail        22032 Feb 22 21:23 mailboxes.db

of course on this setup, it isn't cyrus but db4 (sleepy cat) that is the
db. You might want to read up on db_recover/db_verify (there are man
pages)

Craig


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list