Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ansiblization/restic
Ansible role for installing scheduled restic backup jobs on Debian or Archlinux-based hosts
https://github.com/ansiblization/restic
ansible ansible-role debian restic systemd-service systemd-timer systemd-unit
Last synced: 7 days ago
JSON representation
Ansible role for installing scheduled restic backup jobs on Debian or Archlinux-based hosts
- Host: GitHub
- URL: https://github.com/ansiblization/restic
- Owner: ansiblization
- License: apache-2.0
- Created: 2024-06-09T13:39:41.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-11-14T20:32:39.000Z (3 months ago)
- Last Synced: 2024-11-22T18:48:00.896Z (2 months ago)
- Topics: ansible, ansible-role, debian, restic, systemd-service, systemd-timer, systemd-unit
- Language: Jinja
- Homepage:
- Size: 8.79 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 restic backup jobs
This role depends on the [ansiblization/syslog](https://github.com/ansiblization/syslog) role for logging capabilities.
The restic jobs to be scheduled have to be defined as a list named `restic_jobs`:
```yml
restic_jobs: [{restic_vars}, ...]
restic_vars:
name: "{{ restic_job.name }}"
paths: "{{ restic_job.paths }}"
password: "{{ restic_job.password }}"
repository: "{{ restic_job.repository }}"
compression: "{{ restic_job.compression | default('auto') }}"
schedule: "{{ restic_job.schedule | default(None) }}"
exclude: "{{ restic_job.exclude | default([]) }}"
environment: "{{ restic_job.environment | default({}) }}"
conflicts: "{{ restic_job.conflicts | default([]) }}"
state: "{{ restic_job.state | default('present') }}"
prune: "{{ restic_job.prune | default(true) }}"
keep_hourly: "{{ restic_job.keep_daily | default(24) }}"
keep_daily: "{{ restic_job.keep_daily | default(7) }}"
keep_weekly: "{{ restic_job.keep_weekly | default(4) }}"
keep_monthly: "{{ restic_job.keep_monthly | default(6) }}"
keep_yearly: "{{ restic_job.keep_monthly | default(4) }}"
```