Skip to content

An Ansible role that installs rsnapshot and schedules automated backups

License

Notifications You must be signed in to change notification settings

andornaut/ansible-role-rsnapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Languages