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:
parent
0f1850ea49
commit
b089ebce54
2 changed files with 3 additions and 3 deletions
|
@ -20,8 +20,8 @@ do_check() {
|
||||||
export RESTIC_REPOSITORY=${RESTIC_REPOSITORY_BASE}/$name
|
export RESTIC_REPOSITORY=${RESTIC_REPOSITORY_BASE}/$name
|
||||||
LOGFILE=/var/log/restic_check_{{ app }}.log
|
LOGFILE=/var/log/restic_check_{{ app }}.log
|
||||||
ERRFILE=/var/log/restic_check_{{ app }}.err
|
ERRFILE=/var/log/restic_check_{{ app }}.err
|
||||||
current_date=$(date +"%d_%m_%y_%H:%M")
|
current_date=$(date --iso-8601=seconds)
|
||||||
echo -e "\n==============\n${current_date}\n==============\n" | tee -a ${LOGFILE} | tee -a ${ERRFILE}
|
echo -e "\n==============\n${current_date}\n${name}\n==============\n" | tee -a ${LOGFILE} | tee -a ${ERRFILE}
|
||||||
if [ "$check_read_data" -eq "1" ];then
|
if [ "$check_read_data" -eq "1" ];then
|
||||||
$RESTIC_COMMAND check --read-data > >(tee -a $LOGFILE) 2> >(tee -a $ERRFILE >&2)
|
$RESTIC_COMMAND check --read-data > >(tee -a $LOGFILE) 2> >(tee -a $ERRFILE >&2)
|
||||||
else
|
else
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Backup your server with restic.",
|
"en": "Backup your server with restic.",
|
||||||
"fr": "Sauvegardez votre serveur avec restic."
|
"fr": "Sauvegardez votre serveur avec restic."
|
||||||
},
|
},
|
||||||
"version": "0.12.0~ynh6",
|
"version": "0.12.0~ynh7",
|
||||||
"url": "https://restic.net/",
|
"url": "https://restic.net/",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue