Implement borg backup role.
This commit is contained in:
parent
985cc477b5
commit
004919824c
8 changed files with 129 additions and 2 deletions
8
roles/backup/defaults/main.yml
Normal file
8
roles/backup/defaults/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
borg_pwd: "{{ lookup('password', '/tmp/borg.pwd length=24') }}"
|
||||
borg_pwd_file: "/root/borg.pwd"
|
||||
borg_key_backup: "/root/borg-key.backup"
|
||||
|
||||
## alternative: "ssh://user@host:port/path/to/repo"
|
||||
backup_repo: "/var/backups/mnt/backup/borg"
|
||||
|
||||
backup_opts: "--exclude-caches"
|
Loading…
Add table
Add a link
Reference in a new issue