From 3522a0d85ad6e2dc6b8328c1953a5973e9d8527e Mon Sep 17 00:00:00 2001 From: root <root@lasifserveur.societe-informatique-de-france.fr> Date: Fri, 29 Jul 2022 00:33:55 +0200 Subject: [PATCH] Add timeout to restore file --- restore_file.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/restore_file.sh b/restore_file.sh index 77646ca..24198b4 100755 --- a/restore_file.sh +++ b/restore_file.sh @@ -37,7 +37,11 @@ export PASSPHRASE="$encpass" export FTP_PASSWORD="$ftppass" set -x -/usr/bin/duplicity --verbosity $verbosity $delay --file-to-restore "$restore_path" $remote "$destination_path" +/usr/bin/duplicity --verbosity $verbosity \ + --timeout $timeout \ + $delay \ + --file-to-restore "$restore_path" \ + $remote "$destination_path" set +x unset PASSPHRASE -- GitLab