Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Backup docker volumes to S3

License

NotificationsYou must be signed in to change notification settings

adamkoro/docker-volume-backup-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusDocker Image Size (latest by date)Docker PullsDocker Image Version (latest by date)Docker StarsGitHub

Simple docker volume backup to S3.

Create tar.gz file from docker volume and upload it to S3.

This image is only for backup. It doesn't have any restore functionality.

Docker images

Dockerhub:https://hub.docker.com/r/adamkoro/docker-volume-backup

Tags

  • latest: Latest builded image
  • Commit hashes: If you need you can use specific image via commit hash
  • Tags: These are the version of the script

Environment Variables

VariableDescriptionDefault
S3_BUCKETS3 bucket namebackup
S3_ENDPOINTS3 endpointempty
S3_ACCESS_KEYS3 access keyempty
S3_SECRET_KEYS3 secret keyempty
S3_REGIONS3 regionempty
S3_SSLS3 ssl usagetrue
BACKUP_NAMEName of the tar.gz filebackup
NUMBER_OF_BACKUPSNumber of the files in keep2

Usage

IMPORTANT: You need to mount volume with backup files to/backup directory. Make sure mountedread-only mode.

Backup file name:BACKUP_NAME_YYYY-MM-DD-HH-MM-SS.tar.gz that's why you have to setBACKUP_NAME environment variable.

Docker

docker run --rm -it -v /backup/:/backup -e S3_BUCKET=backup -e S3_ENDPOINT=minio.server.local -e S3_ACCESS_KEY=test -e S3_SECRET_KEY=test -e S3_REGION=home -e S3_SSL=true -e BACKUP_NAME=test-backup docker.io/adamkoro/docker-volume-backup:latest

Docker Compose

version:'3.7'services:backup:image:docker.io/adamkoro/docker-volume-backup:latestvolumes:      -docker-tmp-backup/:/backup:roenvironment:      -S3_BUCKET=backup      -S3_ENDPOINT=minio.server.local      -S3_ACCESS_KEY=test      -S3_SECRET_KEY=test      -S3_REGION=home      -S3_SSL=true      -BACKUP_NAME=backupvolumes:docker-tmp-backup:

[8]ページ先頭

©2009-2025 Movatter.jp