Re: migrating to a different db

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

 



On Sun, 30 Apr 2006, Mark Edwards wrote:

Can someone tell me what the repercussions of rebuilding cyrus with a different db, say db43 instead of db41, and starting the new one up with the same data and configuration? Will it run? Will there be data corruption of any kind?

The safest and most reliable way to perform that upgrade is to use cvt_cyrusdb to convert your databases to plaintext using the old binaries. Then upgrade the software and use cvt_cyrusdb again to convert back into berkeley DB.

An alternative, but somewhat risky, method is to simple delete (rename might be safer) the contents of <configdirectory>/db/. The files in that directory are the Berkeley DB transaction logs, etc, and can be safely deleted in my experience. Also, everytime I have changed Berkeley DB versions, I would get DB corruption warnings when I start Cyrus if I did not empty that directory.

It would be smart to have backups too, just in case. :)

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

[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