Skip to content

Commit

Permalink
Use RUNTIME_LOGFILE as suggested.
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinggreenfrog committed May 1, 2020
1 parent 48d3209 commit e57f8eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion usr/share/rear/backup/BORG/default/500_make_backup.sh
Expand Up @@ -65,7 +65,7 @@ is_true $BORGBACKUP_EXCLUDE_IF_NOBACKUP && borg_additional_options+='--exclude-i
if is_true $BORGBACKUP_CREATE_SHOW_PROGRESS; then
borg_create 0<&6 1>&7 2>&8
elif is_true $VERBOSE; then
borg_create 0<&6 1>&7 2> >(tee >(cat 1>&2) >&8)
borg_create 0<&6 1>&7 2> >( tee -a $RUNTIME_LOGFILE 1>&8 )
else
borg_create 0<&6 1>&7
fi
Expand Down
Expand Up @@ -38,7 +38,7 @@ if [ ! -z $BORGBACKUP_OPT_PRUNE ]; then
if is_true $BORGBACKUP_PRUNE_SHOW_PROGRESS; then
borg_prune 0<&6 1>&7 2>&8
elif is_true $VERBOSE; then
borg_prune 0<&6 1>&7 2> >(tee >(cat 1>&2) >&8)
borg_prune 0<&6 1>&7 2> >( tee -a $RUNTIME_LOGFILE 1>&8 )
else
borg_prune 0<&6 1>&7
fi
Expand Down
2 changes: 1 addition & 1 deletion usr/share/rear/restore/BORG/default/400_restore_backup.sh
Expand Up @@ -40,7 +40,7 @@ is_true $BORGBACKUP_EXTRACT_SHOW_RC && borg_additional_options+='--show-rc '
if is_true $BORGBACKUP_EXTRACT_SHOW_PROGRESS; then
borg_extract 0<&6 1>&7 2>&8
elif is_true $VERBOSE; then
borg_extract 0<&6 1>&7 2> >(tee >(cat 1>&2) >&8)
borg_extract 0<&6 1>&7 2> >( tee -a $RUNTIME_LOGFILE 1>&8 )
else
borg_extract 0<&6 1>&7
fi
Expand Down

0 comments on commit e57f8eb

Please sign in to comment.