a docker container to backup a mongodb using mongodump to an azure storage account
50M+
A little helper to create a backup of a mongodb using mongodump, storing the dump in azure blob storage using azcopy.
Tools used:
make sure you set the following environment variables, in .env
| variable | description |
|---|---|
| MONGO_URI | mongo host URI |
| AZURE_SA | Azure Storage account name |
| AZURE_BLOB_CONTAINER | name of the azure storage blob container |
| AZURE_DESTINATION_KEY | azure storage account destination key |
| DB | name of mongo database to backup |
| MONGO_USERNAME | username for mongodb |
| MONGO_PASSWORD | password to authenticate against mongodb |
| MONGO_AUTH_DB | name of mongo authentication database |
run ./backup_mongo.sh inside the container
Content type
Image
Digest
Size
140.1 MB
Last updated
almost 8 years ago
docker pull andreasleicher/mongo-azure-backup