(such as rsh, SSH) to copy the contents of the remote machine to the local machine. This mode is started when the SRC address path contains a single colon ":" Separator. such as: Rsync-avz foo:src/zouch//data4 Copy files from remote rsync server to local machine. This mode is started when the SRC path information contains the "::" delimiter. such as: Rsync-av ro
Tags: rsync introduction rsync common options rsync six modesI. Introduction of RsyncThe rsync command is a remote data synchronization tool that enables fast synchronization of files between multiple hosts via Lan/wan. Rsync uses the so-called "
synchronizes the user's password to the storage path of the source serverDstip = "192.168.1.9 192.168.1.10 Prime; # ip address of the target server. Separate multiple ip addresses with spaces./Tmp/rsync. log # script running log records6. Set the script to automatically execute upon startupVi/etc/rc. d/rc. local/Bin/bash/usr/local/inotify/rsync. sh amp; # set
(recursive ), topg is a parameter that maintains the original attributes of the file, such as the owner and time. -- Progress indicates that the detailed progress is displayed. -- delete indicates that if the server deletes the file, the client also deletes the file to ensure true consistency.98syn@x.x.x.168: 98 HTML indicates that the command is to back up the 98html module in server x. x. x.168, where 98syn indicates that 98syn is used to back up the module. -- Password-file =/etc/rsync98.scr
Rsync: a very practical file synchronization command, rsync is very practical
Sync is a file synchronization and data transmission tool in Linux. It can be used to synchronize files and release code.
1. install.
Yum install-y xinetdYum insatll-y rsync
2. ConfigurationEnable rsync vim/etc/xinetd. d/
Raspberry Pi-rsync and Raspberry Pi rsyncYou can use rsync to synchronize folders between different computers. You may want to transfer a file from your desktop computer or laptop to your Raspberry Pi and keep the file updated. Or, you want to automatically transfer the photos taken by Raspberry Pi to your computer.Using SSH-based rsync allows you to automaticall
synchronization service is built more perfectly.2. Windows configuration ClientIn order to use the Rsync tool in a Windows environment, we need to downloadCwrsyncTool, which is a version of Rsync for Windows.Now that we can run the Rsync tool in a Windows environment, for example, use the following command to connect to the server and start backing up directorie
parameter that maintains the original attributes of the file, such as the owner and time. -- Progress indicates that the detailed progress is displayed. -- delete indicates that if the server deletes the file, the client also deletes the file to ensure true consistency.98syn@x.x.x.168: 98 html indicates that the command is to back up the 98html module in server x. x. x.168, where 98syn indicates that 98syn is used to back up the module. -- Password-file =/etc/rsync98.scrt to specify the passwor
automatic synchronization for the master-slave server =====
The crond service on the slave server is used for automatic synchronization. For more information about crond, see linux scheduled execution system.
We create two rsync. sh files and rsync. pass files under the/root/www directory of 192.168.5.11 from the serv
1.rsync Introduction"Rsync is a data-mirroring backup tool for Linux systems. Use the Quick Incremental Backup tool Remote Sync can be synchronized remotely, support local replication, or synchronize with other SSH, Rsync hosts2.rsyncfeatures and features of1. can make backup of various resources of server (can boast file system)2. Linux-
Cwrsync Serverwhen installed, the user and password are set to Dianyi, which is the user name and password that two machines use when using rsync to communicate with one another .2, configure the rsync server on this Windows, remote Linux as rsync client to pull files on the Windows Server(1) Modify the configuration fileadd modules in C:\Program Files (x86) \ic
This article System Centos6.0
Server: (Centos) 192.168.182.130
Client: (LV2) 192.168.182.129
Rsync 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 save the entire directory tree and file system.
It is easy to maintain the original file permissions, time, soft and hard links and so on.
can be installed without special permi
Restrict 192.168.4.0 mask 255.255.255.0nomodify notrap
// Allow this network segment to use this server as an NTP server
Server 127.127.1.0 // use the local machine as the NTP server
[[Email protected] ~] # Service ntpd restart
[[Email protected] ~] # Date
Tuesday, August 26, 2014 03:04:37 CST
2. test time synchronization on the client.
[[Email protected]/] # date
Wednesday, December 12, 2007 12:12:03 GMT
[[Email protected]/] # ntpdate 192.168.4.2
[[Email protected]/] # date
Monday, August 25,
How to Use rsync client on windows, rsync Client1.1 obtain the rsync software on windows (cwRsync)
CwRsync is a package containing Rsync in the Windows Client GUI. You can use cwRsync to quickly back up and synchronize remote files.1.1.1 Official Website
Https://www.itefix.net/cwrsync
Download Method:
1. Click get on
Rsync synchronization error handling and rsync synchronization error
1. incorrect user password
@ERROR: auth failed on module testrsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
Check whether server A stores the password file and server B password file.Server A password file:/etc/rsyncd. secrets format: username: passwordServer B password File:/etc/rsyncd. se
situations.In this example, I added the archive switch (-a), which is actually equivalent to using several rsync switches at the same time. It includes a recursive and duplicate symbolic link switch, a retention group and a master attribute switch, in short, to make rsync suitable for archival copies. Note that the-a does not retain hard links, and you should also add a hard-link switch (-h) if you want.An
ldconfig#ln-s/alidata/server/inotify/include/usr/include/inotify At this point, the distribution server file changes can be detected.3. Compile and install rsync to the content distributor here to act as the client's rolewget Https://download.samba.org/pub/rsync/src/rstar zxvf rsync-3.1.2.tar.gzcd rsync-3.1.2./confi
For the configuration of rsync, please refer to the blog:http://www.cnblogs.com/snsdzjlz320/p/5630695.htmlExperimental environment(1) rsync server: 10.0.10.158(2) rsync client: 10.0.10.173
I notify are configured on the client side1. Check if the system supports inotify# ls/proc/sys/fs/inotify/ max_queued_events max_user_instances max_user_watches # Th
Rsync timing synchronization configuration and rsync synchronization ConfigurationAttach script
For the three configuration files, see rsync installation and configuration.
#!/bin/sh#linuxsir.org home backup #/usr/bin/rsync -avzP --password-file=/etc/rsyncd.secrets root@192.168.145.129::test /home/test/$(date +'%s-%m-%
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.