- - progress - - delete rsync://[email Protected] 211 55 11/test/ rsynctarget/ Where rsynctest is my sync username, 10.211.55.11 is the IP of my rsync server. Run the command and enter the password. If you do not want to enter the password every time, you can add parameters --password-file=/etc/rsyncd.secrets , wherein Rsyncd.secrets is your
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
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
# directory to be backed up, which must be specified, comment = whole ftp area ## comment read only = no ## whether the client is read-only write only = no ## whether only hosts allow = * ## allow synchronous host hosts deny = 192.168.0.0/ 24 ## list of hosts with access prohibited = yes ## list all modules uid = root gid = root auth users = sl Ave ## user secrets file =/etc/rsync that can be connected to this module. pass ## where is the password fi
, after saving to give 600 permissions , if the permissions are not correct, cannot complete synchronization# CAT/ETC/RSYNCD.PASSWDTest:test123Modify Permissions# chmod 600/ETC/RSYNCD.PASSWDStart the RSYNCD service# rsync--daemon--config=/etc/rsyncd.confTest on another machine (must be the IP address allowed in hosts allow )# RSYNC-AVL [Email protected]::test/tmp/test5/Password:Receiving incremental file l
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
drop it, or delete it, for example:
Zhouda#vi RSYNCD.MOTD
Write:
welcome!
===================== 3> start rsync service =======================
Zhouda#/usr/bin/rsync--daemon--config=/etc/rsyncd/rsyncd.conf
============ 4> master server is already configured rsync! Below we set the ============ from the serverJust install
to handle soft links like regular files--copy-unsafe-links only copies links to links outside the SRC Path directory tree--safe-links ignoring links to the SRC Path directory tree-H,--hard-linksKeep Hard Links-P,--permsKeep file permissions-O,--owner keep file owner information-G,--group keep file group information-D,--devices keep device file information-T,--times keep file time information-S,--sparse special processing of sparse files to save DST space-N,--dry-run reality which files will be
server. Provide the correct module name or modify the server side to the module you want to solve the problem. Question 1:Encountering problems on the client:Rsync-auzv--progress--password-file=/etc/rsync.pas root@192.168.133.128::backup/home/Rsync:could not open password file "/etc/rsync.pas": No such file or directory (2)Password:@ERROR: Auth failed on module backupRsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1506) [receiver=3.0.7]This problem was encountered: The cl
open password file "/etc/rsync.pas": No such file or directory (2)Password:@ERROR: Auth failed on module backupRsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1506) [receiver=3.0.7]This problem was encountered: The client side did not set/etc/rsync.pas this file, and when using the rsync command, this parameter was added--Password-file=/etc/rsync.pasQuestion 2:
TenSent 650 bytes received 136 bytes 1572.00 bytes/sec OneTotal size was 324 speedup is 0.41 The above command can help you find the source address and destination address of the file or directory between the different.-I: This option makes it easy to quickly locate modified files by listing different files or directories. Vi. BackupThe rsync
drop it, or delete it, for example:
Zhouda#vi RSYNCD.MOTD
Write:
welcome!
===================== 3> start rsync service =======================
Zhouda#/usr/bin/rsync--daemon--config=/etc/rsyncd/rsyncd.conf
============ 4> master server is already configured rsync! Below we set the ============ from the serverJust install
The rsync command is a remote data synchronization tool that allows fast synchronization of files between multiple hosts through Lan/wan. Rsync uses the so-called "rsync algorithm" to synchronize files between local and remote two hosts, and this algorithm transmits only a different portion of two files, rather than se
file in the rsync-3.0.8/directory, copy it to/usr/local/bin:[Root @ server rsync-3.0.8] # \ cp rsync/usr/local/binPS: both the server and the client must perform the above installation operations. If both the client and the server are a type of operating system, you can compile and install it once, then, the rsync BIN
-detach"2. Modify the registry in the dual-machine rsync-param.reg FileStep 5 of Rsync: add an rsyncd. conf file in d: \ rsync to configure the corresponding service configuration file. The content is as follows:
usechroot=false
strictmodes=false
hostsallow=*
logfile=c:/rsyncd.log
[BackupArea]
path=d:/backup
readonly=no
Step 6 of
synchronized:Enable the sersync daemon on the master server to run sersync in the background and enable real-time synchronization.Then we access 192.168.2.103 through a browser, and we can see that the displayed content is actually the content of 192.168.2.102: // opt/tongbu/index.html. Only 192.168.2.103 is synchronized to the default release content of httpd.3. Summary:This is a simple and practical synchronization method. Next we will explain the deeper usage of rsync.In linux, how does one
/backup.pass #文件格式如下backup:123456chmod 400/etc/backup.pass
5. Start ServiceStart rsync for the first time
The code is as follows
Copy Code
Rsync–daemon–config=/etc/rsyncd.conf
If prompted
The code is as follows
Copy Code
Failed to create PID File/var/run/rsyncd.pid:file exists
Using directives
The code is as
it yourself)
Create a password file
Vim/etc/rsyncd. passwd
Format: root: 123456 (former user name and password)
Modify file permissions: chmon 600/etc/rsyncd. passwd
Start rsync server: sudo rsync -- daemon (the client does not need to be started)
Rsync Client(192.168.177.131)
Install rsync
Yum-y install
bytes 1116.00 bytes/sec
Total size is324 speedup is0.58
The preceding rsync command uses-z to enable compression.-v is visualized and-r is recursive. The above is synchronized between the local/home/aloft/AND/backuphomedir.Example: 2-Preserve the attributes of files and folders
[Root @ localhost/] # rsync-azvr/home/aloft // backuphomedir
Building file list.
-- safe-links ignores the contents pointing to the SRC path. link other than tree-H, -- hard-links hard link-p, -- perms maintains file permissions-o, -- owner maintains file owner information-g, -- group maintains file owner Information-D, -- devices: maintenance equipment file information-t, -- times: maintenance of file time information-S, -- sparse: promotion of rare files; rewards and punishments: diligent DST space-n, -- dry-run which files will be transmitted-W, -- whole-file to copy fil
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.