1

Topic: Selective Backup

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I tried understanding what I'd need for a 'full backup' on my VPS and realized it is above my pay grade.  Now, I'd just like to protect the mail store (if I have the In/Out/Sent/Etc for the system I can restore every thing ... eventually.  Without the data, I'm sunk.

What file(s) would i need to rsync between machines 1.2.3.4 and 2.3.4.5 to protect my data using the default install above?


Sorry if this is covered elsewhere; I didn't find it.


Andrew

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Selective Backup

Directory /var/vmail contains:

- All mailboxes
- All user mail filters (sieve rules)
- All daily backup files (SQL databases, LDAP, SOGo, etc). Mail accounts are stored in SQL/LDAP databases.

is it enough for you?

FYI: http://www.iredmail.org/docs/backup.restore.html

3

Re: Selective Backup

If I set up an rsync for the /var/vmail, will Day 2+ backups be incremental, or are the files created from scratch each day (ie email from 3 years ago is in a new file which needs to be copied from scratch)?

Andrew

4

Re: Selective Backup

It depends on your rsync command line argument. Default is incremental, but please do some tests and make sure you use the correct arguments.

5

Re: Selective Backup

Sorry, I was unclear.

I understand what rsync does.  I'm checking on how the files are created in /var/vmail.

Does the iredmail command/routine which dumps files there create incremental backup/additions or is this a new data dump each day (ie will an incremental rsync run incrementally or will it see each day's files as 'new')?

Thanks.

Andrew