Skip to main content
type: mongodb uses mongodump to back up a single database, all databases, or whatever a connection URI points at.

Example

snapr.yaml

Options

Requirements

  • mongodump must be installed on the snapr host and available in PATH.
  • mongodump ships in the MongoDB Database Tools package, which is distributed separately from the MongoDB server.
  • The configured user needs the backup role, or equivalent read access on the target database plus clusterMonitor for --oplog.

Notes

  • oplog: true requires a replica set (a single-node replica set works) and mongodump only accepts --oplog for full dumps — do not combine it with database.
  • When using uri, embed credentials in the URI string itself; the username and password fields are ignored.
  • extraParams keys are prefixed with --. Use an empty string value for boolean flags.

Host and port

snapr.yaml