X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/986066873e17c4152c2bc6e77fe9b83fb65132d9..b19fd07c023c3923979ba965e8f485433d7ecf18:/rsync.yo diff --git a/rsync.yo b/rsync.yo index 9b74edb7..fce0267c 100644 --- a/rsync.yo +++ b/rsync.yo @@ -290,9 +290,9 @@ verb( -R, --relative use relative path names --no-relative turn off --relative --no-implied-dirs don't send implied dirs with -R - -b, --backup make backups (default ~ suffix) + -b, --backup make backups (see --suffix) --backup-dir make backups into this directory - --suffix=SUFFIX define backup suffix + --suffix=SUFFIX define backup suffix (default ~ w/o --backup-dir) -u, --update update only (don't overwrite newer files) -l, --links copy symlinks as symlinks -L, --copy-links copy the referent of symlinks @@ -452,9 +452,10 @@ the --no-implied-dirs option would omit both of these implied dirs, which means that if "/path" was a real directory on one machine and a symlink of the other machine, rsync would not try to change this. -dit(bf(-b, --backup)) With this option preexisting destination files are -renamed with a ~ extension as each file is transferred. You can -control the backup suffix using the --suffix option. +dit(bf(-b, --backup)) With this option, preexisting destination files are +renamed as each file is transferred or deleted. You can control where the +backup file goes and what (if any) suffix gets appended using the +--backup-dir and --suffix options. dit(bf(--backup-dir=DIR)) In combination with the --backup option, this tells rsync to store all backups in the specified directory. This is @@ -464,9 +465,8 @@ specify a backup suffix using the --suffix option will keep their original filenames). dit(bf(--suffix=SUFFIX)) This option allows you to override the default -backup suffix used with the -b option. The default is a ~. -If --backup-dir and --suffix are both specified, -the SUFFIX is appended to the filename even in the backup directory. +backup suffix used with the --backup (-b) option. The default suffix is a ~ +if no --backup-dir was specified, otherwise it is an empty string. dit(bf(-u, --update)) This forces rsync to skip any files for which the destination file already exists and has a date later than the source @@ -916,15 +916,15 @@ itemize( *?[ then expression matching is applied using the shell filename matching rules. Otherwise a simple string match is used. - it() if the pattern includes a double asterisk "**" then all wildcards in - the pattern will match slashes, otherwise they will stop at slashes. + it() the double asterisk pattern "**" will match slashes while a + single asterisk pattern "*" will stop at slashes. it() if the pattern contains a / (not counting a trailing /) or a "**" then it is matched against the full filename, including any leading directory. If the pattern doesn't contain a / or a "**", then it is matched only against the final component of the filename. Again, remember that the algorithm is applied recursively so "full filename" can - actually be any portion of a path. + actually be any portion of a path below the starting directory. it() if the pattern starts with "+ " (a plus followed by a space) then it is always considered an include pattern, even if specified as