YunoHost-Apps / borg_ynh

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

/var/log/backup_borg.err should be rotated #158

Open olberger opened 1 month ago

olberger commented 1 month ago

AFAICS, /var/log/backup_borg.err is appended to in /etc/yunohost/hooks.d/backup_method/05-borg_app, but keeps growing over time.

Instead, it should be rotated as a typical log.

However, I couldn't see anything in /etc/logrotate.d/ which could apply...

Of course, this can lead to nasty issues, like when file system is full :-/

Hope this helps.

olberger commented 1 month ago

https://yunohost.org/oc/packaging_apps_helpers#logrotate probably applies here. Hth,

olberger commented 1 month ago

AFAIU, there are also plenty of files in /var/log/borg/ (.log and .err) that also need to be rotated/cleaned up