Safe restores
Nothing is overwritten unless you ask. Rename on restore, dry runs, and every collection type: capped, clustered, time series, views, validators, collations and every index type.

npx mongoshield init # writes mongoshield.config.ts and generates an encryption keynpx mongoshield backupnpx mongoshield restore latest --rename 'app.*=app_restored.*'MongoShield is a TypeScript library and CLI that uses only the official MongoDB driver. It runs wherever Node.js runs: a laptop, a container, a Kubernetes CronJob, GitHub Actions, AWS Lambda or Vercel.
A backup is a directory of ordinary files: mongodump's layout and BSON, zstd or gzip compression, and age encryption. If MongoShield disappeared tomorrow, you could still restore with off-the-shelf tools:
age -d -i recovery.key users.bson.zst.age | zstd -d > users.bson && mongorestore …The backup format is a public, versioned specification.
Safe restores
Nothing is overwritten unless you ask. Rename on restore, dry runs, and every collection type: capped, clustered, time series, views, validators, collations and every index type.
Encrypted with keys you hold
Per-file age encryption to public keys, cloud KMS keys or a passphrase. The machine taking backups does not need the secret key.
Verifiable
Every file's SHA-256 is in the manifest. Verify without a key, decrypt and parse
everything with --deep, or run a restore drill that measures your RTO.
Consistent
On replica sets and sharded clusters, backups converge to a single moment using
change streams, the equivalent of mongodump --oplog.
Point-in-time recovery
A change journal records every change between backups, so a restore can stop at any second.
Retention with safety floors
Keep the last N plus hourly, daily, weekly, monthly and yearly backups. The newest and held backups are never deleted.
Runs unattended
Cron scheduling, locks, retries, a guard against suspicious backups, notifications and heartbeats.
Your storage
Local disk, S3 and compatible services, Google Cloud Storage, Azure Blob Storage or SFTP, with optional write-once retention.
Flat memory
Everything streams. Memory use does not grow with the size of the database.
MongoShield is MIT licensed and is not affiliated with, endorsed by or sponsored by MongoDB, Inc. MongoDB is a trademark of MongoDB, Inc.Privacy policy