1, Rsync IntroductionRsync is an open source, fast, versatile and excellent tool for full-scale and incremental simultaneous backup of local or remote data, and rsync software works on nunix/linux/windows multiple operating systems.Official website: http://www.samba.org/ftp/rsync/rsync.htmlRsync English is all called remote rynchronization.Features of the Rsyn:1)
-tools:
Before installing inotify-tools, check whether your Linux kernel has reached 2.6.13 and the CONFIG_INOTIFY option is enabled during compilation. You can also run the following command to check whether the following output is displayed, note:
[root@localhost~]
#ls/proc/sys/fs/inotify/
max_queued_eventsmax_user_instancesmax_user_watches
Installation:
wgethttp:
//cloud
.github.com
/downloads/rvoicilas/inotify-tools/inotify-tools-3
.14.
tar
.gz
ta
options for RsyncOther configuration items that are unique to the RSYNCSSH mode, such as host, TARGETDIR, Rsync_path, Password_file, are also available.Lsyncd.conf can have multiple sync, the respective source, the respective target, the respective mode, and not affect each other.Use the command to load the configuration file, start the daemon, and automatically synchronize the directory operation.Lsyncd-log exec/usr/local/lsyncd-2.1.5/etc/lsyncd.con
of variables. You can use # To note or delete them. For example:
Write:
=============================== 3> Start the rsync service ============= ==========
============= 4> rsync has been configured on the master server! Next we set the slave server ================
You only need to install rsync on the slave server. If not, you can run yum install
Server Configuration:Prerequisites: xinetd and rsync are installed.1. Modify the/etc/xinetd. d/rsync FileChange disable = yes to no in the following contentService rsync{Disable = yesSocket_type = streamWait = noUser = rootServer =/usr/bin/rsyncServer_args = -- daemonLog_on_failure + = USERID}2. Configure rsync to auto
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
/repos # needs to be mirrored in the directoryAuth users = rsync # Authorized account number. The authenticated user name, if not this line, indicates that it is anonymous, used by multiple users, separatedRead Only = no # Yes ReadOnly value is no meaning readable writable mode, data recovery with noHosts allow = 192.168.3.128 #允许访问的服务器IPHosts deny = * #黑名单List = true # Allow column file#ignore errors # can ignore some unrelated IO errors#exclude = ca
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
:
Wgjak47:thisispwd
Set the file permissions to 600 to prevent password leaks.
RSYNCD.MOTD (RYSNC server information)It is the user login information that defines the RYSNC server information. For example, let the user know who the server is to provide, such as:
++++++++++++++++++++++++++++++++++++++++++++++Welcome to use my rsync services!++++++++++++++++++++++++++++++++++++++++++++++
Enable
. Provide the correct module name or modify it on the server to the module you want to solve the problem.
Question 1:Problems encountered on the client:Rsync-auzv -- progress -- password-file =/etc/rsync. pas root@192.168.133.128: backup/home/Rsync: cocould not open password file "/etc/rsync. pas": No such file or directory (2)Password:@ ERROR: auth failed on mod
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#
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
Rsync is a tool that can back up the system as well as data synchronization.On Jenkins, you can use rsync to combine SSH with a password-free login for data synchronization and distribution. This allows the deployment to be fully imperative, without the need to rely on any plug-in to implement.Command reference: Http://man.linuxde.net/rsyncDescriptionThe rsync
[Sersync + rsync] centos6.5 Remote File sync deployment records
The local files are automatically synchronized to the remote folder for modifications, which is very useful for remote backup. After studying the mainstream synchronization solutionsRsync + inotify and rsync + sersync. I use the sersync solution here. Of course, most of them are based on previous experiences. Thank you for your selflessness.Ove
After configuring the Rsync server, you need to issue an rsync command on the client to back up the files on the server to the client. Rsync is a very powerful tool, and its commands have many special options. The following describes the options one by one. The Command Forma
Description1. Rsync Service EndSystem: Ubuntu Server 11.10IP Address: 192.168.21.168Data storage directory:/home/mysql_data2, Cwrsync clientSystem: Windows Server 2003IP Address: 192.168.21.130Synchronized Directories: D:\mysql_data to achieve the purpose: Cwrsync Client automatically synchronizes data from/home/mysql_data directory in rsync server to D:\mysql_data directory every day 3:00 First,
Label: des style HTTP color Io OS ar sp
(1) download the rsync source code for Installation
(2) 1' CD rsync
2'./configure -- prefix =/usr/local/rsync
3 'make
4 'make install (permissions may be required, plus SUDO)
(3) rsync command synchronization Parameter options (learn
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-
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.