]> arthur.barton.de Git - backup-script.git/blobdiff - bin/backup-script
Set rsync I/O timeout to 15 minutes
[backup-script.git] / 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"