First, the introduction of rsync
Rsync is a data mirroring Backup tool under the Linux system that enables you to back up local system data over the network to any remote host, and Rsync has the following characteristics:
Can be mirrored to save the entire directory tree and file system
Data can be incrementally synchronized, file transfer efficiency is high, so synchronization time is very short.
You can keep attributes such as permissions, time, and so on for existing files.
Encrypted transmission of data to ensure the security of the data.
Second, the installation and use of rsync
Then we introduce the use of rsync through an example, here we assume that there are a, B two Linux systems, a system running business, b system as a remote disaster recovery backup machine, then a system is the service side of Rsync, B system is the client of rsync. You need to install rsync software on both A and B systems so that you run the rsync daemon on a system, and b systems can periodically back up the data specified on a system through the system daemon crontab. Thus the remote disaster tolerance of the data is realized.
Our installation environment is:
Operating system: Red Hat Enterprise Linux Server Release 5
Kernel version: Linux Web 2.6.18-8.el5
A system IP address: 192.168.60.253
b System IP Address: 192.168.60.231
1. Install rsync on both A and B systems
RYSNC's home address is: http://rsync.samba.org/, the version we download here is rsync-3.0.4, then compile and install:
[Root@web ~] #tar zxvf rsync-3.0.4.tar.gz
[Root@web ~] #cd rsync-3.0.4
[Root@web rsync-3.0.4]#./configure
[Root@web rsync-3.0.4]# make
[Root@web rsync-3.0.4]# make install
This completes the installation of rsync.