Skip to content

The-Noah/dvbs3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Volume Backup to S3

CICD

docker pull ghcr.io/the-noah/dvbs3:latest

Usage

docker run -d --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  --env-file /path/to/.env \
  ghcr.io/the-noah/dvbs3:latest \
  volume_to_backup

Environment Variables

Variable Description Example
AWS_ACCESS_KEY_ID AWS Access Key ID
AWS_SECRET_ACCESS_KEY AWS Secret Access Key
S3_PROVIDER Preset S3 Provider aws
S3_HOST S3 Host s3.amazonaws.com
S3_HOST_BUCKET S3 Host Bucket Template %(bucket)s.s3.amazonaws.com
S3_BUCKET S3 Bucket docker-volume-backups

Provider Presets

We have a few presets for common S3 providers. You can use these by setting S3_PROVIDER to one of the following:

Provider S3_HOST S3_HOST_BUCKET
aws s3.amazonaws.com %(bucket)s.s3.amazonaws.com
vultr ewr1.vultrobjects.com %(bucket)s.ewr1.vultrobjects.com

Early Development

This project is in early development. It is somewhat messy to use, but it works. I will be cleaning it up and adding more features in the future.

License

MIT