A fixed fork of mongodb-backup for MongoDB backup operations. Version 1.7.2 patches a breaking change where MongoDB deprecated the snapshot() method, replacing it with $snapshot query operator. Provides programmatic backup of MongoDB databases to disk or tar streams, supporting BSON or JSON output, collection filtering, query limiting, and parallel collection scanning. The original package is no longer maintained by its author, hex7c0, leading to this community fix. Release cadence is sporadic, with no recent updates beyond the snapshot fix. Key differentiator: it directly addresses the snapshot deprecation without requiring external mongodump.
npm install mongodb-backup-fixedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to perform a MongoDB backup using JSON format, specifying collections and a callback.
Use mongodb-backup-fixed instead of the original mongodb-backup for MongoDB >=3.2.
Switch to mongodb-backup-fixed (npm install mongodb-backup-fixed).
Update to mongodb-backup-fixed >=1.7.0 or use a different bson version.
Use var backup = require('mongodb-backup'); not const { backup } = require(...);Use mongodb-backup-fixed which uses $snapshot query syntax.
Run npm install mongodb-backup-fixed and require('mongodb-backup-fixed').No dependency data recorded yet.