1

Topic: Backup help needed

==== Provide required information ====
- iRedMail version:0.8.1
- Store mail accounts in which backend (MySQL): mysql
- Linux/BSD distribution name and version: CentOS 5.5
====

I have two iredmail servers with 100% same configuration.
One server is running with daily emails incoming and outgoing.
Another server has only same configurations acting as backup but there is no emails in it.

I took backup of first server on weekly basis as.

#bash /root/Desktop/iRedMail-0.8.1/tools/backup_mysql.sh
#cp -R  /var/vmail /root/Desktop/vmail

DATABASES are  mysql vmail policyd amavisd roundcubemail iredadmin

Once first server goes down, then only by coyping vmail folder with correct permissions (vmail:vmail) as

#chown -R vmail:vmail /var/vmail
#chmod -R 0700 /var/vmail

is enough to run second server or i have to import all/some mysql databases into second server ?

I am using outlook and roundcube as email client.

----

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

2

Re: Backup help needed

tahaa wrote:

I took backup of first server on weekly basis as.

#bash /root/Desktop/iRedMail-0.8.1/tools/backup_mysql.sh
#cp -R  /var/vmail /root/Desktop/vmail

Backup is fine. You can sync it with command "rsync" too.

Daily backup is enabled by default since iRedMail-0.8.1, you can find the daily cron job with below command:

# crontab -l -u root
tahaa wrote:

DATABASES are  mysql vmail policyd amavisd roundcubemail iredadmin

OK.

tahaa wrote:

Once first server goes down, then only by coyping vmail folder with correct permissions (vmail:vmail) as

#chown -R vmail:vmail /var/vmail
#chmod -R 0700 /var/vmail

Correct.

tahaa wrote:

is enough to run second server or i have to import all/some mysql databases into second server ?

Should be enough.

Why not test it in a virtual machine first? e.g. VMware, VirtualBox, Xen, KVM.

3

Re: Backup help needed

Ok. Thanks.
I will try then write the response here.

4

Re: Backup help needed

hi

where does the cron job backup the files and databases too

5

Re: Backup help needed

tim wrote:

where does the cron job backup the files and databases too

/var/vmail/backup by default.

6

Re: Backup help needed

Hi

The only thing I have in /var/vmail/backup is

backup_mysql.sh

I am looking for the "backuped" data

I am running 0.83 on a unbuntu 12.04 platform

Regards

7

Re: Backup help needed

Do you have backup script running with cron job? Check it with command:

# crontab -l -u root

It should be setup by iRedMail after installation.