backup stuff
This commit is contained in:
parent
01b83a80ec
commit
27e036eccd
16 changed files with 513 additions and 0 deletions
27
ansible/roles/backup_source/defaults/main.yml
Normal file
27
ansible/roles/backup_source/defaults/main.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
# Required
|
||||
backup_source_name: "" # "headscale" -> headscale_<ts>.tar.gz.age
|
||||
backup_source_description: "" # "Headscale"
|
||||
backup_source_dump_command: "" # must write the payload to STDOUT
|
||||
|
||||
# Placement
|
||||
backup_source_dir: "/opt/backups/{{ backup_source_name }}"
|
||||
backup_source_artifact_suffix: "tar.gz.age"
|
||||
|
||||
# Encryption. Asymmetric: the host holds only the public key and cannot decrypt
|
||||
# what it produces.
|
||||
backup_source_recipient: "{{ age_backup_recipient }}"
|
||||
|
||||
# The unprivileged account small-backups-box pulls as. It owns the dump
|
||||
# directory and nothing else; it deliberately has no sudo.
|
||||
backup_source_pull_user: backup-pull
|
||||
backup_source_pull_key: "{{ backup_pull_public_key }}"
|
||||
|
||||
# Safety
|
||||
backup_source_stop_service: "" # local unit stopped for the dump, restored by a trap
|
||||
|
||||
# Retention here is LOCAL and short; small-backups-box keeps the long tail.
|
||||
backup_source_retention_days: 7
|
||||
|
||||
# Schedule. The box pulls at 04:00, so dumps must land before that.
|
||||
backup_source_on_calendar: "*-*-* 02:00:00"
|
||||
Loading…
Add table
Add a link
Reference in a new issue