The Rsync service is an efficient remote data backup tool with port number 873,
is a non-independent service under the Liunx. Managed by XINETD Super service, instead of listening 873port.
Strengths:
1. Rsync is able to use SSH and SSL remote control to connect to a remote host for backup. Dependent sshd Service
2, enables incremental backups, makes full backups on first connection, and synchronizes only changed data at a later time
3. Be able to use your own socket for synchronization. Ability to set password restrictions on the server.
Cons: No real-time synchronization, need to install LSYNCD tools to assist in real-time synchronization.
Configuration steps:
1, install the Rsync software on both client and server side respectively.
Yum Install rsync*-y
2, write the configuration file on the server rsyncd.conf this file does not exist, create the vim/etc/rsyncd.conf manually
3, create the password file on the server Vi/var/rsync.pass chmod 600/var/rsync must have 600 permissions assigned.
The content is in User:password format.
4. The rsyncd.conf profile on the server side sets the synchronization folder and permissions.
5. Client View Server sync folder rsync--list-only rsync://172.16.0.1
6, Client Sync server folder Rsync-av--delete rsync://172.16.0.1:/share
7, the client synchronizes access to the server
Rsync-av--delete--password-file=/var/myscret.pass Rsync://[email protected]/share/backup
8. The client creates password to store the file Myscrete.pass, which is the server access password, so that the direct interview is appropriate for the script.
the meaning of the--delete option means: Mirror the Sync server folder, including deleted file synchronization, or simply synchronize the added files
Two: Configure the LRSYNCD tool for real-time synchronization.
1. Download the lrsyncd.tar.gz package. Installation. Cp/usr/local/share/doc/lsyncd/lrsync.lua/usr/loca/etc
Edit the configuration file.
2, execute Lsyncd/usr/local/etc/lrsync.lua Ok
rsync Remote Data synchronous backup of Linux