c1fd4e5c80
This allows you to use this role to run a number of scripts/commands before and after backup using the hooks provided by borgmatic. See https://torsion.org/borgmatic/docs/how-to/add-preparation-and-cleanup-steps-to-backups/#preparation-and-cleanup-hooks You can specify multiple commands like so: borgmatic_before_backup_command: - dump-a-database /to/file.sql - echo "`date` - Backup hook doing work!"
26 lines
629 B
YAML
Executable File
26 lines
629 B
YAML
Executable File
---
|
|
borg_encryption_passphrase: ''
|
|
borg_exclude_patterns: []
|
|
borgmatic_large_repo: false
|
|
borgmatic_failure_command:
|
|
- echo "`date` - Error while creating a backup."
|
|
borgmatic_before_backup_command: []
|
|
borgmatic_after_backup_command: []
|
|
borg_one_file_system: true
|
|
borg_exclude_from: []
|
|
borg_encryption_passcommand: false
|
|
borg_ssh_command: false
|
|
borg_retention_policy:
|
|
keep_hourly: 3
|
|
keep_daily: 7
|
|
keep_weekly: 4
|
|
keep_monthly: 6
|
|
create_repo: False
|
|
bb_new_sshkey: True
|
|
bb_append: True
|
|
bb_quota: False
|
|
bb_quota_size: 0
|
|
bb_alertdays: 0
|
|
bb_repo_name: "{{ inventory_hostname }}"
|
|
bb_sshkey: "{{ root_user['ssh_public_key'] }}"
|