X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/2d81114b23021d1e51a8b5fc7c4871126680e13d..b694f8a245b19c0e2c80fbeac5b2c991cfb2ced9:/rsync.yo diff --git a/rsync.yo b/rsync.yo index 0cad5bda..47c41e3d 100644 --- a/rsync.yo +++ b/rsync.yo @@ -297,7 +297,6 @@ Here is a short summary of the options available in rsync. Please refer to the detailed description below for a complete description. verb( -v, --verbose increase verbosity -q, --quiet suppress non-error messages - -c, --checksum always checksum -c, --checksum skip based on checksum, not mod-time & size -a, --archive archive mode; same as -rlptgoD (no -H) -r, --recursive recurse into directories @@ -329,7 +328,7 @@ to the detailed description below for a complete description. verb( -x, --one-file-system don't cross filesystem boundaries -B, --block-size=SIZE force a fixed checksum block-size -e, --rsh=COMMAND specify the remote shell to use - --rsync-path=PATH specify path to rsync on the remote machine + --rsync-path=PROGRAM specify the rsync to run on remote machine --existing only update files that already exist --ignore-existing ignore files that already exist on receiver --remove-sent-files sent files/symlinks are removed from sender @@ -787,10 +786,18 @@ environment variable, which accepts the same range of values as bf(-e). See also the bf(--blocking-io) option which is affected by this option. -dit(bf(--rsync-path=PATH)) Use this to specify the path to the copy of -rsync on the remote machine. Useful when it's not in your path. Note -that this is the full path to the binary, not just the directory that -the binary is in. +dit(bf(--rsync-path=PROGRAM)) Use this to specify what program is to be run +on the remote machine to start-up rsync. Often used when rsync is not in +the default remote-shell's path (e.g. --rsync-path=/usr/local/bin/rsync). +Note that PROGRAM is run with the help of a shell, so it can be any +program, script, or command sequence you'd care to run, so long as it does +not corrupt the standard-in & standard-out that rsync is using to +communicate. + +One tricky example is to set a different default directory on the remote +machine for use with the bf(--relative) option. For instance: + +quote(tt( rsync -avR --rsync-path="cd /a/b && rsync" hst:c/d /e/)) dit(bf(-C, --cvs-exclude)) This is a useful shorthand for excluding a broad range of files that you often don't want to transfer between @@ -814,7 +821,7 @@ See the bf(cvs(1)) manual for more information. If you're combining bf(-C) with your own bf(--filter) rules, you should note that these CVS excludes are appended at the end of your own rules, -regardless of where the -C was placed on the command-line. This makes them +regardless of where the bf(-C) was placed on the command-line. This makes them a lower priority than any rules you specified explicitly. If you want to control where these CVS excludes get inserted into your filter rules, you should omit the bf(-C) as a command-line option and use a combination of @@ -945,9 +952,10 @@ directory. This is useful for creating a sparse backup of just files that have changed from an earlier backup. Beginning in version 2.6.4, multiple bf(--compare-dest) directories may be -provided and rsync will search the list in the order specified until it -finds an existing file. That first discovery is used as the basis file, -and also determines if the transfer needs to happen. +provided, which will cause rsync to search the list in the order specified +for an exact match. +If a match is not found, a basis file from one of the em(DIR)s will be +selected to try to speed up the transfer. If em(DIR) is a relative path, it is relative to the destination directory. See also bf(--link-dest). @@ -960,10 +968,11 @@ An example: quote(tt( rsync -av --link-dest=$PWD/prior_dir host:src_dir/ new_dir/)) -Beginning with version 2.6.4, if more than one bf(--link-dest) option is -specified, rsync will try to find an exact match to link with (searching -the list in the order specified), and if not found, a basis file from one -of the em(DIR)s will be selected to try to speed up the transfer. +Beginning in version 2.6.4, multiple bf(--link-dest) directories may be +provided, which will cause rsync to search the list in the order specified +for an exact match. +If a match is not found, a basis file from one of the em(DIR)s will be +selected to try to speed up the transfer. If em(DIR) is a relative path, it is relative to the destination directory. See also bf(--compare-dest).