Stream (code) at IO.C (759) [receiver=3.0.6]Close or configure IptabelesTurn on the 873 Port or close the iptables directlyBecause I'm a samba server, I'm using an internal network, so I closed the iptables before. Client-side settingsInstall rsync .Set the rsync boot upEdit User Password fileVim/etc/rsyncd/ryncd.secretsKingvon:testHere are Some common parameters of the
in here The introduction of rsync combined with inotify configuration file real-time synchronization method, with the need for a friend reference. About the software I will not introduce more, please refer to the degree Niang! Note : 1. At the time of configuration, the master server and the backup server are clearly divided. 2. When using someone else's script, note the name of the profile referenced in your script.3. Turn off the firewall, test the
# indicates the client address to be synchronizedSrc01 =/var/mail/# synchronize the var/mail data of the master server to the clientDes01 = var # Module name VaRUser01 = varuser # username used to connect to the clientSrc02 =/home/# synchronize the Home Directory of the master server to the clientDes02 = maildata # Home Directory module named maildataUser02 = mailuser # users required to synchronize the Home Directory/Usr/bin/inotifywait-mrq -- timefmt '% d/% m/% Y % H: % m' -- format' % T % w
location ---config=File Specifies a different configuration file and does not use the default rsyncd.conf file Wu--port=Port Specifies the other rsync service ports ---blocking-io uses blocking IO for remote shells About-stats gives the transfer status of some files $--progress in the transmission of the real-time transmission process ---log-format=format Specifies log file formats ---password-file=file ge
'%T%w%f%e '-e modify,delete,create,attrib $src \| While read filesDo/USR/BIN/RSYNC-VZRTOPG--delete--progress--password-file=/etc/rsyncd.secrets $src [email protected] $host:: $DSTecho "${files} was rsynced" >>/tmp/rsync.log 2>1DoneHere is a brief explanation of the script contentHost is the IP address of the server, if there is more than one, write on it in turn.SRC is the directory that the client wants t
if there is a soft connection file in Src, then adding this option will copy the destination file pointed to by the soft link to the DST-P Maintain file permissions-O Keep File owner information-G hold File group information-D Keep Device file information-T hold file time information--delete Delete those files that are not in the DST SRC--exclude=pattern specifies to exclude files that do not need to be transferred, the equals sign followed by the file name, can be a universal character pattern
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-%
Author: Zhang Hua published in: 2015-12-28Copyright NOTICE: You can reprint, reprint, please be sure to hyperlink form to indicate the original source and author information and this copyright notice
(http://blog.csdn.net/quqi99)
It is urgent to use rsync to sync photos on multiple machines at home.
sudo apt-get install rsyncsudo update-rc.d-f rsync removesudo update-rc.d
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
-times don't skip files that have the same time and length–size-only when deciding whether to back up a file, just look at the file size regardless of file time–modify-window=num determines whether the file is time-stamped with the time Stamp window, which defaults to 0-t–temp-dir=dir creating a temporary file in Dir–compare-dest=dir also compares the files in DIR to determine if a backup is required-p equivalent to –partial–progress Show Backup proce
the default rsyncd.conf file.--PORT=PORT Specifies the other rsync service ports.--blocking-io uses blocking IO for the remote shell.-stats gives the transfer status of some files.--progress in the transmission of the actual transmission process.--LOG-FORMAT=FORMAT Specifies the log file format.--password-file=file gets the password from file.--bwlimit=kbps limits I/O bandwidth, Kbytes per second. -H,--hel
back up a file, just look at the file size regardless of the file time.--modify-window=num determines whether the file is time-stamped with the time Stamp window, which defaults to 0.-T--temp-dir=dir creates a temporary file in Dir.--compare-dest=dir also compares the files in DIR to determine if a backup is required.-P is equivalent to--partial.--progress shows the backup process.-z,--compress the files that are backed up are compressed at the time
experiment service end ip:192.168.10.185, client ip:192.168.10.186)1. Log in to the client,put the server on the/bakThe contents of the folder are backed up to the client's/ImageFilein: /app/bin/rsync-vzrtopg--delete --progress [email protected]: : Bak/imagefile 2. Log in to the client and back up the contents of the Client/ImageFile folder to server/bak:/APP/BIN/
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.
;
6. Encrypted data transmission ensures data security;
Ii. Image directory and content
Rsync-AV duying/tmp/test
View the/tmp/test directory. We can see that this command is to test the Directory and content of the duying folder to the current directory.
Rsync-avduying // tmp/test Note: The symbol "/" is more than the previous command.
View the/tmp/test directory again. We found that there is no duying di
Article Title: Rsync introduction to file processing commands. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
After Rsync completes data backup, this operation will be automatically terminated. For this purpose, it is best to add a "-a" option (for files) and "-e" optio
, client installation rsync,inotify-tools and configuration1. Install rsync and configureYum Install Rsync-yThe client configures Rsync, creates a password file, synchronizes with this file later and does not need to fill in the password:touch/etc/rsync_passwdchmod 600/etc/rsync_passwdecho "123456" >/etc/rsync_passwd(w
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
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.