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

feat: rename log files for better sorting

This commit is contained in:
Lionel Coupouchetty-Ramouchetty 2020-03-02 22:09:36 +01:00
parent 984e2d0102
commit a9dd6818a5

View file

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