From 3ddaa84539cb14f653eeeccba67cab39392896f1 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 1 Jul 2015 08:54:34 +0100 Subject: Change rsync timeout from 12 to 6 hours. --- bin/byteback-backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/byteback-backup b/bin/byteback-backup index 2c95739..2e37e66 100755 --- a/bin/byteback-backup +++ b/bin/byteback-backup @@ -175,13 +175,13 @@ def rsync(*sources) # at the end of the job, and rsync will do more work for big files without # it. # - # The timeout is set to 12 hours - rsync can spend a long time at the + # The timeout is set to 6 hours - rsync can spend a long time at the # far end checking over its files at the far end without transfer, so we # want to wait as long as possible without jeopardising the timing of the # next backup run. Obviously if rsync itself takes nearly 24 hours for a # given filesystem, daily backups (with this tool) are out of the question. # - args = %w( rsync --archive --numeric-ids --delete-delay --inplace --relative --timeout 43200 ) + args = %w( rsync --archive --numeric-ids --delete-delay --inplace --relative --timeout 21600 ) args += ['--rsh', "ssh -o BatchMode=yes -x -a -i #{@ssh_key} -l #{@destination_user}"] args << '--verbose' if @verbose -- cgit v1.2.1