system-config/playbooks/roles/borg-backup-server
Ian Wienand 86ed1d74dd borg-backup-server: set SHELL for verification script
In today's weird corner-case issue; when running under cron,
SHELL=/bin/sh ... which doesn't really matter (this script is run
under #!/bin/bash) *except* that "sudo -s" is obeying SHELL and
consequently the in-line script here fails under cron, but not when
run interactively.  Just set SHELL=/bin/bash for consistency.

Change-Id: Ic8584b90fea8382f7a7d294b98a0a3689bfc981b
2021-03-23 14:53:56 +11:00
..
defaults Add borg-backup roles 2020-07-21 17:36:50 +10:00
files borg-backup-server: set SHELL for verification script 2021-03-23 14:53:56 +11:00
tasks borg-backup-server: fix verification run 2021-03-17 15:09:57 +11:00
README.rst Add borg-backup roles 2020-07-21 17:36:50 +10:00

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