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

OptionDescription
userThe MongoDB account to use.Required: no
passwordThe password to provide to MongoDB.Required: no