X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/58a06312a4891ed375614d60ba92ce2a54d68a5e..2873603ab5e7451ad8fd3ee75b859d709ae0378a:/rsync.yo diff --git a/rsync.yo b/rsync.yo index aa2548e8..b80c160e 100644 --- a/rsync.yo +++ b/rsync.yo @@ -387,7 +387,9 @@ to the detailed description below for a complete description. verb( --progress show progress during transfer -P same as --partial --progress -i, --itemize-changes output a change-summary for all updates - --log-format=FORMAT output filenames using the specified format + --out-format=FORMAT output updates using the specified FORMAT + --log-file=FILE log what we're doing to the specified FILE + --log-file-format=FMT log updates using the specified FMT --password-file=FILE read password from FILE --list-only list the files instead of copying them --bwlimit=KBPS limit I/O bandwidth; KBytes per second @@ -410,6 +412,7 @@ accepted: verb( --config=FILE specify alternate rsyncd.conf file --no-detach do not detach from the parent --port=PORT listen on alternate port number + --log-file=FILE override the "log file" setting --sockopts=OPTIONS specify custom TCP options -v, --verbose increase verbosity -4, --ipv4 prefer IPv4 @@ -1432,12 +1435,29 @@ the string "*deleting" for each item that is being removed (assuming that you are talking to a recent enough rsync that it logs deletions instead of outputting them as a verbose message). +dit(bf(--log-file=FILE)) This option causes rsync to log what it is doing +to a file. This is similar to the logging that a daemon does, but can be +requested for the client side and/or the server side of a non-daemon +transfer. If specified as a client option, transfer logging will in effect +if the bf(--log-format) option was either specified or implied (e.g. +bf(--verbose) implies a basic log format). If explicitly sent to a server +via the bf(--rsync-path) option, transfer logging will always occur using +the default bf(--itemize-changes) format. + +Here's a example command that requests the remote side to log what is +happening: + +verb( rsync -av --rsync-path="path --log-file=/tmp/rlog" src/ dest/) + +This is very useful if you need to debug why a connection is closing +unexpectedly. + dit(bf(--log-format=FORMAT)) This allows you to specify exactly what the rsync client outputs to the user on a per-file basis. The format is a text string containing embedded single-character escape sequences prefixed with a percent (%) character. For a list of the possible escape characters, see the "log format" setting in the rsyncd.conf manpage. (Note that this -option does not affect what a daemon logs to its logfile.) +option does not affect what a daemon logs to its log file.) Specifying this option will mention each file, dir, etc. that gets updated in a significant way (a transferred file, a recreated symlink/device, or a @@ -1784,6 +1804,10 @@ dit(bf(--port=PORT)) This specifies an alternate TCP port number for the daemon to listen on rather than the default of 873. See also the "port" global option in the rsyncd.conf manpage. +dit(bf(--log-file=FILE)) This option tells the rsync daemon to use the +given log-file name instead of using the "log file" setting in the config +file. + dit(bf(--sockopts)) This overrides the bf(socket options) setting in the rsyncd.conf file and has the same syntax.