From 8bb3888f81eff0cd487489eb65411601a70221d1 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 30 Sep 2021 02:24:15 +0200 Subject: [PATCH] Also display error messages in backup create output --- conf/backup_method | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/backup_method b/conf/backup_method index db4405b..e99dcfc 100644 --- a/conf/backup_method +++ b/conf/backup_method @@ -18,7 +18,7 @@ do_need_mount() { LOGFILE=/var/log/backup_borg.err log_with_timestamp() { - sed -e "s/^/[$(date +"%Y-%m-%d_%H:%M:%S")] /" >> $LOGFILE + sed -e "s/^/[$(date +"%Y-%m-%d_%H:%M:%S")] /" | tee -a $LOGFILE } do_backup() {