Coder Social home page Coder Social logo

ansiblization / borgbackup Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 8 KB

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

License: Apache License 2.0

Jinja 100.00%
ansible-role borgbackup debian systemd-timer systemd-unit ansible systemd-service

borgbackup's Introduction

Ansible role for installing scheduled borgbackup jobs

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

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

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

borgbackup's People

Contributors

pseudorandomuser avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.