From bb853b32055a16e983267c6f5b8244aac311fdf9 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 13 Sep 2015 16:15:17 -0700 Subject: [PATCH] Add -wo option for write-only rrsync mode. --- NEWS | 1 + support/rrsync | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) 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, -- 2.47.2