-site.xml. -- password-file = rsync. passHere, rsync. pass only has the password 123456, the user name has been specified in the command line, and the rsync. pass File Permission is changed to 600.
3. export environment variable, password-free rsync
export RSYNC_PASSWORD=$
Rsync learns to record rsync server troubleshooting ideas 1. Check whether the rsync service configuration file path is correct, the correct default path is/etc/rsyncd. conf 2. Check the host allow in the configuration file. Host deny: whether the ip address CIDR Block allowed by the client is the ip address CIDR Block allowed by the client. 3. Check whether the
$ rsync -azv filename1 filename2
Use the preceding command to synchronize the files in filename2 at the same time as the files created in filename1,
It retains symbolic links, permissions, time tags, user names, and group names.
3. Synchronize files locally to the remote server
$rsync -avzfilename1 root@192.168.0.1:/home/redhat/filename2
The above
92.3.2 Test Command 92.4 rsync Multi-module Configuration 102.4.1 Editing a configuration file/etc/rsyncd.conf 102.4.2 Creating a directory and assigning permissions 112.4.3 Restarting the Rsync service 112.4.4 testing on the client 112.5 rsync Multi-User Configuration 112.5.1 Editing a configuration file/etc/rsyncd.c
' is triggered when addition, deletion, and modification occur'' event $ events ">/var/log/rsync appears. log 2> 1 -- point to log Path done
# Nohup sh/tmp/1.sh -- use nohup to suspend the execution in the background. If the terminal is closed, the process will not be closed.-- If you want To Enable Automatic startup, you can add this command to/etc/rc. local or write it as a shell Service script to enab
string containing the format specifiers. The format specifiers can be used as follows:
% H remote host name
% A remote IP Address
% L file length characters
% P process id of the rsync session
% O operation type: "send" or "recv"
% F file name
% P module path
% M Module name
% T current time
% U authenticated user name (null when anonymous)
% B actual transmitted bytes
% C when a file is sent, this field records the file's verification co
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
website to download one back:
# wget http://ftp.samba.org/ftp/rsync/rsync-2.5.6.tar.gz
2. Decompression
# TAR-XZPVF Rsync-2.5.6.tar.gz
3. Compile and install
# CD RSYNC-2.5.6/
#./configure–prefix=/usr/local/rsync
# make
# make Install
The above process does not appear to b
format.TimeoutThis option allows you to override the IP time-out period specified by the customer. This option ensures that the rsync server does not wait forever for a crashed customer. The timeout unit is seconds, and 0 means there is no timeout definition, which is also the default value. An ideal number for an anonymous rsync server is 600.Refuse optionsThis option allows you to define a list of
xinetd-y]
2. Start the rsync dependency service
[/Etc/init. d/xinetd start]
[Chkconfig xinetd on]
3. the password file must be configured on the client.
[Vi/etc/rsync. pas]
123456 # consistent with the user password on the server !!
Chmod 600/etc/rsync. pas # Same server license
4. Run the following command on the cli
Install rsync in Redhat
1, first on the server and the client are installed rsync, my RHEL5 by default has been installed. When installing REDHAT5, you can see it in the "basic system" in software Customization-"basic" optional packages: rsync-2.6.8 is installed by default
2, can also be checked through the command
, few in number -- yet quite powerful.
Any number of machines with rsync installed may then synchronize to and/or from the machine running the rsync daemon. you can use this to make backups, mirror filesystems, distribute files or any number of similar operations. through the use of the "Rsync algorithm" which transfers only the diffs between files (similar to a
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 synchronization from time to time and does not need to
Tags: rsync introduction rsync common options rsync six modesI. Introduction of RsyncThe rsync command is a remote data synchronization tool that enables fast synchronization of files between multiple hosts via Lan/wan. Rsync uses
indicates that the rsync server has been started.
5.Open Firewall
Iptables-I INPUT-p tcp -- dport 873-j ACCEPTIptables-LThe result is as follows:Chain INPUT (policy ACCEPT)Target prot opt source destinationACCEPT tcp -- anywhere tcp dpt: rsync
6.End Process: kill-9 pid ValueKill-15 process name
7.Rsync bootEcho "/usr/bin/rsy
sent 194 bytes received bytes 450.00 bytes/sec Total
size are 15.99M speedup is 71,086.85 (DRY RUN)
This makes it easy for users to check whether their parameters are properly configured. crontab Regular Backup
Typically, if you want to make a backup on the local side, you can periodically perform this instruction in crontab and periodically back up important information to the specified catalogue:
# m H Dom Mon Dow command
0 5 * * 1
Raspberry Pi-rsync and Raspberry Pi rsyncYou can use rsync to synchronize folders between different computers. You may want to transfer a file from your desktop computer or laptop to your Raspberry Pi and keep the file updated. Or, you want to automatically transfer the photos taken by Raspberry Pi to your computer.Using SSH-based rsync allows you to automaticall
First, rsync1. What is rsyncRsync is a remote data synchronization tool that enables data synchronization within or across hosts. With the service runtime listening on the TCP 873 port, the rsync algorithm can reach only the part of the file change, not the entire transmission, so the speed is quite fast, good performance.So rsync can usually be used as a backup tool.1.1
-vzrtopg -- progress -- delete hening@192.168.0.217: backup/home/backup -- password-file =/etc/rsync. pasUpload files to the SERVER/Usr/bin/rsync-vzrtopg -- progress -- password-file =/root/rsync. pas/home/backup hening@192.168.0.217: backupThis command backs up all files (including subdirectories) in the local machine
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.