Restic: Timestamp nach Durchlauf in Script (#32)

Restic: Timestamp nach Durchlauf in Script

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#32
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-03-13 13:47:01 +01:00
parent c30cbd0767
commit 6039245172

View file

@ -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