A Docker image performing backups via mongodump into an Azure Storage Account.
Single-Shot-Run:
docker run -d \
--name mongodb-azure-backup \
--link <mongodb container>:mongodb \
[-e "MONGODB_HOST=<mongodb host> \]
[-e "MONGODB_DB=<database name>" \]
-e "AZURE_CONTAINER=<storage container name>" \
-e "AZURE_STORAGE_ACCOUNT=<storage account name>" \
-e "AZURE_STORAGE_KEY=<storage account key>" \
[-e "AZURE_ENDPOINT_SUFFIX=<endpoint suffix like core.cloudapi.de>" \]
holobuilder/mongodump-azure
Scheduling using cron:
echo "0 3 * * * <docker user> docker start mongodb-azure-backup" > /etc/crontab