summaryrefslogtreecommitdiffstats
path: root/support/rrsync
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:15:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:15:00 +0000
commited8873b14671073b4bd24d788dc61bcbf4fdfb14 (patch)
treed21da19c0d16a3169acbd9680382ceccad2bcad2 /support/rrsync
parentAdding debian version 3.2.7-1. (diff)
downloadrsync-ed8873b14671073b4bd24d788dc61bcbf4fdfb14.tar.xz
rsync-ed8873b14671073b4bd24d788dc61bcbf4fdfb14.zip
Merging upstream version 3.3.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'support/rrsync')
-rwxr-xr-xsupport/rrsync4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/rrsync b/support/rrsync
index 94c85f5..4b4b87c 100755
--- a/support/rrsync
+++ b/support/rrsync
@@ -258,6 +258,9 @@ def main():
if args.munge:
rsync_opts.append('--munge-links')
+
+ if args.no_overwrite:
+ rsync_opts.append('--ignore-existing')
if not rsync_args:
rsync_args = [ '.' ]
@@ -364,6 +367,7 @@ if __name__ == '__main__':
arg_parser.add_argument('-munge', action='store_true', help="Enable rsync's --munge-links on the server side.")
arg_parser.add_argument('-no-del', action='store_true', help="Disable rsync's --delete* and --remove* options.")
arg_parser.add_argument('-no-lock', action='store_true', help="Avoid the single-run (per-user) lock check.")
+ arg_parser.add_argument('-no-overwrite', action='store_true', help="Prevent overwriting existing files by enforcing --ignore-existing")
arg_parser.add_argument('-help', '-h', action='help', help="Output this help message and exit.")
arg_parser.add_argument('dir', metavar='DIR', help="The restricted directory to use.")
args = arg_parser.parse_args()