Topic: How do i back up and restore an iRedMail server (mysql)?

I have a good, a and perfectly working iRedMail server.

I want to start a cron job to automatically execute a backup script i'm writing that will push it to my backup server.

Except the mysql dump, do i need anything else?

==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (MySQL):
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:


Get fast and professional support from iRedMail developers:


Re: How do i back up and restore an iRedMail server (mysql)?

This FAQ should answer your question http://www.iredmail.org/wiki/index.php? … ail.Server
Also to note that iRedMail ships with backup script that automatically dumps the MySQL DB's, http://www.iredmail.org/wiki/index.php? … AQ/Backup. I normally just use the dumps already created by the script and move them to my backup server.



Re: How do i back up and restore an iRedMail server (mysql)?

Hm, the wiki page doesn't seem to be complete... what about postfix config files? spamassassin, cluebringer, possible SSL certificates?
I'm interested in the backup as well / I think you need to backup also AT LEAST following files:

/etc/amavis/conf.d/50-user (amavis custom configuration)
/etc/dovecot/dovecot.conf (imap/pop3/sieve server setup)
/etc/postfix/main.cf (postfix configuration)
/etc/spamassasin/local.cf (spamassassin customizations)
(optional) /etc/ssl/private/YOURDOMAIN.key (your purchased private SSL key)
(optional) /etc/ssl/certs/YOURDOMAIN.crt (your purchased public SSL key)
(optional) DB dump for bayesian data if you switched to DB backend
(optional) /etc/postfix/pgsql/* (possibly customized map queries)

I run the iRedMail in virtual container so the firewalling is done on the host... is there anything more?

Then install THE SAME VERSION of iRedMail you was using before restore:


Re: How do i back up and restore an iRedMail server (mysql)?

Please use this wiki tutorial instead:

- How to Migrate to New iRedMail Server
  http://www.iredmail.org/wiki/index.php? … ail.Server

I agree with @camel1cz, we should backup these config files IF you modified them.


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee