From a9dd6818a527d48850b828bf0faf3674ca9c877f Mon Sep 17 00:00:00 2001 From: Lionel Coupouchetty-Ramouchetty Date: Mon, 2 Mar 2020 22:09:36 +0100 Subject: [PATCH] feat: rename log files for better sorting --- conf/backup_method.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/backup_method.j2 b/conf/backup_method.j2 index cccf072..523c536 100644 --- a/conf/backup_method.j2 +++ b/conf/backup_method.j2 @@ -28,8 +28,8 @@ do_backup() { description="$5" export RESTIC_PASSWORD export RESTIC_REPOSITORY=${RESTIC_REPOSITORY_BASE}/$name - LOGFILE=/var/log/backup_restic.log - ERRFILE=/var/log/backup_restic.err + LOGFILE=/var/log/restic_backup.log + ERRFILE=/var/log/restic_backup.err current_date=$(date +"%d_%m_%y_%H:%M") pushd $work_dir $RESTIC_COMMAND backup ./ >> $LOGFILE 2>> $ERRFILE