From 62d13a08821610678998f401c3cf1b47634bf07c Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 20 May 2016 14:30:25 +0200 Subject: [PATCH] Set rsync I/O timeout to 15 minutes --- bin/backup-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.2