Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Removed strict requirement on AWS_* environment properties to #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ ADD run.sh /run.sh
RUN chmod 755 /*.sh

ENV S3_BUCKET_NAME docker-backups.example.com
ENV AWS_ACCESS_KEY_ID **DefineMe**
ENV AWS_SECRET_ACCESS_KEY **DefineMe**
ENV AWS_DEFAULT_REGION us-east-1
ENV PATHS_TO_BACKUP /paths/to/backup
ENV BACKUP_NAME backup
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ RESTORE=false

`dockup` will use your AWS credentials to create a new bucket with name as per the environment variable `S3_BUCKET_NAME`, or if not defined, using the default name `docker-backups.example.com`. The paths in `PATHS_TO_BACKUP` will be tarballed, gzipped, time-stamped and uploaded to the S3 bucket.

Both `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` are optional if your Docker container is executed in an environment where these credentials are provided -- for example, an AWS IAM role.


## Restore
To restore your data simply set the `RESTORE` environment variable to `true` - this will restore the latest backup from S3 to your volume.
Expand Down
4 changes: 2 additions & 2 deletions tutum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ dockup:
image: 'tutum/dockup:latest'
autodestroy: always
environment:
- AWS_ACCESS_KEY_ID=<key_here> #MUST CHANGE THIS
- AWS_SECRET_ACCESS_KEY=<secret_here> #MUST CHANGE THIS
# AWS_ACCESS_KEY_ID=<key_here> #MAY OPTIONALLY PROVIDE THIS
# AWS_SECRET_ACCESS_KEY=<secret_here> #MAY OPTIONALLY PROVIDE THIS
- AWS_DEFAULT_REGION=us-east-1 #OPTIONALLY CHANGE THIS
- BACKUP_NAME=backup #OPTIONALLY CHANGE THIS
- PATHS_TO_BACKUP=/first/path/here /second/path/here #MUST CHANGE THIS
Expand Down