Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/itzg/docker-mongo-backups
- Owner: itzg
- Created: 2017-11-04T00:03:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T23:04:55.000Z (3 months ago)
- Last Synced: 2024-08-21T00:39:09.088Z (3 months ago)
- Topics: backup, docker, mongodb
- Language: Shell
- Homepage:
- Size: 56.6 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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