borgmatic

BorgBackup with borgmatic Client

CI

Sets up borgmatic to make per-application backups with optional encryption and compression. Currently supports Debian/Ubuntu and CentOS/Red Hat.

Mainly based of https://github.com/borgbase/ansible-role-borgbackup, but this role is a little more flexible and doesn't support borgbase.

Requirements

The respositories parent directory from borgmatic_configs need to exist, or this role will fail.

Role Variables

Dependencies

This role requires geerlingguy.repo-epel to be installed — it will called appropriately when needed.

Example Playbook

- name: Converge
  hosts: all
  tasks:
    - name: "Include borgmatic"
      include_role:
        name: jprltsnz.borgmatic
      vars:
        borgmatic_configs:
          backup-etc:
            location:
              source_directories:
                - /etc
              repositories:
                - /srv/backup_etc
              atime: false
              exclude_patterns:
                - icon_cache
            retention:
              keep_daily: 7
              keep_weekly: 4
              keep_monthly: 12

          backup-home:
            location:
              source_directories:
                - /home
              repositories:
                - /srv/backup_home
              atime: false
              exclude_patterns:
                - icon_cache
            retention:
              keep_daily: 7
              keep_weekly: 4
              keep_monthly: 12

License

MIT

Install
ansible-galaxy install jprltsnz/ansible-role-borgmatic
GitHub repository
License
Unknown
Downloads
71
Owner