From: Wayne Davison Date: Wed, 18 Oct 2006 05:14:10 +0000 (+0000) Subject: Added a risk filter for the partial-dir since we use --delete-after. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/230328a30a7f7a518a4fab5ddff780a6c5278098 Added a risk filter for the partial-dir since we use --delete-after. --- diff --git a/packaging/nightly-rsync b/packaging/nightly-rsync index c88fd697..b526f5df 100755 --- a/packaging/nightly-rsync +++ b/packaging/nightly-rsync @@ -100,7 +100,11 @@ system "find . -name 'rsync-HEAD-*' -daystart -mtime +14 | xargs rm -f"; system 'ls -ltr'; if ($upload) { - system "rsync -aviHP --delete-after . samba.org:/home/ftp/pub/rsync/nightly"; + my $opt = ''; + if (defined $ENV{RSYNC_PARTIAL_DIR}) { + $opt = " -f 'R $ENV{RSYNC_PARTIAL_DIR}'"; + } + system "rsync$opt -aviHP --delete-after . samba.org:/home/ftp/pub/rsync/nightly"; } exit;