compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbzCreate a password file$sudo vi/etc/rsyncd.secretsRsync:123$sudo chmod 0600/etc/rsyncd.secretsStart rsyncSudo/etc/init.d/rsync startClientWe look at the operation of the client, the general client does not need special configuration, the direct synchronization canRSYNC-VZRTOPG--progress [email PROTECTED]::RSYNC_BK. #. For the current directory, touch a file on the server, after synchronizati
[Root@localhost admin_backups]# Crontab–e
Add the following:
The code is as follows
Copy Code
*/1 * * * */home/admin/admin_backups/backup.sh >/dev/null 2>1
Sync every minute from server A to Server B!4. Use –execlude= to exclude file suffix names that do not need to be synchronized
The code is as follows
Copy Code
Rsync
security, client connection module, first chroot to the directory specified by the module path parameter #chroot为yes时必须使用root权限, and cannot back up a link file outside the pathMax connections = 10//maximum number of connectionsStrict modes = yes/Check the password file permissionsLocation of pid file =/var/run/rsyncd.pid//pid filesLock file =/var/run/rsync.lock//locks files that support max connections parametersLog file =/var/log/rsyncd.log//log files location, automatically generate this fil
Primary server: 192.168.5.13_ubuntuFrom server: 192.168.5.11_centos================== 1> is installed on both hosts separately rsync===================Ubuntu installation is as follows:
# Apt-get Install rsync
Compile and install: Download this free softwarersync.samba.org/or Samba.anu.edu.au/rsyncGo to the official website to download the latest versionPerform #./configure make make install
Tags: emctl tool RSA Data rsync service Switch Delta ROC workAbout RsyncRsync is a data-mirroring backup tool for Linux systems, using the Fast incremental Backup tool remote sync to remotely synchronize, support local replication, or synchronize with other Ssh,rsync hosts
Rsync-A archive mode-V Verbose output-Q
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-%
/rsyncd.secrets format is: Username:password
Server B password File password.rsync format is: password
File Permissions Error
Copy Code code as follows:
Password file must not is other-accessible
Continuing without password file
Password:
@ERROR: Auth failed on module * * *
Rsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1503) [receiver=3.0.6]
Check that server a stores password files and Server
RSYNC software introduction: rsync is a data image backup tool in unix-like systems. It can be seen from the software name-remote sync.
I. Use rsync to start rsyncserverTwo Methods for RSYNC server startup1. Start the rsync server
Path =/data//This is the sync path use chroot = no # max connections=10 lock file =/var/lock/rsyncd # the default fo
R Read Only is yes ... read only = no//This place is to be configured no, otherwise to the/data path to write files will occur error List = yes uid = root gid = root # exclude = # Exclude from = # include = # include from = Auth users =lzj//lzj is the user rsyncd.secrets inside the secrets file =/etc/rsyncd.s Ecrets Strict modes = yes
Science Document: Https://wiki.archlinux.org/index.php/RsyncUsed before changing the file system. However, the use of the less right, resulting in some of the file permissions out of the question.[Troubleshoot] [ArchLinux] [Bcache] Modify Linux file system/partition scheme/DO hybrid HDD/system Rebirth Big! Hand! Postoperative (Adjust the underlying schema, no!) Heavy! Mount )Tutorial for full-system backup with rsync: Https://wiki.archlinux.org/index.
Server A:Forum master server, run DZ X2 forum program; Server B: Forum from server, need to put X2 picture attachment and MySQL data real-time from a master server to B server. The MySQL sync settings are in the next section. The following is a picture for synchronizing two servers in real time.
Because the general rsync requires Cron to periodically run the SH script to achieve synchronization, this poses
Document directory
Introduce Microsoft Sync Framework
Install Microsoft Sync Framework
A simple example
Preface
Recently, the Team took over development work related to Microsoft Sync Framework (MSF), so it is a great opportunity to study and learn about Microsoft Sync Framework, an excellent synchronization tool.
profile (not by default)Create rsyncd.conf (service profile) separately under/etc/RSYNC.PASSWD (account and password to store client Login rsync service)RSYNCD.MOTD (Welcome or description information when logging into the service, free designation, optional)##########################################################################################vim/etc/rsyncd.conf//Create a service configuration fileUID = rootGID = rootPort = 873//Specify the ports
rsync Sync specified directoryRsync uses the –include parameter and the –exclude parameter to synchronize the specified directory, and the –exclude directory is left behind.For example:Linux file directory
Copy Code code as follows:
Ls/usr/local/apache/htdocs/site
Aa
Bb
Cc
Dd
Ee
..
Zz
Just want to sync aa,bb,ee these three
.rsync:opendir "/kexue" (in Dtschannel) Failed:permission denied (
Sync directory permissions settings are not correct, instead 755
9.rsync:read error:connection Reset by peer (104) rsync error:error in Rsync protocol data Stream (code) at IO.C (759) [RECEIVER=3.0.5] Not started xinetd daemon [[emailprotected]/]# service xinet
I found this problem twice and thought it was a server problem because a machine encountered this problem. For security purposes, I canceled the permission to write and modify files. You can solve the problem by modifying the permission of mcafee. In this case, check the directory permission first.
Rsync error: some files/attrs were not transferred (see previous errors)Cwrsync rsync error failed: Invalid a
Some rooms will limit the flow of the machine, in order to not touch the bottom line, in the use of SCP and rsync should pay attention to.In order to avoid the disconnection caused by your SCP or the Lazy OPS Setup firewall, we have to limit the flow of our data, and it's better to be slower than pinched. Therefore (limited to 1M bytes/s):
Scp-l 10000 A large file your account @ remote machine or rsync is
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.