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: about 1 year ago
JSON representation
Installs borgbackup and borgmatic and configures automated backups.
- Host: GitHub
- URL: https://github.com/danihodovic/ansible-role-borgbackup
- Owner: danihodovic
- Created: 2021-04-14T18:39:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-23T21:08:16.000Z (about 5 years ago)
- Last Synced: 2025-04-12T03:06:06.189Z (about 1 year ago)
- Topics: ansible, backup, borg, borgmatic
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible-role-borgbackup [](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:
- repo@repo.borgbase.com:repo
hooks:
postgresql_databases:
- name: all
hostname: localhost
username: '{{ postgres_user }}'
password: '{{ vault_postgres_password }}'
ssl_mode: disable
```