This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/borg/templates/backup.yml.j2

18 lines
437 B
Text
Raw Normal View History

2023-01-10 22:55:25 +00:00
location:
source_directories:
2023-01-11 00:04:13 +00:00
- {{ base_data_dir }}
2023-01-10 22:55:25 +00:00
repositories:
2023-01-11 00:04:13 +00:00
- ssh://root@lewis.lan/root/homeserver_backup
2023-01-10 22:55:25 +00:00
retention:
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
storage:
ssh_command: ssh -i /srv/borg/id_ed25519
unknown_unencrypted_repo_access_is_ok: true
2023-01-11 00:04:13 +00:00
hooks:
before_everything:
- systemctl stop docker docker.socket
after_everything:
- systemctl start docker