From 25a2274d83f2a76f8486bf3d1fb9da16b2121401 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Fri, 7 Jun 2013 11:11:42 +0200 Subject: [PATCH] added bwlimit --- default-rsync.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/default-rsync.lua b/default-rsync.lua index 88b2cfb..c1369fb 100644 --- a/default-rsync.lua +++ b/default-rsync.lua @@ -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