the terms of the GNU 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 script
Pid file =/var/run/rsync. pid
Port = 873
# Address = 192.168.1.171
# Uid = nobody
# Gid = nobody
Uid = root
Gid = root
Use chroot = yes
Read onl
[[email protected] ~]# rsunc-a/boot/xxx (Sync entire folder)[[email protected] ~]# rsunc-a/boot//xxx/(sync directory data only)Server-side requirements: The server should open the SSHD service, and provide the authorized user, password, this directory must have the appropriate permissions to the remote directoryRSYNC+SSH Remote Synchronizationdownlink sync:
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 f
, compared to those traversing the entire directory scanning way, the efficiency is much higher.Sometimes it happens that when you write a large file to a inotify-monitored directory (this is/web/wwwroot/), it takes a while to write to the large file, and inotify constantly prints out the updated information about the file. This will continue to trigger rsync to perform synchronous operations, the use of a large number of system resources, so in this
I've written it before. Timed backups via rsync: Windows2008 and Centos7.0 via rsync for Updates (backup), and now the need for real-time synchronous backups via rsync and INotify. The first step: Getting Ready for work 1. INotify Introduction
Inotify is a Linux feature that monitors file system operations such as read, write, and create. The Inotify is responsiv
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
How to use rsync under LinuxSpit Groove After summing up the SCP yesterday, I saw that there was finally a talk about Rsync, a cloud: Curiosity killed the cat. With the attitude of learning to find out the rsync, and then carried out some simple study. Here are a few common commands. The scp:12 of the previous article is a file for the SCP transfer of chestnuts.
backup is required-p equivalent to--partial--progress Show Backup process-Z,--compress compress the backed-up files during transmission--exclude=pattern specify to exclude file modes that do not need to be transferred--include=pattern specifies file modes that need to be transferred without exclusion--exclude-from=file exclude files in the specified schema in file--include-from=file does not exclude files that specify pattern matching--version Print version Information--address binding to a spe
users = ApabiuserSecrets file =/usr/local/rsync/rsync.passwdWhere Apabi is the name of the authentication module in the Server service, it needs to be consistent with the master server.Name the configuration file rsync.conf, and put it in the/usr/local/rsync/directory.16. Start the Rsync serviceFiles under Client tmp:We create a test file on the server apabi2013
$ rsync -v -d thegeekstuff@192.168.200.10:/var/lib/ .Password:receiving file list … donelogrotate.statusCAM/YaST2/acpi/sent 240 bytes received 1830 bytes 318.46 bytes/sectotal size is 956 speedup is 0.46
9 view the transfer process of each file
Use-progress parameters
$ rsync -avz – -progress thegeekstuff@192.168.200.10:/var/lib/rpm/ /root/temp/Password:receiving file list …19 files to consider./Basen
. Testing1. Add files to the master directory to see if you can syncCp/etc/passwd/var/ftp/pubSlave run a script testsh/root/rsync.shSee if there are a few more files in the/var/ftp/pub2. The client creates a backup policy that synchronizes every 5 secondsCron can only be accurate to the point, with the script to achieve every 5 seconds synchronizationVI cron.sh#!/bin/bashFor ((i=1;iecho "*/1 * * * */root/rsync.sh" >>/var/spool/cron/rootSleep 5DoneAdd the files again in the/var/ftp/pub to see if
Files\cwrsync\binRSYNC-VZRTOPG--port=873--progress--delete [email Protected]::xuersync/cygdrive/d/xuersync Echo.echo Data Sync completeEcho.Last Save exit2. Add batch script to Windows Task SchedulerStart-Settings-Control Panel-Task SchedulerOpen the Add task schedule, NextBrowse, select Open C:\Program files\cwrsync\bin directory inside the Xuersync.batPerform this task, select Daily, NextStarting Time: 3:00Run this task: daily, nextEnter the login
script to monitor the Rsync service on the backup side:[Email protected] shell]# vim rsync_check.sh###################################################################################!/bin/bash##2015.10.8##The script would check the Rsync service, if you find that rsync would restart the service.rsync_check= ' NETSTAT-NPL | Grep-c
We're all looking through the error log.Inside the Rsyncd.log or the. err file, you can open the view with Notepad. Note that under Windows we need to give svcwrsync users the ability to manage all the permissions on the sync directory, basically. Question one:@ERROR: Chroot failedRsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1522) [receiver=3.0.3] Reason:The server-side directory does not exist or does not have permissions, cr
600, if not set to 600, the client connection will be prompted to verify that the password fails. Be sure to pay attention here. The installation is complete here. Here is the configuration.1.2 Configuring the server side:Vim/etc/rsyncd/rsyncd.conf #编辑rsync主配置文件PID file =/var/run/rsyncd.pidUID = rootGID = rootUse chroot = yes # #是否限制在指定目录, in order to install, generally need to enableRead Only = noHosts allow = 10.171.22.124Max connections = 5Log file
host name of the source or destination path contains a colon separator, rsync uses a remote shell transport, and when the source or destination path's host name contains two colons, or uses Rsync://url, Rsync uses TCP to directly connect to the Rsync daemon.In particular, if you specify only the source path and do not
# specified when determining whether to run the delete operation during transmission, rsyncd ignores the IP address error on the server, generally, when an IO error occurs in rsync, The -- delete operation will be skipped, read only = yes # indicates pullwrite only = no # indicates pushhosts allow = 192.168.177.131 # The address synchronized from the client hosts deny = * # specify not to allow connection to r The host of the
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
First, RsyncRsync (remote synchronize), as the name implies, can know that this is a remote data synchronization tool, you can quickly sync files between multiple hosts via Lan/wan. Rsync uses the so-called "rsync algorithm" to synchronize files between local and remote two hosts, which transmits only the different portions of two files, rather than the entire tr
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.