ansible-backup

A simple ansible role to backup a couple of things:

  • Docker volumes
  • Fs directories

Example Playbook

- 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

License

The code in this repository is released under MIT license (see the LICENSE file for more information).