Added a risk filter for the partial-dir since we use --delete-after.
authorWayne Davison <wayned@samba.org>
Wed, 18 Oct 2006 05:14:10 +0000 (05:14 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 18 Oct 2006 05:14:10 +0000 (05:14 +0000)
packaging/nightly-rsync

index c88fd69..b526f5d 100755 (executable)
@@ -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;