]> arthur.barton.de Git - backup-script.git/commitdiff
Set rsync I/O timeout to 15 minutes
authorAlexander Barton <alex@barton.de>
Fri, 20 May 2016 12:30:25 +0000 (14:30 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 20 May 2016 12:30:25 +0000 (14:30 +0200)
bin/backup-script

index 97f3e80af999eb943c0ab234e97b5530024fc26b..f585d42a815935277a386c5efe1ea6eb6e6626c0 100755 (executable)
@@ -571,7 +571,7 @@ for f in "${sys[@]}"; do
 
        # prepare (remote) command ...
        if [[ "$backup_type" == "rsync" ]]; then
-               cmd="$rsync --archive"
+               cmd="$rsync --archive --timeout=900"
                [ "$compress" -ne 0 ] && cmd="$cmd --compress"
                [ "$local" -eq 0 ] && cmd="$cmd --rsh=\"$ssh_cmd\""
                cmd="$cmd --delete-during --delete-excluded --sparse"