Jon Nelson wrote:
So if I'm to go down the road of copying the contents "outside" of IMAP, what would be the procedure to get Cyrus to accept everything afterwards?
Well, I recommend John Goerzen's offlineimap which can copy from imap-to-imap as of 4.0. I've not used that capability myself but it shouldn't be a problem. Alternatively, have you considered asking the Cyrus folks what to do? I'd bet they've been asked before and have an answer. ;-)
The question is related to "How do I recover Cyrus from scratch with my backup only". Maybe it's a good idea to gather enough knowledge so you can use it in an emergency case also. (^-^) It's also a very good opportunity to test your backup strategy. What is always recommended on cyrus sites is to - either stop cyrus for backup or do a snapshot with lvm - copy all data folders - copy all databases - if necessary (for migration/upgrade definitely!) export the databases in text format to be able to reimport them in case the db version differs. Last time this happened was from bdb 4.1 -> bdb 4.2 (imho Suse 9.2 -> 9.3), they were not compatible... So, how do you export the databases and what databases do you need to export? The most essential is the Database with the folder structure, the mailbox-db: su - cyrus -c "ctl_mboxlist -d" > $CONFIGDIRECTORY/mailboxlist.txt If you reimport this structure on your new server you should at least see all folders and emails. What you are missing at this point is the read/unread status of the mails. su - cyrus -c backupseen.sh backupseen.sh: ------------------------ for file in `find /var/lib/imap/user -name \*.seen`; do /usr/lib/cyrus/bin/cvt_cyrusdb ${file} skiplist ${file}.txt flat done ------------------------ On your new Server you need to import these databases again: su - cyrus -c restoreseen.sh restoreseen.sh: ------------------------ for file in `find /var/lib/imap/user -name \*.seen.txt`; do /usr/lib/cyrus/bin/cvt_cyrusdb $file flat ${file/seen.txt/seen} skiplist done ------------------------ The user cyrus is needed to perform these tasks, otherwise the permissions of the directories/files will probably be messed up. I haven't yet done any restore from scratch, but it should work this way. So I recommend to check each step and test the result. See also: http://acs-wiki.andrew.cmu.edu/twiki/bin/view/Cyrus/Backup Sandy -- List replies only please! Please address PMs to: news-reply (@) japantest (.) homelinux (.) com