mirror of https://github.com/octoleo/lsyncd.git
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:
parent
42413cabbe
commit
390de3dbaa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue