Skip to content

Repository files navigation

Start your mongodb server with automatic restore from S3 at startup and backup to S3

How to run ?

Prerequisites : Dont't forget to configure your environment variables in docker-compose.yaml

  • DATABASES Name of the databases to backup/restore (format: <db_name>@s3://<file_on_s3> OR
  • DATABASE_FILE JSON file that dontains the database definition on s3 (format: s3://<file_on_s3> - see example file dbs.json)
  • AWS_ACCESS_KEY_ID Your AWS Access Key ID
  • AWS_SECRET_ACCESS_KEY Your AWS Secret Key
  • INTERVAL Backup interval in second (default: 300 - 5 minutes)

Simply run docker-compose up, your mongodb server will start as well as the backup and restore service

Manually run the backup / restore scripts

  • Restore : docker-compose exec backup sh /restore.sh <database_name>
  • Backup : docker-compose exec backup sh /backup.sh <database_name>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages