vbotka.rsnapshot

rsnapshot

quality Build Status GitHub tag

This is an Ansible role to install and set up rsnapshot.

You can give feedback and report issues.

Contributions are welcome.

Requirements and Dependencies

Roles

  • vbotka.ansible_lib

Collections

  • community.general

Role Variables

Check the default values and examples in the vars section.

Initially, there are no backup points set by the variables rsnapshot_backup_points and rsnapshot_backup_points_test. You must define at least one backup point. If not, rsnapshot will give this error:

ERROR: At least one backup point must be set. rsnapshot can not continue.

Workflow

  1. Install the role:
shell> ansible-galaxy install vbotka.rsnapshot
  1. Create a playbook and an inventory file:
shell> cat rsnapshot.yml
- hosts: webserver
  roles:
    - vbotka.rsnapshot
  1. Check the syntax:
shell> ansible-playbook rsnapshot.yml --syntax-check
  1. Install the needed packages:
shell> ansible-playbook rsnapshot.yml -t rsnapshot_pkg -e rsnapshot_install=true
  1. Run a dry run to see what changes will be made:
shell> ansible-playbook rsnapshot.yml --check --diff
  1. Execute the playbook:
shell> ansible-playbook rsnapshot.yml

Ansible Lint

When running ansible-lint, use the configuration file .ansible-lint.local. Some rules may be turned off and some warnings may be ignored. Check the notes in the configuration file.

shell> ansible-lint -c .ansible-lint.local

License

license

Author Information

Vladimir Botka

Informazioni sul progetto

Install and configure rsnapshot.

Installa
ansible-galaxy install vbotka.rsnapshot
Licenza
bsd-2-clause
Download
125
Proprietario