← Browse
mongodb-backup
Read/writeDump all MongoDB databases — skips PRIMARY nodes to avoid load
- Path
bash/database/mongodb_backup.sh- Language
- bash
- Category
bash/database- Version
- 2.0.0
- Size
- 4.4 KB
- Last modified
- May 24, 2026, 12:23 AM
Required binaries
mongodumpmongosh
Environment variables
MONGO_HOSTMONGO_PORTMONGO_USERMONGO_PASSWORDBACKUP_DIRBACKUP_EMAIL
Tags
mongodbbackupdatabasecron
Run locally
# from the repo root bash bash/database/mongodb_backup.sh # or via the ops CLI ops run bash/database/mongodb_backup.sh
AI operator plan
idleIf the deployment sets PLATPHORM_PROTECT=1, Vercel Authentication is the protection layer and this field may be left blank.
Run in sandbox
readyRuns in an isolated Vercel Sandbox (Firecracker microVM, 5 min max, no persistent state). Runs require PLATPHORM_API_KEY unless the deployment sets PLATPHORM_PROTECT=1, where Vercel Authentication is the protection layer. The key stays in component state and is never persisted by this UI.
Related scripts
mysqlbackup.shno frontmatterNeeds frontmatter
bash/database/mysqlbackup.sh·bash
mysqlbackup_snapshot.shno frontmatterNeeds frontmatter
bash/database/mysqlbackup_snapshot.sh·bash
mysqlhotbackup.shno frontmatterNeeds frontmatter
bash/database/mysqlhotbackup.sh·bash
pgsqlbackup.shno frontmatterNeeds frontmatter
bash/database/pgsqlbackup.sh·bash