Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Unverified Commit 81d7eebf authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

fix: refactor logrotate entries for unattended-upgrades and borgmatic in common.yml

parent c1cb17d9
No related branches found
No related tags found
No related merge requests found
...@@ -214,11 +214,22 @@ logrotate_entries: ...@@ -214,11 +214,22 @@ logrotate_entries:
postrotate: | postrotate: |
[ -x /usr/lib/rsyslog/rsyslog-rotate ] && /usr/lib/rsyslog/rsyslog-rotate || true [ -x /usr/lib/rsyslog/rsyslog-rotate ] && /usr/lib/rsyslog/rsyslog-rotate || true
- name: unattended-upgrades - name: unattended-upgrades-main
path: path: /var/log/unattended-upgrades/unattended-upgrades.log
- /var/log/unattended-upgrades/unattended-upgrades.log frequency: monthly
- /var/log/unattended-upgrades/unattended-upgrades-dpkg.log keep: 6
- /var/log/unattended-upgrades/unattended-upgrades-shutdown.log missingok: true
notifempty: true
- name: unattended-upgrades-dpkg
path: /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
frequency: monthly
keep: 6
missingok: true
notifempty: true
- name: unattended-upgrades-shutdown
path: /var/log/unattended-upgrades/unattended-upgrades-shutdown.log
frequency: monthly frequency: monthly
keep: 6 keep: 6
missingok: true missingok: true
...@@ -235,10 +246,19 @@ logrotate_entries: ...@@ -235,10 +246,19 @@ logrotate_entries:
create_group: utmp create_group: utmp
minsize: 1M minsize: 1M
- name: borgmatic - name: borgmatic_local
path: path: /var/log/borgmatic/borg_local_repo.log
- /var/log/borgmatic/borg_local_repo.log frequency: monthly
- /var/log/borgmatic/borg_remote_repo.log keep: 12
missingok: true
notifempty: true
delaycompress: true
create_mode: "0644"
create_user: root
create_group: root
- name: borgmatic_remote
path: /var/log/borgmatic/borg_remote_repo.log
frequency: monthly frequency: monthly
keep: 12 keep: 12
missingok: true missingok: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment