You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2006/11/22 05:35:19 UTC
[Spamassassin Wiki] Update of "DbDumpAndLoad" by CalebPhillips
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.
The following page has been changed by CalebPhillips:
http://wiki.apache.org/spamassassin/DbDumpAndLoad
The comment on the change is:
describe process for 1.8.5 -> 4.2.x
------------------------------------------------------------------------------
If all else fails, just convert the entire DB to text using this tool: http://spamassassin.taint.org/devel/db-to-text.pl.txt , and it's "-o" switch, and convert from text into the DB_File DB format on the other side using the same tool and the "-i" switch.
+ = DB 1.8.5 to DB 4.2.x =
+
+ db_load and db_dump as documented above are mostly useful for close versions. Converting between more dissimilar versions requires a little more work. To go from 1.8.5 to 4.2.x, you need to dump using the db_dump185 tool which is included in the tarball for 4.2.x but isn't always built. To build it, download and extract the tarball and then do this:
+
+ {{{
+ cd build_unix/
+ ../dist/configure --enable-dump185
+ make
+ }}}
+
+ Of course, this will fail if you don't have the libs for 1.8.5 around - so '''build this on the old system''', then dump the files, then move the dumps to the new system, and then finally, use db_load as described above to import them.
+
= Other Dbs =
You can do the same with the bayes_seen and auto-whitelist files, but they're not as important; I generally just blow them away: