Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Latest commit

 

History

History
22 lines (20 loc) · 690 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 690 Bytes

docker-mongodump-azure

A Docker image performing backups via mongodump into an Azure Storage Account.

Usage

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