Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itzg/docker-mongo-backups

A very simplistic container to perform periodic backups of an adjacent mongo container
https://github.com/itzg/docker-mongo-backups

backup docker mongodb

Last synced: about 1 month ago
JSON representation

A very simplistic container to perform periodic backups of an adjacent mongo container

Awesome Lists containing this project

README

        

[![](https://img.shields.io/docker/automated/itzg/mongo-backups.svg)](https://hub.docker.com/r/itzg/mongo-backups)

This is a very simplistic container to perform periodic backups of an adjacent mongo container.

## Environment Variables

* `HOST` (default: localhost) : the hostname of the mongodb server to backup
* `PREFIX` (default: mongodb) : the prefix part of the backup archive filename. The name will
also include a date-time field.
* `INTERVAL` (default: 86400) : the number of seconds between each backup that will be taken.
If set to zero, then the container will run the process once and exit. This is
useful when running as a Kubernetes CronJob

## Volumes

* `/backups` : this where the script will place the backup archives by default