Rsync file synchronization (Code synchronization between multiple machines ...)

Source: Internet
Author: User
Tags rsync
Common combinations of rsync-Av -- delete-after -- exclude-from = "a.txt" x/x-e ssh x:/x a.txt are used to create ignored files, such. git-V, -- verbose detailed mode output-Q, -- Quiet streamlined output mode-C, -- checksum turn on the check switch, force file transfer Validation-a, -- Archive mode, indicates that the file is transmitted recursively, and all file attributes are kept, which is equal to-rlptgod-R. -- Recursive processes subdirectories in recursive mode-R, -- relative uses relative path information-B, -- backup creates 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 to use RSH and SSH for Data Synchronization -- 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 -- bwlimit = kbps limit I/O bandwidth, kbytes per second-h, -- help displays help information

Rsync file synchronization (Code synchronization between multiple machines ...)

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.