ansible-borgbackup/defaults/main.yml

44 lines
982 B
YAML

---
borgbackup_required: True
borgbackup_ssh_key: "~/.ssh/id_borg_rsa"
borgbackup_version: "1.0.11"
borgbackup_checksum: "sha256:fbdc0e0d6d05a0935551f2f408f370236a76b7a30d3bb90a31c3628fe3611359"
borgbackup_download_url: "https://github.com/borgbackup/borg/releases/download/{{ borgbackup_version }}/borg-linux64"
borgbackup_pre_commands:
- '[[ ! -f "/usr/sbin/automysqlbackup" ]] || /usr/sbin/automysqlbackup'
borgbackup_post_commands: []
borgbackup_include:
- "/etc"
- "/home"
- "/root"
- "/var/www"
- "/var/log"
borgbackup_exclude: []
borgbackup_retention:
hourly: 12
daily: 7
weekly: 4
monthly: 6
yearly: 1
borgbackup_cron_user: root
borgbackup_cron_day: "*"
borgbackup_cron_hour: "{{ 5|random }}"
borgbackup_cron_minute: "{{ 59|random }}"
borgbackup_appendonly: False
borgbackup_management_station: ''
borgbackup_management_user: ''
borgbackup_management_ssh_pubkey: ''
borgbackup_owner: root
borgbackup_group: root
borgbackup_shell: "/bin/bash"