Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ansiblization/borgbackup
- Owner: ansiblization
- License: apache-2.0
- Created: 2024-06-09T13:38:47.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-06-09T15:23:06.000Z (5 months ago)
- Last Synced: 2024-09-30T17:23:18.525Z (about 1 month ago)
- Topics: ansible, ansible-role, borgbackup, debian, systemd-service, systemd-timer, systemd-unit
- Language: Jinja
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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) }}"
```