From dc093e10299d139439baf9013b62d29f447a1583 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Mon, 18 May 2020 22:19:12 +0800 Subject: [PATCH] Remind to backup sa_bayes db. --- en_US/howto/store.spamassassin.bayes.in.sql.md | 11 +++++++++++ html/store.spamassassin.bayes.in.sql.html | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/en_US/howto/store.spamassassin.bayes.in.sql.md b/en_US/howto/store.spamassassin.bayes.in.sql.md index acd931b0..4fc90388 100644 --- a/en_US/howto/store.spamassassin.bayes.in.sql.md +++ b/en_US/howto/store.spamassassin.bayes.in.sql.md @@ -128,6 +128,17 @@ Learned tokens from 1 message(s) (1 message(s) examined) * [Auto learn spam/ham with Dovecot imap_sieve plugin](./dovecot.imapsieve.html) +## Backup your `sa_bayes` database + +Don't forget to update `/var/vmail/backup/backup_mysql.sh` (or +`backup_pgsql.sh` if you're running PostgreSQL backend) to backup this newly +created `sa_bayes` database. For example: + +``` +# Part of file `/var/vmail/backup/backup_mysql.sh` +DATABASES='... sa_bayes' +``` + ## References * [Bayes Introduction](http://wiki.apache.org/spamassassin/BayesInSpamAssassin). Please do read section `Things to remember`. diff --git a/html/store.spamassassin.bayes.in.sql.html b/html/store.spamassassin.bayes.in.sql.html index a67527ec..62a74741 100644 --- a/html/store.spamassassin.bayes.in.sql.html +++ b/html/store.spamassassin.bayes.in.sql.html @@ -23,6 +23,7 @@
  • Create required SQL database used to store bayes data
  • Enable Bayes modules in SpamAssassin
  • Auto learn spam/ham with Dovecot imap_sieve plugin
  • +
  • Backup your sa_bayes database
  • References
  • @@ -137,6 +138,14 @@ Learned tokens from 1 message(s) (1 message(s) examined) +

    Backup your sa_bayes database

    +

    Don't forget to update /var/vmail/backup/backup_mysql.sh (or +backup_pgsql.sh if you're running PostgreSQL backend) to backup this newly +created sa_bayes database. For example:

    +
    # Part of file `/var/vmail/backup/backup_mysql.sh`
    +DATABASES='... sa_bayes'
    +
    +

    References