Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/danihodovic/ansible-role-borgbackup

Installs borgbackup and borgmatic and configures automated backups.
https://github.com/danihodovic/ansible-role-borgbackup

ansible backup borg borgmatic

Last synced: 3 months ago
JSON representation

Installs borgbackup and borgmatic and configures automated backups.

Awesome Lists containing this project

README

        

# ansible-role-borgbackup [![Build Status](https://ci.depode.com/api/badges/danihodovic/ansible-role-borgbackup/status.svg)](https://ci.depode.com/danihodovic/ansible-role-borgbackup)

An Ansible role to install [Borg](https://github.com/borgbackup/borg) and [Borgmatic](https://github.com/witten/borgmatic).

Usage
```yaml
- name: Install borg backups
hosts: db
tasks:
- name: Install backups
tags: borg
import_role:
name: ansible-role-borgbackup
vars:
borg_password: '{{ vault_borgmatic_password }}'
borg_ssh_key: '{{ vault_borgmatic_ssh_key }}'
borgmatic_config:
location:
repositories:
- [email protected]:repo
hooks:
postgresql_databases:
- name: all
hostname: localhost
username: '{{ postgres_user }}'
password: '{{ vault_postgres_password }}'
ssl_mode: disable
```