Fixed backups & added replica recovery
All checks were successful
Build and publish / Build Container (push) Successful in 1m22s

This commit is contained in:
2026-05-29 21:51:22 -04:00
parent e0933bede2
commit 2ed87ffdd6
4 changed files with 35 additions and 17 deletions

View File

@@ -51,12 +51,15 @@ To restore a backup, uncompress it and use the official `mongorestore`
### Environment Variables
| Variable | Description | Default | Example |
|--------------------|--------------------------------|--------------------------|---------------|
| `BACKUP_CRON` | Cron schedule expression | - | `0 */6 * * *` |
| `BACKUP_DIR` | Directory to store backups | /data/backups | `/backups` |
| `BACKUP_DB` | Database that will be backedup | `$MONGO_INITDB_DATABASE` | `admin` | |
| `BACKUP_RETENTION` | Number of backups to keep | - | `7` |
| Variable | Description | Default | Example |
|------------------------------|--------------------------------------------------|--------------------------|---------------|
| `BACKUP_CRON` | Cron schedule expression | | `0 */6 * * *` |
| `BACKUP_DIR` | Directory to store backups | `/data/backups` | `/backups` |
| `BACKUP_DB` | Database to backup | `$MONGO_INITDB_DATABASE` | `admin` |
| `BACKUP_RETENTION` | Number of backups to keep, defaults to unlimited | | `7` |
| `MONGO_INITDB_DATABASE` | Default database name | | `momentum` |
| `MONGO_INITDB_ROOT_USERNAME` | Root username for mongodump auth | | `root` |
| `MONGO_INITDB_ROOT_PASSWORD` | Root password for mongodump auth | | `secret` |
### Built With