Tom Munro Glass wrote:
README.bayes states that you should do the following for each user:
1) "sa-learn --backup > backup.txt"
2) Modify the local.cf file
3) "sa-learn --restore backup.txt"
Can someone please clarify this for me. I ran step 1 for each user and ended
up with separate backup.txt files for each user.
When I ran step 3 for the first user's backup.txt, everything went fine, but
running it for the second user, all of the first user's data was deleted from
the database.
Should step 1 be:
"sa-learn --backup >> backup.txt"
so that each user's database is appended to a single copy of backup.txt? In
this case I'd only need to run step 3 once for all users.
Or if I've got this all wrong, please clarify what I should be doing to
migrate several users' DBM Bayes to a MySQL database.
Thanks,
Tom
Hi,
0) su username
1) "sa-learn --backup > backup.txt"
2) Modify the local.cf file
3) "sa-learn --restore backup.txt"
4) exit
5) goto 0
Or there might be a -u switch in 3.1.0, not sure as I don't use per user
bayes just a global bayes (45K users, 750K emails a day)
Anyways, the point is that you have to somehow tell sa-learn that you
are running as a specific user. Hope that helps.
Regards,
Rick