A somewhat configurable MongoDB backup container.
1.7K
A somewhat configurable MongoDB backup container.
docker build -t mongobackup .
| Variable | Default | Description. |
|---|---|---|
| TZ | Timezone, e.g. Europe/Helsinki. | |
| BACKUP_USERNAME | MongoDB username. | |
| BACKUP_PASSWORD | MongoDB password. | |
| BACKUP_HOST | MongoDB host. | |
| BACKUP_PORT | 27017 | MongoDB port. |
| BACKUP_DATABASE | MongoDB database. | |
| BACKUP_CRONRULE | 0 * * * * | Crontab rule defining interval of backing up. |
| BACKUP_NAMEFORMAT | ${BACKUP_DATABASE}_%Y-%m-%d-%H-%M-%S | Output directory name format, formatted using date command. |
| BACKUP_DIRECTORY | /backups | Directory into which backup directories will be generated. |
| BACKUP_AUTHENTICATIONDATABASE | admin | Database against which authentication is checked. Mongodump's 'authenticationDatabase' argument. |
Content type
Image
Digest
Size
180.3 MB
Last updated
over 5 years ago
docker pull b10011/mongobackup