Common Rsync errors and detailed Command Parameters

Source: Internet
Author: User
Tags connection reset

Rsync Common Errors and command detailed parameters Rsync Common Errors: Problem 1: www.2cto.com @ ERROR: chroot failedrsync error: error starting client-server protocol (code 5) at main. c (1522) [handler ER = 3.0.3] cause: the directory on the server does not exist or has no permission. Creating a directory and correcting permissions can solve the problem. Problem 2: www.2cto.com @ ERROR: auth failed on module teersync error: error starting client-server protocol (code 5) at main. c (1522) [handler ER = 3.0.3] cause: the module (tee) on the server needs to verify the user name and password, but the client does not provide the correct user name and password. Authentication fails. Provide the correct username and password to solve this problem. Question 3: @ ERROR: Unknown module 'TEE _ nonexists' rsync error: error starting client-server protocol (code 5) at main. c (1522) [runner ER = 3.0.3] cause: the specified module does not exist on the server. Provide the correct module name or modify it on the server to the module you want to solve the problem. Problem 4: password file must not be other-accessiblecontinuing without password filePassword: cause: rsyncd. pwd rsyncd. secrets has incorrect permissions and should be set to 600. For example, chmod 600 rsyncd. pwd question 5: rsync: failed to connect to 218.107.243.2: No route to host (113) rsync error: error in socket IO (code 10) at clientserver. c (104) [runner ER = 2.6.9] cause: either the other party is not started, the firewall is blocked, or the firewall is blocked on the network. To close the firewall, open tcp udp port 873. Problem 6: rsync error: error starting client-server protocol (code 5) at main. c (1524) [runner ER = 3.0.7] cause:/etc/rsyncd. the content of the conf configuration file is incorrect. Check the configuration file correctly. Question 7: rsync: chown "" failed: Invalid argument (22) cause: the permission cannot be copied. Remove the synchronization permission parameter. (This is often seen when Linux is going to Windows.) problem 8: @ ERROR: daemon security issue -- contact adminrsync error: error starting client-server protocol (code 5) at main. c (1530) [sender = 3.0.6] cause: the synchronization directory contains a soft connection file, which requires/etc/rsyncd on the server. conf open use chroot = yes. Pass through the soft connection file. Question 9: rsync: read error: Connection reset by peer (104) rsync error: error in rsync protocol data stream (code 12) at io. c (794) [handler ER = 3.0.2] solution: it is very likely that the server has not enabled the rsync service. Question 10: @ ERROR: failed to open lock filersync error: error starting client-server protocol (code 5) at main. c (1495) [handler ER = 3.0.2] solution: configuration file rsync. add lock file = rsyncd in conf. lock. Rsync command detailed parameters:-v, -- verbose detailed mode output-q, -- quiet simplified output mode-c, -- checksum open verification switch, force the file transfer Validation-, -- archive mode: Transfers files recursively and keeps all file attributes. equals to-rlptgoD-r, -- recursive processes subdirectories in recursive mode-R, -- relative uses relative path information-B, -- backup to create a backup, that is, if the object already has the same file name, rename the old file ~ Filename. You can use the -- suffix option to specify different backup file prefixes. -- Backup-dir: backs up files (for example ~ Filename) is stored in the directory. -Suffix = SUFFIX defines the backup file prefix-u. -- update only performs updates, that is, skipping all files that already exist in DST and whose file time is later than the backup time. (Do not overwrite the updated file)-l, -- links retains the soft link-L, -- copy-links: process soft links like regular files -- copy-unsafe-links: only copies links other than the SRC path directory tree -- safe-links ignores the directory tree pointing to the SRC path other links-H, -- hard-links keep hard links-p, -- perms keep 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 performs special processing on sparse files to save DST space-n, -- dry-run which files will be transmitted-W, -- whole-file to copy files without incremental detection-x, -- one-file-system: Do not span the file system boundary-B. -- block-size = SIZE indicates the block size used by the algorithm. The default value is 700 bytes. -e, -- rsh = COMMAND specifies the rsh and ssh Data Synchronization Methods -- rsync-path = PATH specifies the path of the rsync COMMAND on the remote server-C, -- cvs-exclude automatically ignores files in the same way as CVS to exclude files that do not want to be transmitted. -- existing only updates files that already exist in DST, instead of backing up those new files -- delete those files that are not in the dst src -- delete-excluded also delete the files that are excluded by this option at the receiving end -- after the delete-after transmission ends delete -- ignore-errors and delete it when I/o errors occur in a timely manner -- max-delete = NUM delete a maximum of NUM files -- partial keep those files that are not completely transmitted for any reason, to accelerate the subsequent re-transmission -- force the deletion of directories, even if it is not blank -- numeric-ids does not match the number user and group ID as the user name and group name -- timeout = time ip timeout TIME, in seconds-I, -- ignore-times does not skip files with the same time and length -- size-only. when determining whether to back up a file, only check the file size, regardless of the file time -- modify-window = NUM determines whether the file is time-stamped, the default value is 0-T -- temp-dir = DIR. Create a temporary file in DIR -- compare-dest = DIR and compare the files in DIR to determine whether to back up-P is equivalent to -- partial -- progress display. backup process-z, -- compress compresses the backup files during transmission -- exclude = PATTERN specifies to exclude the file mode that does not need to be transmitted -- include = PATTERN specifies the file mode to be transmitted without exclusion -- exclude- from = FILE exclude files in the specified mode -- include-from = FILE do not exclude files in the specified mode of FILE -- version print version information -- address bound to a specific address -- config = FILE specify other configuration files, do not use the default rsyncd. conf file -- port = PORT specify other rsync service ports -- blocking-io for remote shell use blocking IO-stats to give the transmission status of some files -- progress actual transmission process -- log -format = formAT specify the log file format -- password-FILE = FILE get the password from the file

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.