Docker image for backup mongodb with s3cmd
docker run \
-e MONGO_URI="mongodb://root:root@localhost:27017/db" \
-e S3_ACCESS_KEY="ACCESS_KEY" \
-e S3_SECRET_KEY="SECRET_KEY" \
-e S3_PATH="s3://bucket/backup/" \
-e S3_HOST_BASE="" \
-e S3_HOST_BUCKET="" \
-e S3_WEBSITE_ENDPOINT="" \
ghcr.io/nitpum/mongo-s3-backup:mainMONGO_URIMongo uri example:mongodb://root:root@localhost:27017/dbS3_ACCESS_KEYS3 access keyS3_SECRET_KEYS3 secret keyS3_PATHS3 path example:s3://bucket/backup/(with trailing slash)S3_HOST_BASES3 host base example:s3.amazonaws.comornyc1.digitaloceanspaces.comS3_HOST_BUCKETS3 host bucket example:%(bucket)s.s3.amazonaws.comor%(bucket)s.fra1.digitaloceanspaces.comS3_WEBSITE_ENDPOINTS3 website endpoint example:http://%(bucket)s.s3-website-% (location)s.amazonaws.com/orhttp://%(bucket)s.s3-website-%(location)s.digitaloceanspaces.com/
If you think this is useful, please consider support me ;)