, -- delete indicates that if the server deletes the file, the client also deletes the file accordingly to ensure true consistency. In inburst @ IP,
Inburst is the user name in the specified password file, followed by: inburst this inburst is the module name, that is, the name customized in/etc/rsyncd. conf. The last/tmp is backup.
To the local directory name.
You can also use the-e SSH parameter to establish an encrypted connection. You can use -- password-file =/password/path/file to specify t
, -- delete indicates that if the server deletes the file, the client also deletes the file accordingly to ensure true consistency. In inburst @ IP,
Inburst is the user name in the specified password file, followed by: inburst this inburst is the module name, that is, the name customized in/etc/rsyncd. conf. The last/tmp is backup.
To the local directory name.
You can also use the-e SSH parameter to establish an encrypted connection. You can use -- password-file =/password/path/file to specify t
,TOPG is to maintain the original attributes of the file, such as the owner, time
The parameters. --progress refers to the display
Detailed progress,--delete means that if the server side deleted the file, then the client also deleted the file, to maintain a true consensus.
In the back of the Inburst@ip,
Inburst is the username in the specified password file, followed by:: Inburst This inburst is the module name, which is the custom in/etc/rsyncd.conf
's name. The last/TMP is a backup
To the
progress is displayed. -- delete indicates that if the server deletes the file, the client also deletes the file to ensure true consistency.
In the inburst @ IP address, inburst specifies the user name in the password file, and then: inburst indicates the module name, that is, in/etc/rsyncd. the custom name in Conf. The last/tmp is the name of the local directory that is backed up.
You can also use the-e SSH parameter to establish an encrypted connection. You can use -- password-file =/password
indicates that if the server deletes the file, the client also deletes the file accordingly to ensure true consistency.In inburst @ IP,
Inburst is the user name in the specified password file, followed by: inburst this inburst is the module name, which is customized in/etc/rsyncd. conf. The last/tmp is backup.
To the local directory name.
You can also use the-e SSH parameter to establish an encrypted connection. You can use -- password-file =/password/path/file to specify the password.In the
first: CentOS base source directory CentOS Epel Source directory? Synchronizing with Rsync? Set up Scheduled Tasks1. Create a folder>mkdir-p/data/centos>mkdir-p/data/epel2. Sync:>rsync-avrt rsync://mirrors4.tuna.tsinghua.edu.cn/centos//data/centos/>rsync-avrt rsync://mirror
Rsync Security Configuration and rsync Configuration
I will not talk about rsync deployment here. This article mainly describes how to access rsync through the user name and password:
I. rsync server security configuration
1. Create a password file and modify permissions
Tou
32nd-foundation of rsync advanced synchronization tool, 32nd-rsync
Directory:
1. rsync Introduction2. How rsync works3. Use the rsync command. parameter description4. install and configure the rsync server on the client1. Server i
1. Rsync+inotify Synchronization Logic diagram650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/24/E7/wKiom1NWH9zSygnhAAESOQCBlMs996.jpg "alt=" Wkiom1nwh9zsygnhaaesoqcblms996.jpg "/>2. Environment deployment
Host Name
Host IP Address
System version
System Kernel Version
Inotify-master
192.168.30.130
CentOS 6.5
2.6.32-358.el6.x86_64
Inotify-slave
192.168.30.131
server (standalone boot)#/usr/bin/rsync–daemon2. Start the rsync server (with XINETD super process boot)#/etc/rc.d/init.d/xinetd ReloadExample:[Email protected] ~]#/etc/rc.d/init.d/xinetd ReloadReload configuration: [OK]Four: Join rc.localIn various operating systems, the RC file storage location is different, can be modified to enable the system to load the rsync
the client also deleted the file, to maintain a true consensus. In the back of the Inburst@ip,
Inburst is the username in the specified password file, followed by:: Inburst This inburst is the module name, which is the custom name in/etc/rsyncd.conf. The last/TMP is a backup
To the local directory name.
In this case, you can also use the e-ssh parameter to establish an encrypted connection. You can use--password-file=/password/path/file to specify a password file so that you can make the
Instea
Rsync is a good file free synchronization software, can be mirrored to save the entire directory tree and file system, while maintaining the original file permissions, time, soft and hard links. At the first synchronization, rsync copies the entire contents and transfers only the modified portion of the file the next time. In the process of transmitting data, compression and decompression can be implemented
Rsync installation ConfigurationYum-y install rsyncConfigure rsyncThe rsync service requires three files.Rsyncd. conf rsync service configuration fileThe rsyncd. secrets rsync service user password file must be an existing user on the serverRsyncd. motd rsync service logon p
information in the command.Parameters in rsync-A operates in archive mode, copies directories, and symbols to connect-rlptgod-R is recursion-L indicates a linked file, which means copying a linked file;-P indicates retaining the original permissions of the file;-T indicates retaining the original time of the file;-G indicates retaining the original user group of the file; -O: the original owner of the file;-D is equivalent to a block device file;-Z c
rsync, you need to install it.
650) This. width = 650; "Title =" Clipboard [4] "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; display: inline "border =" 0 "alt =" Clipboard [4] "src =" http://img1.51cto.com/attachment/201408/22/1080241_1408741413nEsP.png "" 323 "Height =" 296 "/>
After the configuration file is complete, restart the xinetd service.
After the distributor is installed, edit the following
Rsync configuration and installation, rsync Configuration
Rsync Installation
1. extract the rsync package, package link: https://pan.baidu.com/s/1jHPosXC password: maay2. enter the rsync installation package run command :. /configure -- prefix =/usrmakemake install3. Go To T
vi/etc/sysctl. confFs. inotify. max_queued_events = 99999999Fs. inotify. max_user_watches = 99999999Fs. inotify. max_user_instances = 65535Parameter description:Max_queued_events:The maximum length of the inotify Queue. If the value is too small, the "** Event Queue Overflow **" error will occur, resulting in inaccurate monitoring files.Max_user_watches:Directory of the file to be synchronized. Avoid the failure caused by this value being too small, especially when there are many smal
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.