diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-07-01 08:54:34 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-07-01 08:54:34 +0100 |
commit | 3ddaa84539cb14f653eeeccba67cab39392896f1 (patch) | |
tree | b6061c36e055d53e4fc3f86cbb69fff9000edfa7 /bin | |
parent | abcf1a457d6946f1fa8d12779c3cfce804c82638 (diff) |
Change rsync timeout from 12 to 6 hours.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/byteback-backup | 4 |
1 files 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 |