Nejc Skoberne wrote:
> I would like to separate the
"configuration" and the "data" part
of my backup
> of Maia system, so I would really like to know which
tables in Maia database
> could be emptied (deleted all rows) and Maia would
still work normally - I
> would like to preserve users and their settings but for
example I don't need
> to preserve quarantined and "probably ham"
mail (I guess these are stored in
> maia_mail table). I am asking this because I would like
to backup my Maia config
> part daily but not the data part - and in the case of
disaster, if I would
> recreate Maia database without that data part, it
should still work.
Well, it depends on what you consider
"configuration" vs. "data", of
course. Obviously cached mail and references to it are
"data", but what
about your whitelists/blacklists, your Bayes database or AWL
table?
Maia can certainly work even if you wipe all the rows from
those tables
(since they're "data"), but on the other hand
they get used to help
determine spam from non-spam, so you probably want them to
be persistent
like the rest of your "configuration" data.
It may be best to just explain what the various tables are
used for, so
you can decide for yourself what you want to backup:
Address/account information:
users
policy
maia_users
Domain information:
maia_domains
maia_domain_admins
Whitelists/blacklists:
mailaddr
wblist
System-wide configuration:
maia_config
schema_info
Lookup tables:
maia_themes
maia_languages
maia_viruses
maia_virus_aliases
maia_sa_rules
Statistics:
maia_stats
maia_stats_history
SpamAssassin AWL and Bayes databases:
awl
bayes_expire
bayes_global_vars
bayes_seen
bayes_token
bayes_vars
Cached mail and references to it:
maia_mail
maia_mail_recipients
maia_viruses_detected
maia_sa_rules_triggered
maia_banned_attachments_found
Digest login/confirm tokens:
maia_tokens
Based on your description, I'd guess that you probably want
to consider
the cached mail tables and the digest token tables
"data", and leave
everything else as "configuration" data for your
purposes.
--
Robert LeBlanc <rjl renaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamail
guard.com/>
_______________________________________________
Maia-users mailing list
Maia-users renaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
|