Data is the most valuable property! The company's servers are required to have a complete backup strategy for the data, using scripts, planning tasks, open source software, and so on, regardless of that way, to real-time synchronization of data, is
First, rsync is a Unix-like system of data mirroring backup tools, from the name of the software can be seen-remote sync
Features are as follows:
1, can be mirrored to save the entire directory tree and file system.
2, it is easy to maintain the
Monitor a directory on the specified server and automatically sync to another server
#!/bin/bash # author:honway.liu # date:2012-07-04 r1=126.96.36.199 r2=188.8.131.52 r3=184.108.40.206 desthostdir=/dat A/mp3 srcdir=/data/music/mp3/song1
What is INotify?
INotify is a powerful, fine-grained, asynchronous file system time monitoring mechanism, which can replace Crond with rsync trigger file synchronization, thus monitoring the file system to add, delete, modify, move and other
I. Introduction of SERSYNC Project
Project Address: http://code.google.com/p/sersync/
We often use Rsync+inotify to synchronize the server in real-time, where inotify is used to monitor file system events, and rsync is a widely used
INOTIFY+RSYNC+MUTT+MSMTP implement Linux file or directory Automatic Update and implement email to admin
Implement real-time synchronization of files and monitor directory to send mail to admin
requirements, need to update multiple servers, manual,
This article System Centos6.0
Server: (Centos) 192.168.182.130
Client: (LV2) 192.168.182.129
Rsync is a data mirroring Backup tool under Unix-like systems, and--remote sync can be seen from the name of the software.
Its characteristics are as
Recent unit live more, so very little update, at night the internet happened to see an introduction about Sersync, personal feeling more standard than rsync+inotify configuration, just recently preface, summed up under, share to everyone.
In the previous blog, I talked about using rsync to achieve data mirroring and backup, but to achieve real-time data backup, independent of rsync can not be achieved, this article describes how to achieve real-time data backup.
Environment Description: Existing two servers, to achieve real-time synchronization of MP3 files. You can use rsync to do synchronization, but not real time, in order to achieve real-time synchronization, we use INotify to monitor the changes that
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.