Avatar of liyy
 asked on

Does rsync use as mirror server for Linux email system

Can rsync used for mirror mailboxes to another Linux server as a failover purpose?

Existing email system using Kerio mail system.
LinuxEmail Servers

Avatar of undefined
Last Comment

8/22/2022 - Mon

For failover, you need to realtime sync the data. rsync can not do it real time.

I would recommend that you use filesystem mirror such GFS to do it.
Here is the reference for Redhat GFS

Thanks wesly,

But why some users use rsync for mirror their servers, I saw many reference website from google? They propose to use rsync to sync data between two servers, it seems common way found in google.

one time mirror or real-time mirror?
real-time is the key point,
If you don't might for a couple hours of data lost/delay, then you can use rsync.
For email, I won't use rsync for fail-over system but daily/weekly backup is ok.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

thanks wesly,

I know the real-time mirror, but what is mean one time mirror?

I know that rsync is not suitable for real-time environment, if the real-time traffic is slow, I mean not much emails in/out and under 20 emailboxes, will you recommend using rsync, what other solution you will suggest for failover for email system?

Sorry, shouldn't use one-time mirror.
For the first time, rsync copy the whole directory. Then it copy the delta(update files) only.
You can measure how many files are copied via rsync every hour (set in cron), then you have an idea how many emails will be lost for fail-over. If the email lost is not a big deal, then rsync more often should be ok.

Other low cost solution, like buy two hardware identical system, setup software RAID1 on two identical disks. If one system died not due to hard disk, then move one hard disk to the fail-over system.....

is it possible rsync every minute, of course, it is not the best solution for the online email system
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question