type: mongodb uses mongodump to back up a single database, all databases, or whatever a connection URI points at.
Example
snapr.yaml
Options
Requirements
mongodumpmust be installed on the snapr host and available inPATH.mongodumpships in the MongoDB Database Tools package, which is distributed separately from the MongoDB server.- The configured user needs the
backuprole, or equivalent read access on the target database plusclusterMonitorfor--oplog.
Notes
oplog: truerequires a replica set (a single-node replica set works) andmongodumponly accepts--oplogfor full dumps — do not combine it withdatabase.- When using
uri, embed credentials in the URI string itself; theusernameandpasswordfields are ignored. extraParamskeys are prefixed with--. Use an empty string value for boolean flags.
Host and port
snapr.yaml