ansible-borgbackup/defaults/main.yml

67 lines
1.6 KiB
YAML

---
borgbackup_required: true
borgbackup_client_user: root
borgbackup_ssh_key: "~{{ borgbackup_client_user }}/.ssh/id_borg_rsa"
borgbackup_version: "1.1.10"
borgbackup_checksum: "sha256:6338d67aad4b5cd327b25ea363e30f0ed4abc425ce2d6a597c75a67a876ef9af"
borgbackup_download_url: "https://github.com/borgbackup/borg/releases/download/{{ borgbackup_version }}/borg-linux64"
borgbackup_compression: "auto,zlib,6"
borgbackup_encryption_mode: keyfile
borgbackup_pre_commands:
- "[ -d /etc/backup.d/ ] && run-parts --verbose /etc/backup.d/"
borgbackup_post_commands: []
borgbackup_include:
- "/"
borgbackup_exclude:
- "*/local/*"
- "*/tmp/*"
- "*CACHE*"
- "/dev"
- "/proc"
- "/run"
- "/sys"
- "/tmp"
- "/var/cache/apt"
- "/var/lib/amavis/tmp"
- "/var/lib/amavis/virusmails"
- "/var/lib/lxc"
- "/var/lib/lxcfs"
- "/var/lib/php/sessions"
- "/var/lib/php5"
- "/var/run"
- "/var/spool/postfix"
- "/var/tmp"
borgbackup_retention:
hourly: 12
daily: 7
weekly: 4
monthly: 6
yearly: 1
borgbackup_cron_day: "*"
borgbackup_cron_hour: "{{ 5|random(seed=inventory_hostname) }}"
borgbackup_cron_minute: "{{ 59|random(seed=inventory_hostname) }}"
borgbackup_appendonly: false
borgbackup_appendonly_repoconfig: false
borgbackup_management_station: ''
borgbackup_management_user: ''
borgbackup_management_ssh_pubkey: ''
borgbackup_management_copy_keys: true
borgbackup_management_key_name: 'backupserver_example_com__repo_dir_'
borgbackup_remote_ratelimit: 6250 # in KiB/s so 6250 <-> 50Mb/s
borgbackup_owner: root
borgbackup_group: root
borgbackup_shell: "/bin/bash"