Re: bayes db - export/import
On Fri, 28 Jan 2005, Justin Mason stated: > Rodney Green writes: >> I'd like to copy the bayes db to the temporary mail server so it can >> continue to be used and continue learning. >> >> Will I need to do some special export/import procedure or will I be >> able to just copy the db files into the directory, set permissions and >> be good to go? > > If it's the same architecture, and the same OS release, you can > probably just copy. For safety I'd recommend using sa-learn --backup > and --restore. You shouldn't need to do that. Berkeley DB databases are byte-order- independent (well, they can be read and written by machines with any byte order), and the things SA puts in them are byte-order-independent too. As evidence, I'm sharing a Bayes database between an i586, two UltraSPARCs, GNU/Linux (x2) and Solaris (x1) with no trouble. That's multiple architectures and multiple OSes; no problems are evident. :) If you *do* need to do a backup-and-restore, it's a sign that something's compromised the byte-order-independence of what's being put in there: probably the wrong string as argument to a pack() in BayesStore. -- `Blish is clearly in love with language. Unfortunately, language dislikes him intensely.' --- Russ Allbery
Re: bayes db - export/import
On Fri, 28 Jan 2005 11:48:32 -0800, Justin Mason <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Rodney Green writes: > > Hello, > > > > I'm setting up a temporary mail server so I can do some work on the > > regular production machine, without interrupting service. > > > > I'd like to copy the bayes db to the temporary mail server so it can > > continue to be used and continue learning. > > > > Will I need to do some special export/import procedure or will I be > > able to just copy the db files into the directory, set permissions and > > be good to go? > > If it's the same architecture, and the same OS release, you can > probably just copy. For safety I'd recommend using sa-learn --backup > and --restore. > Thanks Justin. I'll use sa-learn --backup and --restore. Rod
Re: bayes db - export/import
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rodney Green writes: > Hello, > > I'm setting up a temporary mail server so I can do some work on the > regular production machine, without interrupting service. > > I'd like to copy the bayes db to the temporary mail server so it can > continue to be used and continue learning. > > Will I need to do some special export/import procedure or will I be > able to just copy the db files into the directory, set permissions and > be good to go? If it's the same architecture, and the same OS release, you can probably just copy. For safety I'd recommend using sa-learn --backup and --restore. - --j. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Exmh CVS iD8DBQFB+pcQMJF5cimLx9ARAronAJ9R00cpm3kAZoa143nNRLfCU/AV8wCcC5oJ TDOiZ5cFN5j+yk5pzrcRHAc= =hs43 -END PGP SIGNATURE-
bayes db - export/import
Hello, I'm setting up a temporary mail server so I can do some work on the regular production machine, without interrupting service. I'd like to copy the bayes db to the temporary mail server so it can continue to be used and continue learning. Will I need to do some special export/import procedure or will I be able to just copy the db files into the directory, set permissions and be good to go? Thanks, Rod -- Get Firefox Web Browser at the link below! You won't regret it! http://tinyurl.com/4cqbv