Author: Zhang Hua published in: 2015-12-28Copyright NOTICE: You can reprint, reprint, please be sure to hyperlink form to indicate the original source and author information and this copyright notice
(http://blog.csdn.net/quqi99)
It is urgent to use rsync to sync photos on multiple machines at home.
sudo apt-get install rsyncsudo update-rc.d-f rsync removesudo
Rsync is a remote synchronization software, in the synchronization of files (files and directories) can maintain the original file permissions, modification time, including linked files can also be synchronized.Where does this thing apply? No matter what business you are in, if you have more than dozens of servers, and these servers need to keep the files they have in real time, you will use this tool. For example, you have dozens of Web servers, Web
Redhat, you can also use XINETD program management.#vim/etc/xinetd.d/rsyncChange disable to No[Email protected] ~]# NETSTAT-ANPT | grep rsync[[email protected] ~]# kill-9 PID number (ex: kill-9 9290)Note: If the restart fails, first delete the PID file and then start again.[Email protected] ~]# Rm-rf/var/run/rsyncd.pid[Email protected] ~]# rsync--daemon[Email protected] ~]# NETSTAT-ANPT | grep rsync6. Veri
: @ERROR: ChDir failedRsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1495) [receiver=3.0.2]Workaround: Server-side Sync directory does not have permissions, cwrsync Default User is Svcwrsync. Add user Svcwrsync permissions for the synchronization directory.
Error 3: @ERROR: Failed to open lock fileRsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1495) [receiver=3.0.2]Workaround: Add lock file = Rsyncd.lock
Backup@192.168.18.200::www1/backup/www1–password-file=/etc/rsyncd.passwordchmod u+x/opt/rsyncd.shCrontab-e0 5 * * * sh/opt/rsyncd.sh# sync once every 5 hoursThe following are supplementary:Installation system: Redhat Linux as 4 2.6.9Rsync is a data mirroring Backup tool under Unix-like systems, and--remote sync can be seen from the name of the software. Its characteristics are as follows:Can be mirrored to
Tagged with: Linux rsync data Sync rsync detailedrsync commandRsync has six different modes of operation:1) Copy the local file. This mode of operation is initiated when both the SRC and des path information do not contain a single colon ":" delimiter.Rsync-a/data/backup2) Use a remote shell program (such as rsh, SSH) to copy the contents of the local machine to
=/etc/rsync.passwordRsync-avz--exclude-from=/paichu.log/data1/[Email protected]::oldboy/--password-file=/etc/rsync.passwordExclude multiple, write filename that needs to be excluded into a file, and then use the filename created by--exclude-from=Rsync-avz--exclude-from=/root/paichu.log [email protected]::oldboy//data1/--password-file=/etc/rsync.passwordrsync Sync without differences--deltetRsync-avz--delete
Document directory
Sync Framework Participants)
Sync Framework Core Components
Sync Framework system architecture
Microsoft Sync Framework architecture and Runtime
This article will first introduce various synchronization participants. The types of participants determine whether metadata can be stored and whether
Rsync configuration commands 1. what is Rsync-Rsync configuration parameter details Rsync (remotesynchronize) is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts through the LAN/WAN. Rsync uses the so-called
Rsync configuration commands 1. What is Rsync-Rsync Configuration Parameter Details Rsync (remote synchronize) is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts through the LAN/WAN. Rsync uses the so-called "
, such as Cwrsync and Sync2nas tools.
Install rsync3.0.9 versionhttp://rsync.samba.org/ftp/rsync/Download Address
1, download binary source rsync-3.0.9.tar.gz and patch server and client all use this program.2, decompression unpacking # tar zxvf rsync-3.0.9.tar.gz and patches3. Configure # CD rsync-3.0.9
4 configura
your server back directory name)Rsync configuration is complete!!! You can test the test after you have finished configuring it.Other Notes for rsync:Rsync Security Optimization1) If you only want to transfer between the local area network later. First you can bind the address to an intranet address of the network card.Rsync--daemon--address=192.168.0.2212) If the cross-room in the internet transmission, 1, pull line. 2. Using VPNRsync pros and consP
/USR/LOCAL/BIN/RSYNC-VZRTOPG--delete--progress--password-file=/etc/server.pass $src [email protected] $host 3::$ Dst3echo "${files} was rsynced" >>/tmp/rsynclog 2>1DonePut this script in the background to run and add to the self-boot fileSh/root/rsync.sh echo "/root/rsync.sh " >>/etc/rc.localThe relevant parameters in the script are as follows--TIMEFMT the output format for the specified time--format Specify the details of the change fileSometimes thi
/( where/opt/, simply synchronizing the contents of the/opt/directory, the OPT directory itself is not synchronized, and/opt said that the opt Directory and content are all synced to/tmp )Sending incremental file listCreated Directory/tmp./rh/test/Test/11.txtSent bytes received bytes 340.00 bytes/secTotal size was 0 Speedup is 0.00[Email protected] opt]# LS-L/tmpTotal 8Drwxr-xr-x. 2 root root 4096 Mar-RHDRWX------. 2 root root 4096 Sep 9 10:01 test2) remote transfer (via SSH transmission)Pull:
--config=/etc/rsyncd/rsyncd.conf" >>/etc/rc.local
Second, configure the publishing server 1.1.1.2
Installing Rsync and Inotify-tools
# sudo apt-get install rsync inotify-tools
# mkdir/etc/rsyncd/
# Vim/etc/rsyncd/rsyncd.pass
Iamok
Set up automatic synchronization scripts, use Inotifywait Monitor directory, call rsync s
This article will introduce you to the detailed guide on rsync synchronization settings for linux servers. I hope some methods will be helpful to you.
I. Introduction (skip this step if you don't want to see it)After the EMOS server is migrated, the new server is set up and tested. Next, it is very important to migrate the mail data in the old mail system completely. You can choose to copy the data, but it is inevitable that some emails will be lost (
One, usage example 1, incremental backup local file#rsync-av ebook/tmp///Note: It is best not to have the file name:#rsync-AVZRTOPGL--PROGRESS/SRC/DST2. Local and Remote directory synchronization#rsync-AUV--delete Program doc/media/cbdisk/project///sync to USB drive#rsync-AU
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.