konyu/heroku-aws-backup
A Heroku and AWS backup docker containerYou can use heroku pg:copy, aws s3 sync and more!!
94
A Heroku and AWS backup docker container
It's on docker-hub and github
You should set environment variables for AWS access key and secret key and heroku api-key.
http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html
https://devcenter.heroku.com/articles/authentication#api-token-storage
git clone git@github.com:konyu/heroku-aws-backup.git
cd heroku-aws-backup
docker build --rm -t konyu/heroku-aws-backup .
You can launch a container with AWS and Heroku environment variables.
docker run -it --rm --env AWS_ACCESS_KEY_ID=xxxxxxx \
--env AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxx \
--env AWS_DEFAULT_REGION=ap-northeast-1 \
--env HEROKU_API_KEY=xxxxxxxxxxxxx \
heroku-aws-backup bash
Refer to the following page. https://devcenter.heroku.com/articles/heroku-command-line
heroku plugins:install heroku-container-registry
Move to this repository directory
heroku login
> enter your id and password
heroku create APP_NAME_YOU_WANT
heroku container:push web
heroku config:set AWS_ACCESS_KEY_ID=xxxxxxx AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxx AWS_DEFAULT_REGION=ap-northeast-1 HEROKU_API_KEY=xxxxx -app APP_NAME_YOU_WANT
heroku addons:create scheduler:standard -app APP_NAME_YOU_WANT
docker pull konyu/heroku-aws-backup