You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Cian Hatton 0006f152ef
Add encryption field and update credentials (#16)
3 years ago
.github/workflows Add encryption field and update credentials (#16) 3 years ago
plugins/filter Switch to filter plugin instead of python script (#14) 3 years ago
roles Add encryption field and update credentials (#16) 3 years ago
tests Add encryption field and update credentials (#16) 3 years ago
.gitignore specify a single volume in the role instead of a list (#15) 3 years ago
LICENSE Initial commit 3 years ago
Makefile Add E2E which backs up and restores a volume (#9) 3 years ago
README.md Add encryption field and update credentials (#16) 3 years ago
galaxy.yml initial commit, adding s3 backup and restore 3 years ago
requirements.txt Add ci for ansible lint (#6) 3 years ago

README.md

Collection chatton.docker_backup

This collection contains the following roles:

Shared variables

Variable Description Default
docker_backup_aws_s3_region The AWS region to use us-east-1
docker_backup_aws_s3_bucket The AWS S3 bucket to use backups
docker_backup_host_backup_directory The directory on the host to store the backup ""
docker_backup_aws_s3_url The AWS S3 url to use ""
docker_backup_aws_s3_aws_access_key The AWS access key to use ""
docker_backup_aws_s3_aws_secret_key The AWS secret key to use ""
docker_backup_aws_s3_permissions The AWS S3 permissions to use []
docker_backup_aws_s3_encrypt Whether to encrypt the backup true

chatton.docker_backup.docker_backup

Variable Description Default
container_backup The container to backup ""

This role will stop the given container, backup all non host volumes, and restart the container. The backup will be uploaded to the given AWS S3 bucket.

chatton.docker_backup.docker_restore

Variable Description Default
docker_backup_restore_force forces a revert to the volume. false
docker_backup_restore_latest_s3_key specify docker_backup_restore_latest_s3_key true to automatically determine the latest backup in the s3 backup. false
docker_backup_s3_volume.name The name of the volume to restore ""
docker_backup_s3_volume.s3_key The s3 key to restore from ""
docker_backup_fail_on_no_s3_backups causes the task to fail if there are no s3 backups. true