MongoDB
Create MongoDB backup artifacts
mongodb_dump
Dumps a MongoDB database.
Typical Usage
host "db-host", hostname: "db.example.com"
job "db-backup" do
resource "database", name: "my-database", host: "db-host"
remotely as: "user" do
mongodb_dump user: "mongodb-user", password: "secret"
end
end
Input resource
Resources of type database
are allowed.
Output resource
A resource of type directory
.
Command options
Option | Description | |
---|---|---|
user | The MongoDB account to use. | Required: no |
password | The password to provide to MongoDB. | Required: no |
Updated less than a minute ago