1. Install rsyncYum-y Installrsync2, no password command line synchronizationClient actionsSsh-keygen-trsaSsh-copy-id-i/root/.ssh/[email protected]SSH [email protected]Mkdir-pv/data/shellrsync-az--delete [Email protected]:/data/rsyncdata//data/shell/3. synchronization with password service mode because rsync belongs to the XINETD service, you need to install XINETD firstYum-y installxinetdVi/etc/xinetd.d/rsyncchange distable to NoStart the service/
Rsync is a server and server This synchronization tool, usually we can use rsync to real-time data synchronization operation, I will look at the installation of Rsync synchronization software tutorial.
Installation
Rsync-3.1.0.tar.gz#tar ZXVF rsync-3.1.0.tar.gz#cd
Rsync is a remote synchronization tool that you can use to back up a database, or picture a picture server
Modifying the contents of the file will also be synchronized
Note: There is no relationship between the account password and the system account password, when rsync account password, you need to determine to open 873 ports, the default use of 873 ports
System: centos6.4
Primary server ip:192.168.1.136
I. Description
1. Rsync at the time of synchronization, do not know which file or which directory has changed, each time the entire directory is synchronized, when the volume of data is very large, the entire directory synchronization is time-consuming (rsync to the entire directory traversal to find the comparison file), therefore, the efficiency is very low.
2. Sersync can record the changes in the listen
Suppose there is a A, a, two computers, host a IP is: 192.168.1.12 Host B IP is: 192.168.1.13, host A has a user tt2 tail/etc/passwd as follows:Tt2:x:500:500::/home/tt2:/bin/bashHost B has a user: Soar tail/etc/passwd as follows:Soar:x:500:500::/home/soar:/bin/bashIn general, the account name of the synchronization should be the same, if not the same, as follows:To synchronize the content of B to a, first look at what you want to sync:[[email protecte
Get rsync-3.1.0 I put one in my net. Address:
Http://yunpan.cn/cKAHidI4yCu3L Extraction Code C59C
Start installing rsync[Root@localhost ~]# tar zxvf rsync-3.1.0.tar.gz[Root@localhost ~]# CD rsync-3.1.0[Root@localhost ~]#./configure--prefix=/home/work/rsync[Root@localhost ~
Two Windows7 machinesserver:192.168.12.104client:192.168.12.103Purpose: To synchronize the contents of the E-disk directory FYFR on the server to the FYFR directory under the D disk on the client.(No user password authentication, direct anonymous connection synchronization)Configuration steps:Service-Side server:192.168.12.104Installing Cwrsyncserver_4.1.0_installerGo to the installation directory C:\Program files (x86) \ICW, open the configuration file rsyncd.confThe content is configured as:UI
rsync sync file times error:
rsync:failed to connect to Xxx:permission denied (13)
This error occurs because of a selinux, Linux security-enhanced patch.The workaround is to disable SELinux security enhancements, either by using the command Setenforce 0来 temporarily disabled, or by modifying the profile/etc/sysconfig/selinux adding selinux=disabled to permanently disable
# This file controls the ' sta
not have to generate this file) because the medium transfer is the active role. Transit to RAC in same testStandby the connectivity of each node.
mxrac01mxrac03mxrac04mxrac05
Note: At present all copies of the work are production DB and standby db in the node 4 and the transfer machine, only all to join the public key to connect to all nodes, establish SSH trust relationship,The main purpose is to prevent node 4 failure, just modify the IP in the rsync
1. Configure two node synchronizationThe previous post has shown how to synchronize a host. This time we'll add a host to synchronize with. There is no duality in the method.1. First display our console:Last time the content of 192.168.2.103 synchronization 192.168.2.102. This lets 192.168.2.104 nodes synchronize the contents of 192.168.2.102.Install the rsync and xinetd services on 192.168.2.104 first: Start the
1. Using Ssh+rsyncYou only need to open the SSH service on the server side and start the rsync service in xinetd to useA. Incremental synchronizationrsync-av/src-dir/. [email protected]:/dest-dir/.B. Mirroring synchronizationRsync-av--delete/src-dir/. [email protected]:/dest-dir/.Features: Simple configuration, no need to configure rsyncd.conf profile, but requires user authentication during synchronizationNote: You can create an auto-
Tags: res rsync specifies create List start service technology RTP UIDI. Introduction of RSYNC ToolsRsync is a data-mirroring Backup tool under Unix-like systems, and--remote sync can be seen from the name of the software. Rsync is a file synchronization and data Transfer tool under the Linux system that uses the "
Rsync + inotify for data synchronization and FAQs
Rsync: Remote Sync is a data image backup tool for Unix-like systems. Rsync can be used to back up data with low real-time requirements. For example, you can use the specified backup file server to back up data to the specified remote server and regularly perform data m
Directory1 application Scenarios for remote file synchronization 2. rsync+crontab3. Rsync+inotify1. Application Scenarios for remote file synchronizationIn a load-balanced cluster scenario, there is often a load Balance Server on the front end of multiple Web servers that provides1 The client accesses a unified domain name to this load Balance, for example: Www.test.com,Load Balance Server allocates the req
General Public License v2# Minimal configuration file for rsync daemon# See rsync (1) and rsyncd. conf (5) man pages for help
# This line is required by the/etc/init. d/rsyncd scriptPID file =/var/run/rsyncd. PIDPort = 873Address = 192.168.1.171# Uid = nobody# Gid = nobodyUid = rootGid = root
Use chroot = YesRead Only = Yes
# Limit access to private LANsHosts allow = 192.168.1.0/255.255.255.0 10.0.1.0/255.
previous conf file is also#chmod 600/etc/sery.pass4/Start rsync
Server-side Startup# rsync--daemon--config=/etc/rsyncd.conf5/View listening status
Also server-side#lsof –i:8736/write rsync into the server self-boot
or the server-side# echo "/usr/bin/rsync--daemon--config=/etc/rsyncd.conf" >>/etc/rc.local7/Test
Brief introduction
For the choice of Linux as an application platform for small and medium-sized enterprises or Web sites, often face how to achieve remote Data backup or Web site mirror image of the problem, although there are commercial backup and mirror products to choose from, but these products are often too expensive prices. So how to use free software to efficiently implement remote backup and Web site mirror image is a topic worthy of discussion.
The easiest way to make remote data backu
daemon# to Rsync (1) and rsyncd.conf (5) man pages for help
# This are required by THE/ETC/INIT.D/RSYNCD scriptPID file =/var/run/rsyncd.pidPort = 873Address = 192.168.1.171#uid = Nobody#gid = NobodyUID = rootGID = root
Use chroot = yesRead Only = yes
#limit access to private LANsHosts allow=192.168.1.0/255.255.255.0 10.0.1.0/255.255.255.0Hosts deny=*
Max connections = 5MOTD file =/ETC/RSYNCD.MOTD
#This would give you a separate log file#log fil
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.