This is WIP

Usage:

Installation:
gem install aws_docker_utils
Set AWS credentials:
aws_docker_utils configure init
Reset (delete) stored AWS credentials:
aws_docker_utils configure reset
Create SQL from Docker container and upload SQL file to AWS S3:
aws_docker_utils backup_file from \<container_name\> to \<s3_bucket_name\> as 'backup_database' using \<cmd\>
Example:
aws_docker_utils backup_file from database to 'my-super-bucket-name' as 'backup' using "pg_dump -U postgres -O my_app_production"

The SQL backup file will be extacted from the database container, compressed and pushed to 'my-super-bucket-name' S3 bucket with the name like

backup_16-04-15_16-34.sql

If the AWS S3 bucket is not exists, it will be created.

License

Author: Bogdan Kulbida, under MIT Lic. 2016.