YunoHost-Apps / borg_ynh

An experimental Borg implementation for YunoHost
https://www.borgbackup.org/
GNU Affero General Public License v3.0
19 stars 23 forks source link

Add timestamp to logs, and log only to backup_borg.err #55

Closed eauchat closed 3 years ago

eauchat commented 3 years ago

A possible solution to the two remarks in #26. The 2>&1 >/dev/null syntax allows to redirect stderr to stdout and therefore being able to pipe it and add timestamps before appending to log file. Logging stderr only should be enough since stdout is not used by the borg command.