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."
This commit is contained in:
Dan Rose 2019-08-06 18:09:52 -05:00
parent 42413cabbe
commit 390de3dbaa
No known key found for this signature in database
GPG Key ID: F49790F15108BBC6
1 changed files with 7 additions and 0 deletions

View File

@ -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