Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leucos/ansible-rsync-backup
Simple rsync-based differentiel backup script and playbook
https://github.com/leucos/ansible-rsync-backup
ansible ansible-role backup rsync
Last synced: 9 days ago
JSON representation
Simple rsync-based differentiel backup script and playbook
- Host: GitHub
- URL: https://github.com/leucos/ansible-rsync-backup
- Owner: leucos
- Created: 2017-04-02T16:36:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-16T10:27:54.000Z (almost 8 years ago)
- Last Synced: 2024-11-27T22:44:44.602Z (2 months ago)
- Topics: ansible, ansible-role, backup, rsync
- Language: Shell
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
rsync_backup Ansible playbook
=============================This role will deploy rbackup.sh, a simple rsync-based differential backup script with history purge.
Requirements
------------None
Role Variables
--------------Beside deploying the script, this role will manage your backup crontab for you if you populate `rsync_backup_crons`:
- `rsync_backup_crons`: list of dicts containing the following items:
- `name`: a unique name for the backup
- `source`: a rsync-compatible source to backup
- `destination`: a rsync-compatible destination directory to put
backups in
- `keep`: number of previous backups to keep
- `day`: cron-compatible day specification
- `hour`: cron-compatible hour specification
- `minute`: cron-compatible minute specification
- `log`: log file name (will be written in /var/log/rbackup/ and rotated)Example
-------```
rsync_backup_crons:
- name: Some files
source: /vagrant
destination: /backupvagrant
keep: 5
day: "*"
hour: 1
minute: 5
- name: Some other files
source: /etc/logrotate.d
destination: /backuplogrotate
keep: 3
day: "*"
hour: 5
minute: 15
log: backuplogrotate.log
```Tags
----- rbackup
Dependencies
------------None
Example Playbook
----------------Specs
-----To run tests locally in a Vagrant machine, just hit:
vagrant up
vagrant ssh -c specsIf you want to run the test playbook fast (i.e., without re-installing Ansible),
just run:vagrant ssh -c 'specs -p'
License
-------MIT
Author Information
------------------@leucos.