|\_
B A C K U P N I N J A /()/
`\|
This role install backupninja and can install backup scripts for gcloud.
All backups instructions are defined in /etc/backup.d
. gcloud is 50_
prefixed. Actions will be performed in alphabetical order. If you want a mysql dump before gcloud rsync you must create a file like 40_dump.mysql
.
If you need to perfom actions after gsutil (like a backup test), just need create a file like 60_call-jenkins-test-backup.sh
if it's a shell script.
To use gcloud backup :
ansible-gcloud
must be deploy before ( https://github.com/leucos/ansible-gcloud )gcloud_{daily,hourly}_backup
must beTRUE
gsutil
must be properly configuredsource and destination
must me defined like this :
gcloud_{daily,hourly}_sync:
- source: "/etc"
destination: "my_bucket/etc/"
- source: "/home"
destination: "my_bocket/home/"