From 390de3dbaa59a0bb2c5b7a0ce4a4e4f9e52791db Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Tue, 6 Aug 2019 18:09:52 -0500 Subject: [PATCH] Expose rsync's copy_unsafe_links As per the rsync docs: "This tells rsync to copy the referent of symbolic links that point outside the copied tree. Absolute symlinks are also treated like ordinary files, and so are any symlinks in the source path itself when --relative is used. This option has no additional effect if --copy-links was also specified." --- default-rsync.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/default-rsync.lua b/default-rsync.lua index 106c58d..4da6770 100644 --- a/default-rsync.lua +++ b/default-rsync.lua @@ -61,6 +61,7 @@ rsync.checkgauge = { compress = true, copy_dirlinks = true, copy_links = true, + copy_unsafe_links = true, cvs_exclude = true, dry_run = true, executability = true, @@ -588,6 +589,12 @@ rsync.prepare = function computedN = computedN + 1 end + if crsync.copy_unsafe_links + then + computed[ computedN ] = '--copy-unsafe-links' + computedN = computedN + 1 + end + if crsync.groupmap then computed[ computedN ] = '--groupmap=' .. crsync.groupmap