jprltsnz.borgmatic

BorgBackup 与 borgmatic 客户端

CI

设置 borgmatic 以便进行每个应用程序的备份,并可选择加密和压缩。目前支持 Debian/Ubuntu 和 CentOS/Red Hat。

主要基于 https://github.com/borgbase/ansible-role-borgbackup,但这个角色灵活性更高,并不支持 borgbase。

要求

需要存在 borgmatic_configs 的 respositories 目录,否则此角色将失败。

角色变量

依赖关系

此角色需要安装 geerlingguy.repo-epel — 会在需要时适当调用。

示例剧本

- name: Converge
  hosts: all
  tasks:
    - name: "包含 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

许可证

MIT

关于项目

Sets backups using borg and borgmatic

安装
ansible-galaxy install jprltsnz.borgmatic
许可证
Unknown
下载
81
拥有者