mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-05-30 06:50:53 +00:00
Merge remote-tracking branch 'origin/pr/595'
This commit is contained in:
commit
0b59ae7652
|
@ -63,6 +63,7 @@ rsync.checkgauge = {
|
||||||
copy_links = true,
|
copy_links = true,
|
||||||
copy_unsafe_links = true,
|
copy_unsafe_links = true,
|
||||||
cvs_exclude = true,
|
cvs_exclude = true,
|
||||||
|
delete_excluded = true,
|
||||||
dry_run = true,
|
dry_run = true,
|
||||||
executability = true,
|
executability = true,
|
||||||
existing = true,
|
existing = true,
|
||||||
|
@ -317,7 +318,7 @@ rsync.init = function
|
||||||
|
|
||||||
local filters = inlet.hasFilters( ) and inlet.getFilters( )
|
local filters = inlet.hasFilters( ) and inlet.getFilters( )
|
||||||
|
|
||||||
local delete = nil
|
local delete = {}
|
||||||
|
|
||||||
local target = config.target
|
local target = config.target
|
||||||
|
|
||||||
|
@ -337,6 +338,11 @@ rsync.init = function
|
||||||
delete = { '--delete', '--ignore-errors' }
|
delete = { '--delete', '--ignore-errors' }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if config.rsync.delete_excluded == true
|
||||||
|
then
|
||||||
|
table.insert( delete, '--delete-excluded' )
|
||||||
|
end
|
||||||
|
|
||||||
if not filters and #excludes == 0
|
if not filters and #excludes == 0
|
||||||
then
|
then
|
||||||
-- starts rsync without any filters or excludes
|
-- starts rsync without any filters or excludes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user