1

Topic: Backup / Restore configuration, users, passwords and all database

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: UBONTO 14.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I want create a new mail server using same settings as the current for backup, in case the current server is not working.

The question: how can I pull all data and move it to new server?

Best/ Yigal

----

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

2

Re: Backup / Restore configuration, users, passwords and all database

It depends on how your pull data.

- For MySQL, you can use mysql replication (master-slave) to sync all sql databases in real-time. or, backup sql db on primary server every day, when you need to switch server, copy the backup and restore it on backup server.
- For mailboxes, you can setup 'rsync' to sync every few minutes (up to you).

3

Re: Backup / Restore configuration, users, passwords and all database

ZhangHuangbin wrote:

It depends on how your pull data.

- For MySQL, you can use mysql replication (master-slave) to sync all sql databases in real-time. or, backup sql db on primary server every day, when you need to switch server, copy the backup and restore it on backup server.
- For mailboxes, you can setup 'rsync' to sync every few minutes (up to you).

Thank you. how we can setup this up?

4

Re: Backup / Restore configuration, users, passwords and all database

info@2secure.biz wrote:

Thank you. how we can setup this up?

- For mysql replication, we don't have tutorial on our website, you can just do a quick search with Google, a lot results. smile
- for mailbox sync, search "rsync ssh" with Google. Mailbox directory is /var/vmail/vmail1 BY DEFAULT.

5

Re: Backup / Restore configuration, users, passwords and all database

ZhangHuangbin wrote:

- for mailbox sync, search "rsync ssh" with Google. Mailbox directory is /var/vmail/vmail1 BY DEFAULT.

I think this only works for maildir, not for mdbox?

6

Re: Backup / Restore configuration, users, passwords and all database

dave.opc wrote:

I think this only works for maildir, not for mdbox?

Works for mdbox too. Just make sure you have all mdbox and metadata files synced.