From b089ebce54c0701231626c35c032da6f8a45095b Mon Sep 17 00:00:00 2001 From: Lionel Coupouchetty-Ramouchetty Date: Sun, 21 Mar 2021 11:45:56 +0100 Subject: [PATCH] fix: display app name in check log with iso datetime --- conf/check_method.j2 | 4 ++-- manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/check_method.j2 b/conf/check_method.j2 index 5fa488b..ff3d504 100644 --- a/conf/check_method.j2 +++ b/conf/check_method.j2 @@ -20,8 +20,8 @@ do_check() { export RESTIC_REPOSITORY=${RESTIC_REPOSITORY_BASE}/$name LOGFILE=/var/log/restic_check_{{ app }}.log ERRFILE=/var/log/restic_check_{{ app }}.err - current_date=$(date +"%d_%m_%y_%H:%M") - echo -e "\n==============\n${current_date}\n==============\n" | tee -a ${LOGFILE} | tee -a ${ERRFILE} + current_date=$(date --iso-8601=seconds) + echo -e "\n==============\n${current_date}\n${name}\n==============\n" | tee -a ${LOGFILE} | tee -a ${ERRFILE} if [ "$check_read_data" -eq "1" ];then $RESTIC_COMMAND check --read-data > >(tee -a $LOGFILE) 2> >(tee -a $ERRFILE >&2) else diff --git a/manifest.json b/manifest.json index f328d3c..7103064 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Backup your server with restic.", "fr": "Sauvegardez votre serveur avec restic." }, - "version": "0.12.0~ynh6", + "version": "0.12.0~ynh7", "url": "https://restic.net/", "license": "BSD-2-Clause", "maintainer": {