Jul2715:22/etc/backserver.pas4. Starting the rsync server #/etc/init.d/xinetd Startstartingxinetd: [ok][[emailprotected]~]#netstat- ntl|grep873tcp0 00.0.0.0:873 0.0.0.0:* listen two. Client Configuration LSYNCD, real-time synchronization based on LSYNCD (less latency) 1.1 installation lsyncdyum searchlsyncd (source server installation) If this package is not found, only that you do not have the Yum expansion pack installed for CentOS, you must firs
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
restart. *rsyncdaemonnotenabledin/etc/default/rsync,notstarting...# to see if it starts, There is an rsync listening port to indicate normal:#sudonetstat-antp|greprsynctcp 000.0.0.0:873 0.0.0.0:* listen29605/rsync 3. Source Server Installation and configuration# sudo apt-get install rsync Inodify-tools#
is only used to synchronize updated files to avoid repeated updates to non-updated files. Note the clock synchronization between the two machines.
-- Progress indicates that the detailed progress is displayed,
-- Delete: if the server deletes the file, the client also deletes the file to ensure true consistency. The following roger@192.168.5.13: linuxsirhome, after linuxsirhome is the module name, that is, in/etc/rsyncd. the name defined in conf. roger is the user name that can be synchronized
installation path
4, Cwrsync client synchronization rsync Server data
Start-run-cmd, enter CD C:\Program files\cwrsync\bin carriage return
Re-enter RSYNC-VZRTOPG--progress--delete [email protected]::mysql_backup/cygdrive/d/mysql_data
Input password: 123,456 back to the car
The following interface appears, indicating successful data synchronization
You can turn on D:\mysql_data and compare the dat
(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
. Secret backupuser@192.168.1.2: backupuser/opt/backup/
# Summary
You can place the synchronization script in the corntab on the client to regularly synchronize data.
# Common global options** Motd file **: Set the welcome message.
** PID file **: This option tells daemon to write its process ID to the specified file. If the file already exists, daemon stops running, instead of overwriting the original file.
** Port **: Set the port of the daemon runn
are synchronized. Rsync will not synchronize files that have not been modified. To put it bluntly, Rsync is an incremental backup. If you want to synchronize a file, you can:
# Rsync-v-a-z-e ssh/etc/sysconfig/iptables
6. There is also an option for rsync, which is -- bwlimit. This item can be used to limit the data s
=/var/run/rsyncd.pid
Lock file =/var/run/rsync.lock
Log file =/var/log/rsyncd.log
[WEB3]
Path =/web3/wwwroot/
Comment = web3 file
Ignore errors
Read Only = no
Write only = no
Hosts allow = 192.168.12.134
Hosts deny = *
List = False
UID = root
GID = root
Auth users = Web3user
Secrets file =/etc/web3.pass
After the three service node rsyncd.conf file configuration completes, start the rsync daemon, and then add the
recursive (recursion), TOPG is to keep the original attributes of the file, such as the main, time parameters. --progress is the display of detailed progress,--delete is that if the server side delete the file, then the client will also delete the file, to maintain true consistency.[Email protected]::98html means that the command is a backup of the 98html module in Server x.x.x.168, where 98syn means a 98syn user is used to back up the module. ---PASSWORD-FILE=/ETC/RSYNC98.SCRT to specify the p
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
synchronizing files can keep the original file permissions, time, soft and hard links and other additional information. Rsync Service Side
Install Rsync First:sudo apt-get install rsync
2. The Rsync service needs to be configured on the service side of rsync,
local machine to remote rsync server. When the DST path information contains the "::" Separator
Move the pattern.6. List of files for remote machines. This is similar to rsync transmission, but simply omitting the local machine letter in the command
Can be.Here is an example to illustrate:# rsync-vazu-progress terry@192.168.100.21:/terry//homeV Detailed TipsA in
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
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
links, files belonging to, permissions, devices, and time;No special permission requirements are required for installation;For multiple files, the internal pipeline reduces the latency of file waiting;You can use rsh, ssh, or direct port as the transfer port;Supports anonymous rsync file synchronization and is an ideal image tool;
2. rsync installation. Common method: yum install
rsync+inotify Implementing file synchronization Updates (no firewall version)DirectoryDescription:... 2ready to work: Shut down the server's firewall ... 2shutting down the firewall firewall2Disable boot-up firewall ... 2write the script "shut-firewall.sh". 2Publisher Configuration rsync:192.168.171.128. 2Installation Configuration
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.