As needed, the backup should be set up as follows:
1. 1. Install rsync
Run the command: yum-y install rsync to install the server.
2. Second: Configure rsync
The main three configuration files need to be filled
A. touch/etc/rsyncd. conf)
Vi/etc/rsyncd. conf
# See rsync(1) and rsyncd.conf(5 pid file = port = 873 address = 192.168.1.2 #uid = #gid = uid = gid = use chroot = read only = hosts allow=192.168.1.101 #hosts deny= max connections = 5 motd file = #log file = log file = #This will log every file transferred - up to 85,000+ per user, #transfer logging = log format = syslog facility = timeout = 300 path = list= auth users = secrets file = comment = path = list= auth users = secrets file = comment = This is named
Note IP address, user ID, user group ID,
B. touch/etc/rsyncd. pa create Password File Format: User name: User Password
Vi/etc/rsyncd. pa note that the permission for this file must be 600
Chmod 600/etc/rsyncd. pa
test:test
C. touch/etc/rsyncd. motd
Vi/etc/rsyncd. motd
This file can be written at will.
2002------2013 ++++++++++++++++++++++++++++++++++++++++++++++
Now the server configuration has been completed.
Third: client operations
Rsync-avzP test@192.168.1.2: named namedbck
Directory backup can be implemented. You can check the specific parameters online.
Eight ring DNS, http://www.8jdns.com