[pve-devel] [PATCH zsync] fix #887 add "--limit" option to cron

Dominik Csapak d.csapak at proxmox.com
Mon Feb 8 12:24:59 CET 2016


add the --limit option when creating the cron entry

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 pve-zsync | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pve-zsync b/pve-zsync
index bfc1793..d517ece 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -404,6 +404,7 @@ sub format_job {
     $text .= " root";
     $text .= " $PROGNAME sync --source $job->{source} --dest $job->{dest}";
     $text .= " --name $job->{name} --maxsnap $job->{maxsnap}";
+    $text .= " --limit $job->{limit}" if $job->{limit};
     $text .= " --method $job->{method}";
     $text .= " --verbose" if $job->{verbose};
     $text .= "\n";
-- 
2.1.4





More information about the pve-devel mailing list