From 6039245172d87e5bbaa134cd9a20db0005cd5129 Mon Sep 17 00:00:00 2001 From: mg Date: Sat, 13 Mar 2021 13:47:01 +0100 Subject: [PATCH] Restic: Timestamp nach Durchlauf in Script (#32) Restic: Timestamp nach Durchlauf in Script Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/32 Co-Authored-By: mg Co-Committed-By: mg --- roles/mgrote.restic/templates/restic_backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/mgrote.restic/templates/restic_backup.sh b/roles/mgrote.restic/templates/restic_backup.sh index 040557f6..6fa776fb 100644 --- a/roles/mgrote.restic/templates/restic_backup.sh +++ b/roles/mgrote.restic/templates/restic_backup.sh @@ -51,6 +51,7 @@ do sleep {{ restic_wartezeit }} abbruch_restic=$(("$abbruch_restic" + 1)) fi + echo $(date +%d.%m.%Y-%T) # Datum für logfile } >> /var/log/restic.log 2>&1; # leite die komplette Ausgabe in logfile um done