From: Alexander Barton Date: Fri, 20 May 2016 12:30:25 +0000 (+0200) Subject: Set rsync I/O timeout to 15 minutes X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=backup-script.git;a=commitdiff_plain;h=62d13a08821610678998f401c3cf1b47634bf07c Set rsync I/O timeout to 15 minutes --- diff --git a/bin/backup-script b/bin/backup-script index 97f3e80..f585d42 100755 --- a/bin/backup-script +++ b/bin/backup-script @@ -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"