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:
parent
984e2d0102
commit
a9dd6818a5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue