1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

fix: display app name in check log with iso datetime

This commit is contained in:
Lionel Coupouchetty-Ramouchetty 2021-03-21 11:45:56 +01:00
parent 0f1850ea49
commit b089ebce54
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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": {