jprltsnz.borgmatic

BorgBackup with borgmatic Client

CI

This setup helps you use borgmatic to create backups for different applications. You can also choose to add encryption and compression. It works on Debian/Ubuntu and CentOS/Red Hat systems.

This role is mainly based on https://github.com/borgbase/ansible-role-borgbackup, but offers more flexibility and does not support borgbase.

Requirements

Before using this role, make sure the repositories parent directory from borgmatic_configs exists. If it doesn't, the setup will not work.

Role Variables

Dependencies

This role needs geerlingguy.repo-epel to be installed. It will be called automatically when required.

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

Informazioni sul progetto

Sets backups using borg and borgmatic

Installa
ansible-galaxy install jprltsnz.borgmatic
Licenza
Unknown
Download
81
Proprietario