The playbook can install and configure borgbackup with borgmatic for you.
The backup will run based on matrix_backup_borg_schedule var (systemd timer calendar), default: 4am every day
ssh-keygen -t ed25519 -N '' -C matrix
# example to append the new PUBKEY contents, where:
# PUBKEY is path to the public key,
# USER is a ssh user on a provider / server
# HOST is a ssh host of a provider / server
cat PUBKEY | ssh USER@HOST 'dd of=.ssh/authorized_keys oflag=append conv=notrunc'
Minimal working configuration (inventory/host_vars/matrix.DOMAIN/vars.yml) to enable borg backup:
matrix_backup_borg_enabled: true
matrix_backup_borg_repository: "USER@HOST:REPO"
matrix_backup_borg_passphrase: "PASSPHRASE"
matrix_backup_borg_ssh_key: |
PRIVATE KEY
where:
matrixpwgen -s 64 1 or use any password managerCheck the roles/matrix-backup-borg/defaults/main.yml for the full list of available options
After configuring the playbook, run the installation command again:
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start