sending the log to syslog.
Pid file
Specify the pid file of rsync.
Syslog facility
Specifies the message level when rsync sends a log message to syslog. Common Message levels are: uth, authpriv, cron, daemon, ftp, kern, lpr, mail, news, security, sys-log, user, uucp, local0, local1, local2, local3, local4, local5, local6, and local7. The default value is daemon.
Module Parameters
One or more modules
For each of the above six command formats, Rsync has six different working modes:
1 Copy Local files. This mode of operation is initiated when both SRC and des path information do not contain a single colon ":" delimiter. such as: Rsync-a/data/backup
2 Use a remote shell program (such as rsh, SSH) to copy the contents of the local machine to the remote machine. T
Rsync+inotify Synchronization Logic diagram
3.1 Environment Deployment Host Name Host IP Address System version System Kernel Version Inotify-master 192.168.1.128 CentOS Release 6.4 (Final) 2.6.32-358.el6.x86_64 Inotify-slave 192.168.1.160 CentOS Release 6.4 (Final) 2.6.32-358.el6.x86_64
4.1 Inotify-slave Deployment Here is the deployment of rsync service,
Rsync remote Synchronization
Rsync introduction:
Rsync is an excellent, fast, and multi-platform local or remote data image synchronization backup tool. Applicable to Unix, Linux, Windows, and other platforms.
During backup synchronization, by default,
operation on the rsync server. In general, Rsync skips the –delete operation in the event of an I/O error to prevent serious problems due to temporary resource shortages or other I/O errors.
True
Ignore nonreadable
Specifies that the RYSNC server completely ignores files that the user does not have access to. This is useful for files that need to be backed up in a directory that sho
I found that this problem has been thought to be a server problem twice, because of a machine appeared this problem, originally for security special cancellation file write and Modify permissions. Through McAfee's modify permissions, the problem is resolved, so there is a problem, first check directory permissions issues.
Rsync Error:some Files/attrs were not transferred (* previous errors)
Cwrsync rsync E
no configuration is required.
Then, on Server B, create the following script:
#!/bin/bash
/usr/loca/rsync/bin/rsync-vazu-progress–delete
–password-file=/etc/rsync.secret terry@192.168.100.21:/terry//home
Save this script as atob.sh and add the executable properties:
# chmod 755/root/atob.sh
Then, with the crontab setting, the script runs every 30 minutes. To execute a command:
# CRONTAB-E
Enter the followi
1. Structure of the rsync client and server:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/53/wKioL1P4UDSBT-mBAAEbRkRVC10368.jpg "Title =" rsync ..jpg "alt =" wKioL1P4UDSBT-mBAAEbRkRVC10368.jpg "/>
During routine maintenance, data backup is a relatively basic one. Rsync solves tedious data synchroni
First, download, install rsync
Normal when the RH is installed with rsync, run files on the/usr/bin/rsync
#tar ZXVF rsync-2.6.9.tar.gz
#cd rsync-2.6.9
#./configure--prefix=/usr/local/rsync
#make
#make Install
Second, configure
it in your/etc/inet. d and restart your Inet daemon if you disabled it for security ).
Rsync is rather versatile as a backup/flushing tool, offering features above and beyond the above. I personally use it to synchronize website trees from staging to production servers and to backup key areas of the filesystems both automatically through cron and by a CGI scr
rsync server and/home/terryThe directory is configured as a directory shared by Rsync. Then install rsync on Server B because B is only a client, so there is no need to configure it.Then, in Server B, create the following script:#!/bin/bash/usr/loca/rsync/bin/rsync-vazu-pro
# log file location. This file is automatically generated after rsync is started. you do not need to create it in advance.Pidfile =/var/run/rsyncd. pid # storage location of the pid fileLock file =/var/run/rsync. lock # lock files supporting the max connections parameterSecrets file =/etc/rsync. pass # The user authentication configuration file, which stores the
/hyj/vitest Rsync@192.168.8.126::clientdata--password-file=/etc/ Rsync.pass
At this point, the server's configuration file/etc/rsyncd.conf content is:
UID = root
gid = root
allow = 192.168.8.122, 192.168.8.123
#hosts deny = 0.0.0.0/32 use
chroot = no
Scheduled scheduled backups
22, if the implementation of the crontab command prompt:
The description has not yet provided crontab for root account. Execute crontab–e to crea
and server B, where server A runs rsync in server mode (passive, on B, rsync is run in client mode (active. In this way, the rsync daemon is run on web server A, and the client program is regularly run on B to back up the content to be backed up on web server.
#### Create a user and password authentication File
[Root @ www r
1. Download and install rsync* *** Rsync is enabled for normal RH installation, and the running file is stored in/usr/bin/rsync. # Tar zxvf rsync-2.6.9.tar.gz # Cd rsync-2.6.9 #./Configure -- prefix =/usr/local/rsync # Make # Make
#rsync启动时欢迎信息页面文件位置 (File content customization)
[Home_www.111cn.net] #自定义名称
Path =/home/www.111cn.net/#rsync服务端数据目录路径
Comment = Home_www.111cn.net #模块名称与 [home_www.111cn.net] Custom name is the same
UID = root #设置rsync运行权限为root
GID = root #设置rsync运行权限为root
port=873 #默认端口
Use chroot = no #默认为true, modified to N
Rsync is a data image backup tool in Linux. It can be seen from the software name-remote sync. Rsync supports most Unix-like systems, including Linux, Solaris, and BSD. The latest version of rsync can be found at http://rsync.samba.org/rsync. Its features are as follows:1. i
that so many people want to use it, and it has so much appeal? (Really ... )
[--progress Options]
With this option, rsync shows the progress information, what's the use, and rsync gives an interesting explanation:
This is gives a bored user something to watch.
Well, wrote so much, we see is very boring, to the actual use of –progress to solve boredom, is a good choice ^_^
Here is a detailed explanatio
manage rsync services in CentOS)4. Create a rsyncd.conf configuration fileVi/etc/rsyncd.conf #创建配置文件, add the following codeLog file =/var/log/rsyncd.log #日志文件位置, automatically generate this file when Rsync is started, without having to create it in advancePidfile =/var/run/rsyncd.pid #pid文件的存放位置Lock file =/var/run/rsync.lock #支持max the connections parameterSecrets file =/etc/rsync.pass #用户认证配置文件, which st
the file size, attributes, permissions, MD5 values, and other information as required. If the file information on both ends is inconsistent, synchronize the different file blocks as required.
The following uses the/usr/local/tomcat6/web directory of the backup rsync server as an example for deployment.
Rsync is easy to set up.
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.