Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joenyland/ansible-off-site-backup-role
https://github.com/joenyland/ansible-off-site-backup-role
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/joenyland/ansible-off-site-backup-role
- Owner: JoeNyland
- Created: 2023-04-17T12:59:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-27T14:17:57.000Z (10 months ago)
- Last Synced: 2024-12-06T21:08:31.662Z (24 days ago)
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
joenyland.off_site_backup
===================[![CI](https://github.com/JoeNyland/ansible-off-site-backup-role/actions/workflows/ci.yml/badge.svg)](https://github.com/JoeNyland/ansible-off-site-backup-role/actions/workflows/ci.yml)
Sets up off-site backups using ZFS and Syncoid.
Requirements
------------* SSH
* cron
* ZFS
* SanoidRole Variables
--------------### `off_site_backup_tasks`
A list of hashes, representing each off-site backup task.
### `off_site_backup_user`
The user to create and use for off-site backups. This user will need ZFS permissions to allow backups.
The following permissions should be sufficient on the source host:
```
hold,send,snapshot,destroy
```The following permissions should be sufficient on the destination host:
```
create,destroy,mount,receive,rollback
```Dependencies
------------Roles:
* joenyland.zfs
* joenyland.ssh
* joenyland.sanoidExample Playbook
----------------```yaml
- hosts: server,backup
roles:
- role: joenyland.off_site_backup
vars:
off_site_backup_tasks:
- name: Off-site backup
hour: 1
minute: 0
tasks:
- source: syncoid@server:bpool
destination: off-site/bpool
```License
-------MIT
Author Information
------------------⌨️ with ❤️ by [Joe Nyland](https://joe.nyland.io)