Hi,

my problem is the following. i settet up a mailserver according the
"debian_sarge-cyrus-howto.pdf" which i found on this site. after some
time, without running into problems, i would like t move the installation
from a test server to a more powerfull/stable one (both of them are
installed the same way - debian_sarge-cyrus-howto.pdf). i searched trough
the mailinglist to find some hints of how to do it. i found some
interesting stuff which describes how to move the cyrus db.

i managed to migrate the cyrus part with the following steps (posted in
this mailinglist by luc):

> So, how do I;
>
>       1. Backup and restore the MySQL database?
>       2. Backup and restore the users mail folders?
>       3. Keep the downtime to a minimum?
>Most important is:
>
>/usr/cyrus/bin/ctl_mboxlist -d > cyrus-db_dump
>
>This is needed if the bdb version (and the db fileformat) has changed.
>Then you can just restore the tarball(s) previousely made from
>/var/imap, /var/spool/imap, and /usr/sieve
>
>After that:
>
>rm /var/imap/mailboxes.db
>ctl_mboxlist -u < cyrus-db_dump
>
>To restore the database.
>
>reconstruct -r user
>is needed to recontruct the various other db files in the user folders.
>
>MySQL: beween minor released (e.g 4.0.9 to 4.0.20) AFAIK, the fileformat
>does not change.
>
>Anyway, a dump would be more secure in case something does not work:
>
>mysqldump -u mail -p mail > mail.sql
>
>to restore typ "mysql -u mail -p < mail.sql"
>
>I'm working on a new HOWTO version that covers some daily admin tasks
>like backup and restore.
>
>I appreciate every suggestion and report how you folks out ther do your
>backups.

As already mentioned that worked fine. I also copied the
/var/spool/imap/users folder from the old to the new server. after booting
the new server i thought that everything will work, but i was wrong. login
in to cyradmin tells me that the Quotas aren't set for any user account. I
was able to set it using webcyradmin but after i settet it it tells me
that 0% of account test.mydomain.ch is used, even if i have a lot of
emails in this mailbox.

are there some special things which i have to do to be able to move the
users folder (where all the mails are stired) ?

once i used imapsync and it worked fine. i also saw the imap2imap-copy.php
script but it would be simpler to only copy the all the files from a users
folder from the old to the new server.

cheers,
patrick

_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to