An Ansible role that provisions rsnapshot and schedules automated backups.
See default values.
rsnapshot_hosts:
- name: example.com
local: true
user: root
directories:
- /etc/
- /var/docker-volumes/
scripts:
- command: /usr/local/bin/backupdockerpostgresql
args: --host [email protected] --container postgresql postgresql.gz
# Validate rsnapshot.conf
rsnapshot configtest
# Dry-run
interval=daily
#interval=weekly
#interval=monthly
rsnapshot -t ${interval}