Skip to content

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

License

Notifications You must be signed in to change notification settings

ansiblization/restic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role for installing scheduled restic backup jobs

This role depends on the ansiblization/syslog role for logging capabilities.

The restic jobs to be scheduled have to be defined as a list named restic_jobs:

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) }}"

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages