Giter Site home page Giter Site logo

achelak / docker-mongodb-gcs-backup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from orangecapinnovative/docker-mongodb-gcs-backup

0.0 0.0 0.0 5 KB

A docker image that periodically performs MongoDB backup and upload to Google Cloud Storage

License: MIT License

Shell 75.14% Dockerfile 24.86%

docker-mongodb-gcs-backup's Introduction

docker-mongodb-gcs-backup Docker Build Status

A docker image that periodically performs MongoDB backup and upload to Google Cloud Storage

Usage

You can find the built image on Docker Hub. Then, set following environment variable when running the docker container:

Environment Variable Required Default Description
GCS_KEY_FILE_PATH YES Path to service account key file. You can either mount the key file to the container or rebuild another image based on this image with additional key file
GCS_BUCKET YES Name of the Google Cloud Storage bucket
CRON_EXPRESSION NO 0 0 * * * Cron expression to control backup interval
MONGODB_HOST NO localhost The host variable that will pass to mongodump command
MONGODB_PORT NO 27017 The port variable that will pass to mongodump command
MONGODB_DB NO Name of the database to perform backup. Not specifying means backup all databases
MONGODB_USER NO In case that your mongo instance requires authentication
MONGODB_PASSWORD NO In case that your mongo instance requires authentication
MONGODB_OPLOG NO Set this to true if you want to perform mongodump with --oplog flag on. Read more
BACKUP_DIR NO /backup Path to directory of the backup file.
COLLECTION NO Adding --collection flag
EXCLUDE_COLLECTION NO Adding --excludeCollection flag

docker-mongodb-gcs-backup's People

Contributors

microbenz avatar panj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.