MongoDB
type: mongodb — uses mongodump to back up a single database, all databases, or via a connection URI.
Prerequisites
mongodumpmust be installed on the snapr host and available inPATH.mongodumpis shipped in the MongoDB Database Tools package, which is distributed separately from the MongoDB server: https://www.mongodb.com/try/download/database-tools.- The configured user needs
backuprole (or equivalent read access on the target database, plusclusterMonitorfor--oplog).
Fields
Example — URI
Example — host/port
Notes
oplog: truerequires a replica set (or single-node replica set) and is incompatible withallDatabases.- When using
uri, embed credentials in the URI string itself; theusername/passwordfields are ignored. extraParamskeys are prefixed with--. Use an empty string value for boolean flags.