Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ansiblization/borgbackup

Ansible role for installing scheduled borgbackup jobs on Debian or Archlinux-based hosts
https://github.com/ansiblization/borgbackup

ansible ansible-role borgbackup debian systemd-service systemd-timer systemd-unit

Last synced: 25 days ago
JSON representation

Ansible role for installing scheduled borgbackup jobs on Debian or Archlinux-based hosts

Awesome Lists containing this project

README

        

# Ansible role for installing scheduled borgbackup jobs

This role depends on the [ansiblization/syslog](https://github.com/ansiblization/syslog) role for logging capabilities.

The borgbackup jobs to be scheduled have to be defined as a list named `borgbackup_jobs`:

```yml
borgbackup_jobs: [{borgbackup_vars}, ...]
borgbackup_vars:
name: "{{ borgbackup_job.name }}"
paths: "{{ borgbackup_job.paths }}"
repository: "{{ borgbackup_job.repository }}"
exclude: "{{ borgbackup_job.exclude | default([]) }}"
archive_format: "{{ borgbackup_job.archive_format | default('{now}') }}"
encryption: "{{ borgbackup_job.encryption | default('none') }}"
passphrase: "{{ borgbackup_job.passphrase | default(None) }}"
compression: "{{ borgbackup_job.compression | default('zstd') }}"
schedule: "{{ borgbackup_job.schedule | default(None) }}"
conflicts: "{{ borgbackup_job.conflicts | default([]) }}"
state: "{{ borgbackup_job.state | default('present') }}"
keep_daily: "{{ borgbackup_job.keep_daily | default(7) }}"
keep_weekly: "{{ borgbackup_job.keep_weekly | default(4) }}"
keep_monthly: "{{ borgbackup_job.keep_monthly | default(6) }}"
```