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,
|
||||
archive = true,
|
||||
binary = true,
|
||||
bwlimit = true,
|
||||
checksum = true,
|
||||
compress = true,
|
||||
copy_links = true,
|
||||
@ -198,6 +199,12 @@ rsync.action = function( inlet )
|
||||
delete = { '--delete', '--ignore-errors' }
|
||||
end
|
||||
|
||||
log(
|
||||
'Normal',
|
||||
'Computed',
|
||||
config.rsync._computed
|
||||
)
|
||||
|
||||
spawn(
|
||||
elist,
|
||||
config.rsync.binary,
|
||||
@ -461,6 +468,11 @@ rsync.prepare = function(
|
||||
computedN = computedN + 1
|
||||
end
|
||||
end
|
||||
|
||||
if crsync.bwlimit then
|
||||
computed[ computedN ] = '--bwlimit=' .. crsync.bwlimit
|
||||
computedN = computedN + 1
|
||||
end
|
||||
|
||||
if crsync.password_file then
|
||||
computed[ computedN ] = '--password-file=' .. crsync.password_file
|
||||
|
Loading…
x
Reference in New Issue
Block a user