From: Wayne Davison Date: Sun, 13 Sep 2015 23:15:17 +0000 (-0700) Subject: Add -wo option for write-only rrsync mode. X-Git-Tag: v3.1.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb853b32055a16e983267c6f5b8244aac311fdf9;p=thirdparty%2Frsync.git Add -wo option for write-only rrsync mode. --- diff --git a/NEWS b/NEWS index 3ab8b2df..10719884 100644 --- a/NEWS +++ b/NEWS @@ -32,6 +32,7 @@ Changes since 3.1.1: BackupPC happier. - Made configure choose to use linux xattrs on netbsd (rather than not supporting xattrs). + - Added -wo (write-only) option to rrsync support script. - Misc. manpage tweaks. DEVELOPER RELATED: diff --git a/support/rrsync b/support/rrsync index 5d2b8ae0..9195aa2f 100644 --- a/support/rrsync +++ b/support/rrsync @@ -15,11 +15,21 @@ use constant RSYNC => '/usr/bin/rsync'; use constant LOGFILE => 'rrsync.log'; my $Usage = < 0, 'preallocate' => 0, 'recursive' => 0, - 'remove-sent-files' => $ro ? -1 : 0, - 'remove-source-files' => $ro ? -1 : 0, + 'remove-sent-files' => $only eq 'r' ? -1 : 0, + 'remove-source-files' => $only eq 'r' ? -1 : 0, 'safe-links' => 0, 'sender' => 0, 'server' => 0,