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 928de473 authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

feat: update borgmatic cron jobs to log output and add logrotate configuration

parent 5dbf9dd2
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,10 @@ borg_version: "1.4.0"
borgmatic_version: "2.0.1"
borgmatic_relocated_repo_access_is_ok: true
borgmatic_cron_lines:
- '0 2 * * * root borgmatic -c /etc/borgmatic/borg_local_repo'
- '0 3 * * * root borgmatic -c /etc/borgmatic/borg_remote_repo'
- '0 12 1 * * root borgmatic compact /etc/borgmatic/borg_local_repo'
- '0 17 1 * * root borgmatic compact /etc/borgmatic/borg_remote_repo'
- '0 2 * * * root borgmatic -c /etc/borgmatic/borg_local_repo >> /var/log/borgmatic/borg_local_repo.log 2>&1'
- '0 3 * * * root borgmatic -c /etc/borgmatic/borg_remote_repo >> /var/log/borgmatic/borg_remote_repo.log 2>&1'
- '0 12 1 * * root borgmatic compact /etc/borgmatic/borg_local_repo >> /var/log/borgmatic/borg_local_repo.log 2>&1'
- '0 17 1 * * root borgmatic compact /etc/borgmatic/borg_remote_repo >> /var/log/borgmatic/borg_remote_repo.log 2>&1'
borgmatic_hooks:
before_backup:
......
......@@ -236,3 +236,16 @@ logrotate_entries:
create_user: root
create_group: utmp
minsize: 1M
- name: borgmatic
path:
- /var/log/borgmatic/borg_local_repo.log
- /var/log/borgmatic/borg_remote_repo.log
frequency: monthly
keep: 12
missingok: true
notifempty: true
delaycompress: true
create_mode: "0644"
create_user: root
create_group: root
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