# # borgmatic.myhostname_root.yaml # # Copyright (C) 2014-2020 Dan Helfman # 2020-2022 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Local repository example. location: source_directories: - /backed/up/mountpoint repositories: - /mnt/backups/myhostname_root.borg exclude_patterns: - /data - /proc - /sys - /tmp - /run - /mnt - /media - /lost+found storage: checkpoint_interval: 900 lock_wait: 120 retention: keep_within: 1w keep_monthly: 1 consistency: checks: - disabled output: color: false hooks: before_backup: - /home/jobs/scripts/by-user/root/borgmatic_hooks.py /home/jobs/scripts/by-user/root/borgmatic_hooks.myhostname_root.yaml 'start' "{configuration_filename}" "{repository}" "{output}" "{error}" after_backup: - /home/jobs/scripts/by-user/root/borgmatic_hooks.py /home/jobs/scripts/by-user/root/borgmatic_hooks.myhostname_root.yaml 'finish' "{configuration_filename}" "{repository}" "{output}" "{error}" on_error: - /home/jobs/scripts/by-user/root/borgmatic_hooks.py /home/jobs/scripts/by-user/root/borgmatic_hooks.myhostname_root.yaml 'error' "{configuration_filename}" "{repository}" "{output}" "{error}" # Remote repository example. location: source_directories: - /backed/up/mountpoint repositories: - borgmatic@remote-host:/mnt/backups/myhostname_root.borg exclude_patterns: - /data - /proc - /sys - /tmp - /run - /mnt - /media - /lost+found storage: checkpoint_interval: 900 lock_wait: 120 retention: keep_within: 1w keep_monthly: 1 consistency: checks: - disabled output: color: false hooks: before_backup: - /home/jobs/scripts/by-user/root/borgmatic_hooks.py /home/jobs/scripts/by-user/root/borgmatic_hooks.myhostname_root.yaml 'start' "{configuration_filename}" "{repository}" "{output}" "{error}" after_backup: - /home/jobs/scripts/by-user/root/borgmatic_hooks.py /home/jobs/scripts/by-user/root/borgmatic_hooks.myhostname_root.yaml 'finish' "{configuration_filename}" "{repository}" "{output}" "{error}" on_error: - /home/jobs/scripts/by-user/root/borgmatic_hooks.py /home/jobs/scripts/by-user/root/borgmatic_hooks.myhostname_root.yaml 'error' "{configuration_filename}" "{repository}" "{output}" "{error}"