Skip to content

Commit

Permalink
Document the new RSYNC_PARTIAL_DIR environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne Davison committed Sep 18, 2004
1 parent 075aa18 commit b4d1e85
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions rsync.yo
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,18 @@ prevent the partial file from being deleted (it could get deleted at the
end of the transfer when using --delete-after, or at the beginning of the
transfer when using --delete). E.g. "--exclude=.rsync-partial/".

IMPORTANT: the --partial-dir should not be writable by other users to
avoid a security risk. E.g. AVOID "/tmp".
IMPORTANT: the --partial-dir should not be writable by other users or it
is a security risk. E.g. AVOID "/tmp".

You can also set the partial-dir value the RSYNC_PARTIAL_DIR environment
variable. Setting this in the environment does not force --partial to be
enabled, but rather it effects where partial files go when --partial (or
-P) is used. For instance, instead of specifying --partial-dir=.rsync-tmp
along with --progress, you could set RSYNC_PARTIAL_DIR=.rsync-tmp in your
environment and then just use the -P option to turn on the use of the
.rsync-tmp dir for partial transfers. The only time the --partial option
does not look for this environment value is when --inplace was also
specified (since --inplace conflicts with --partial-dir).

dit(bf(--progress)) This option tells rsync to print information
showing the progress of the transfer. This gives a bored user
Expand Down

0 comments on commit b4d1e85

Please sign in to comment.