From a278fdd40ab4bdcf708711be62b8794f80ce9adb Mon Sep 17 00:00:00 2001 From: Teo-CD Date: Mon, 18 Apr 2022 10:22:53 +0100 Subject: [PATCH] Small adjustments to restic-backup Reflect status of script from the VPS, mainly add a sleep interval after backup. --- VPS/restic-backup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VPS/restic-backup.sh b/VPS/restic-backup.sh index 3128457..19b8b1f 100755 --- a/VPS/restic-backup.sh +++ b/VPS/restic-backup.sh @@ -2,7 +2,7 @@ # Use setcap'd binary in home directory #PATH="/home/restic/bin/:$PATH" -# Now uses binary in /usr/bin, which is also setcap'd +#Not necessary anymore : binary in /usr/bin setcap'd backup_origin="/backups/restic" backup_container="central-backup" @@ -64,6 +64,9 @@ if [ $? -ne 0 ]; then error_message="$error_message""$(cat backup_output.log)" fi +# Sleep to allow time for propagation +sleep 60 + if [ -z "$error_message" ]; then restic check --verbose > check_output.log 2>&1 fi