MinIO Client & MongoDB Tools for list and restore backup file from S3 compatible service.
353
This image use MinIO Client and mongodb-tools and have some uses:
list: List the files in Amazon S3 compatible cloud storage service (AWS Signature v2 and v4) like Digitalocean Space or Google Storagerestore: Get a mongoDB backup file from Amazon S3 compatible cloud storage service and restore to mongoDB server.docker run -d \
--env AWS_ACCESS_KEY_ID=awsaccesskeyid \
--env AWS_SECRET_ACCESS_KEY=awssecretaccesskey \
--env S3_ENDPOINT=https://nyc3.digitaloceanspaces.com
--env S3_BUCKET_PATH=mybucket/backup \
--link my_mongo_db:mongo \
amaceog/mc-mongodb-tools list
List the files in the bucket mybucket and folder /backup.
docker run -d \
--env AWS_ACCESS_KEY_ID=awsaccesskeyid \
--env AWS_SECRET_ACCESS_KEY=awssecretaccesskey \
--env S3_ENDPOINT=https://nyc3.digitaloceanspaces.com
--env S3_BUCKET_PATH=mybucket/backup \
--link my_mongo_db:mongo \
amaceog/mc-mongodb-tools restore
Restore the latest.gz mongoDB backup file in bucket mybucket and folder /backup to my_mongo_db container.
This image uses several environment variables and some are required.
AWS_ACCESS_KEY_IDThis environment variable is required for you to use this image. This environment variable specifies an AWS access key with permission to Amazon S3 compatible cloud storage service.
AWS_SECRET_ACCESS_KEYThis environment variable is required for you to use this image. This environment variable specifies the secret key associated with the access key.
API_SIGNATUREThis environment variable is optional for you to use this image. By default, it is set to "S3v4". Valid options are '[S3v4, S3v2]'
S3_ENDPOINTThis environment variable is required for you to use this image and specifies MinIO server displays URL.
https://s3.amazonaws.com for Amazon S3.https://storage.googleapis.comnyc3 region use http://nyc3.digitaloceanspaces.comS3_BUCKET_PATHThis environment variable is required for you to use this image. This environment variable specifies the bucket name and path.
MONGO_HOSTThis environment variable is required in restore mode. This environment variable specifies the mongo host. By default, it is set to mongo
MONGO_DATABASEThis environment variable is optional for you to use this image.
This environment variable specifies the mongoDB database name.
MONGO_RESTORE_OPTSThis environment variable is optional for you to use this image.
This environment variable specifies the mongoDB restore options.
FILEThis environment variable is optional for you to use this image.
This environment variable specifies the backup file to restore. By default, it is set to latest.gz
Content type
Image
Digest
Size
48.4 MB
Last updated
over 6 years ago
docker pull amaceog/mc-mongodb-tools