mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-22 22:58:35 +00:00
added bwlimit
This commit is contained in:
parent
d0e56565a8
commit
25a2274d83
@ -52,6 +52,7 @@ rsync.checkgauge = {
|
|||||||
acls = true,
|
acls = true,
|
||||||
archive = true,
|
archive = true,
|
||||||
binary = true,
|
binary = true,
|
||||||
|
bwlimit = true,
|
||||||
checksum = true,
|
checksum = true,
|
||||||
compress = true,
|
compress = true,
|
||||||
copy_links = true,
|
copy_links = true,
|
||||||
@ -198,6 +199,12 @@ rsync.action = function( inlet )
|
|||||||
delete = { '--delete', '--ignore-errors' }
|
delete = { '--delete', '--ignore-errors' }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
log(
|
||||||
|
'Normal',
|
||||||
|
'Computed',
|
||||||
|
config.rsync._computed
|
||||||
|
)
|
||||||
|
|
||||||
spawn(
|
spawn(
|
||||||
elist,
|
elist,
|
||||||
config.rsync.binary,
|
config.rsync.binary,
|
||||||
@ -461,6 +468,11 @@ rsync.prepare = function(
|
|||||||
computedN = computedN + 1
|
computedN = computedN + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if crsync.bwlimit then
|
||||||
|
computed[ computedN ] = '--bwlimit=' .. crsync.bwlimit
|
||||||
|
computedN = computedN + 1
|
||||||
|
end
|
||||||
|
|
||||||
if crsync.password_file then
|
if crsync.password_file then
|
||||||
computed[ computedN ] = '--password-file=' .. crsync.password_file
|
computed[ computedN ] = '--password-file=' .. crsync.password_file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user