system-config/playbooks/roles/borg-backup-server
Ian Wienand 62801d8a93 borg-backup-server: volume space monitor
Due to backups running in append-only mode, we do not have a way to
safely automatically prune backups.  To reduce the likelyhood we
forget about backups and end up with failing jobs, add a cron job to
send a email to infra-root if the backup partition goes over 90%
usage.  At this point a manual prune should be run
(I9559bb8aeeef06b95fb9e172a2c5bfb5be5b480e).

Change-Id: I250d84c4a9f707e63fef6f70cfdcc1fb7807d3a7
2021-02-09 11:31:02 +11:00
..
defaults Add borg-backup roles 2020-07-21 17:36:50 +10:00
files borg-backup-server: volume space monitor 2021-02-09 11:31:02 +11:00
tasks borg-backup-server: volume space monitor 2021-02-09 11:31:02 +11:00
README.rst Add borg-backup roles 2020-07-21 17:36:50 +10:00

README.rst

Setup backup server

This role configures backup server(s) in the borg-backup-server group to accept backups from remote hosts.

Note that the borg-backup role must have run on each host in the borg-backup group before this role. That role will create a borg_user tuple in the hostvars for for each host consisting of the required username and public key.

Each required user gets a separate home directory in /opt/backups. Their authorized_keys file is configured with the public key to allow the remote host to log in and only run borg in server mode.

Role Variables