Immediately on the article rsync file synchronization application-server-side configuration, this piece will explain the configuration of the client
Then in the client's words do not need to configure what configuration files, but very upset that these are all the command line, the following will be slowly explained in the client issued rsync
Problem:
Rsync error: pinned ed SIGINT, sigterm, or sighup (Code 20) at rsync. C (503) [Cycler = 3.0.0pre7]-----------------------------Solution:Try adding the following line into "/etc/make. conf"
Code:
Portage_rsync_initial_timeout = 500
For details, see this post:Http://forums.gentoo.org/viewtopic-t-622757-start-0-postdays-0-postorder-asc-highlight-emerge+syn
configuration file, set the Disable property to No, restart the service xinetd restart start the rsync service. 26-1, 26-2:Vi/etc/xinetd.d/rsyncService xinetd RestartAt this point, the configuration of rsync to this step is possible. So how to use rsync next?Case scenario: Do it two o'clock in the morning every day backup backs up the COM directory under the hos
Disable property to No, restart the service xinetd restart start the rsync service. 26-1, 26-2:Vi/etc/xinetd.d/rsyncService xinetd RestartAt this point, the configuration of rsync to this step is possible. So how to use rsync next?Case scenario: Do it two o'clock in the morning every day backup backs up the COM directory under the host directory (/home/formal/)
10.10.6.15
Run the rsync daemon as the server side and receive the push.
Installing rsyncImplementation principle:Rsync uses the C/s structure, but the S-side is the server side, running rsync daemon, C-side through the command to push files to the S-side.Installation:Rpm-qa rsync #检查是安装了rsyncrpm-
=RSYNCD.PASSWD [email protected]::d ata/data/receiving Incremental file list./messagessent Bytes received 26839 bytes 53830.00 bytes/sectotal size is 242668 speedup is 9.02Then create several files locally using the rsync command to synchronize to the Host1 data directory# RSYNC-AVZ--password-file=rsyncd.passwd/data/[email protected]::d atasending Incremental fil
, rsync client-side deploymentClient side of the configuration is much simpler, first of all to have rsync software, followed by the password file configuration Rsync.password1. Check if there is rsync[[emailprotected] ~]# which rsync/usr/bin/rsync2. Create a Rsync.password file[[emailprotected] ~]# echo “123456” >
content for transmission)Rsync-avpz-e "Ssh-p 10022" 192.168.31.182/tmp/111/./111/(Specify port for copy transfer)Rsync-avl--delete--exclude [email protected]:: mokuaiming /test./--password-file=/home/admin/rsyncd.passwd (rsync reference term, more complete)Rsync Backend Service modeConfiguration file:/etc/rsyncd.conf
(1) Download the Rsync source code for installation(2) 1 ' CD rsync2 './configure--prefix=/usr/local/rsync3 ' Make4 ' Make install ( may require permissions, plus sudo resolution )(3) Rsync command Sync parameters option ( learn ) rsync [OPTION ...]Src... DEST The frequent use of the parameters option illustrates:-
Tags: emctl tool RSA Data rsync service Switch Delta ROC workAbout RsyncRsync is a data-mirroring backup tool for Linux systems, using the Fast incremental Backup tool remote sync to remotely synchronize, support local replication, or synchronize with other Ssh,rsync hosts
Rsync-A archive mode-V Verbose output-Q Silent Output-R Sub-directory Recursive mode
' does for CPU load. # as Rsync is often used for backups which aren ' t all that time-critical, # reducing the rsync IO priority would benefit
The rest of the system.
# The manpage for Ionice for allowed options. #-C3 is recommended, this'll run rsync IO at "idle" priority.
Uncomment # The next line to activate this. # rsync_ionice= '-c3 ' # Don ' t forget to c
Tags: rsync+inotify-tools+ssh implement mysql-bin log file real-time backup1, Environment: two CentOS computer direct connection, its server A's IP address is 192.168.1.124, Server B's IP address is 192.168.1.121.2. Requirement Software Installation (SSH system is installed by default):Server A:Yum Install rsync Inotify-toolsServer B:Yum Install rsync3. Set up user (Backup execution user)Build Users: Userad
inotifywait command use:Inotifywait is especially useful for waiting for an event to occur in a script and to perform the appropriate action based on a specific event. If it is used in a script to monitor changes in files in a specified directory, create new, delete, attribute information, and then use the rsync command to synchronize the files corresponding to
First, the experimental environment
Host Name
Network card IP
Default Gateway
Use
Nfs-server
10.0.0.11
10.0.0.254
Rsync Server Side
web-client01
10.0.0.12
10.0.0.254
Rsync Customer Service Side
web-client02
10.0.0.13
10.0.0.254
Rsync Customer S
set of data blocks that do not overlap with a fixed size of s bytes. The last piece may be smaller than S.
2.β performs two checks on each segmented block: One is a 32-bit scrolling weak checksum and the other is a 128-bit MD4 strong checksum.
3.β These checksum results to alpha.
4.α searches for a block of data with all the size S of file A (the offset can be optional, not necessarily a multiple of s) to find a block of data that has the same weak checksum and strong parity code as a piece
the daemon should have when the module transmits files. The default value is "nobody". Exclude Used to specify more than one list of patterns separated by spaces and add them to the exclude list. This is equivalent to using--exclude in the client command to specify the pattern, but the exclude pattern specified in the configuration file is not passed to the client and is applied only to the server. A module can specify only one exclude option, but yo
hostsHosts deny = 192.168.0.0/24//Forbidden HostList = yes/allow all modules to be listedUID = rootGID = rootAuth users = slave//user who can connect to the moduleSecrets file =/etc/rsync.pass//password files where you need to build it yourself1.3 Create a password file/etc/rsync.pass the following format, and ensure that the permissions are (rw-------) or (R--------)Slave:helloworld1.4 Starting the Daemonrsync--daemon # #启动守护进程NETSTAT-TLNP |grep rsync
rsync syncDifferences in synchronization and replication:Copy: Full copy Source to targetSync: Incremental copy, transfer only changed dataSynchronous operation:Remote SyncSupports local replication, or synchronizes with other Ssh,rsync hosts.Official website: http://rsync.samba.org/Command usagersync [options] Source directory destination DirectoryCommon options
parameter strict modes in the configuration file is True, the permissions of the rsync authentication password file must be 600, otherwise the client will not be able to connect to the server. each line in the Rsync authentication password file specifies a user name: the password pair, in the format: USERNAME:PASSWD. Start the Rsync service and set the power-on
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.