A simple ansible role to backup a couple of things:
- Docker volumes
- Fs directories
- hosts: server_name
vars:
backup_dir: /local/path/to/backup/dir
backup_docker:
container_name: /volume/mount/point
backup_fs:
backup_name:
- /directory/to/backup
- /other/directory/to/backup
backup_mysql: database_name # this could also be a list
backup_mysql_port: 3306
backup_mysql_user: mysql_user
backup_mysql_password: mysql_password # please use your vault
roles:
- ansible-backup
The code in this repository is released under MIT license (see the LICENSE file for more information).