andornaut / ansible-role-rsnapshot

An Ansible role that installs rsnapshot and schedules automated backups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-role-rsnapshot

An Ansible role that provisions rsnapshot and schedules automated backups.

Variables

See default values.

Example configuration

rsnapshot_hosts:
  - name: example.com
    local: true
    user: root
    directories:
      - /etc/
      - /var/docker-volumes/
    scripts:
      - command: /usr/local/bin/backupdockerpostgresql
        args: --host root@example.com --container postgresql postgresql.gz

Development

# Validate rsnapshot.conf
rsnapshot configtest

# Dry-run
interval=daily
#interval=weekly
#interval=monthly
rsnapshot -t ${interval}

About

An Ansible role that installs rsnapshot and schedules automated backups

License:MIT License


Languages

Language:Jinja 100.0%