Conversion Debian Cyrus 2.1 to 2.2, experiences

Paul van der Vlis paul at vandervlis.nl
Thu Aug 14 07:36:50 EDT 2008


Gabor Gombas schreef:
> On Thu, Aug 07, 2008 at 10:51:21AM +0200, Paul van der Vlis wrote:
> 
>> make backups:
>> cp -a /var/lib/cyrus /var/lib/cyrus-backup
>> cp -a /var/spool/sieve /var/spool/sieve-backup
>> cp -a /usr/lib/cyrus/ /usr/lib/cyrus-backup
>> cp -a /var/spool/cyrus /var/spool/cyrus-backup
>> The last one takes long...
> 
> Don't you have regular backups? If you don't, you should better start
> doing them... 

I do have regular backups, but if I do something like this I like a way
back to the old situation, without the loss of the mail since the last
backup.

> Anyway, you can use rsync to make an initial copy while
> the old service is still running and a much quicker update when the old
> service is stopped.

Correct, that's better.

>> remove packages:
>> apt-get remove cyrus21-common cyrus21-admin cyrus21-clients
>> libcyrus-imap-perl21
>> dpkg --get-selections | grep cyrus
>>
>> backup config-files:
>> mv /etc/imapd.conf /etc/imapd.conf.backup
>> mv /etc/cyrus.conf /etc/cyrus.conf.backup
> 
> I'd do that _before_ removing the packages...

Without --purge, the configfiles are not removed.
But maybe your way is better.

>> install packages:
>> apt-get install cyrus-imapd-2.2 cyrus-admin-2.2 cyrus-clients-2.2
>> libcyrus-imap-perl22 db4.2-util cyrus-pop3d-2.2
>>
>> choose to overwrite cyrus.conf and imapd.conf (I wonder why this files
>> are still there).
> 
> Because you've used "apt-get remove" instead of "apt-get purge". 

I did also a "mv /etc/imapd.conf /etc/imapd.conf.backup" etc.

> This was my recipe for a 2.1 -> 2.3 (from experimental) migration:
> 
> cd /var/lib/cyrus/db
> db3_recover
> cd /var/lib/cyrus
> db4.X_upgrade deliver.db
> rm tls*db
> cd db
> db4.X_checkpoint -1
> 
> (replace 'X' with the correct BDB version)

Thanks for the information!

With regards,
Paul van der Vlis.




-- 
http://www.vandervlis.nl/



More information about the Info-cyrus mailing list