1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

Also display error messages in backup create output

This commit is contained in:
Alexandre Aubin 2021-09-30 02:24:15 +02:00 committed by ljf (zamentur)
parent 36fc746f08
commit 8bb3888f81

View file

@ -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() {