Skip to content

Kenblair1226/mongo-gcloud-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongo-gcloud-sdk

This is a docker image based on mongo:latest with google-cloud-sdk installed. It's a utility image let you backup/restore your mongodb to/from google cloud storage.

To authenticate with google cloud you need to load your service account cert file and issue gcloud auth with file name (default is /key/gcloud-storage-key.json)

gcloud auth activate-service-account --key-file /PATH/TO/KEY_FILE

Then you can perform your backup/restore tasks.

The start.sh will look for environment variable SIDECAR_BACKUP to determine the backup frequency.

backup/restore script will use the following environment variables:

Variables Value
SIDECAR_BACKUP daily or weekly
DATABASE database name
DATABASE_URL url to database
BACKUP_URL url to store backup files

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages