{"_id":"54fda39021538c21006c49ae","category":{"_id":"54fda38f21538c21006c49a8","version":"54fda38e21538c21006c49a6","__v":2,"pages":["54fda39021538c21006c49ac","54fda39021538c21006c49ad","54fda39021538c21006c49ae","54fda39021538c21006c49af","554cb5c01f5dd20d008a7bdd"],"project":"545e249c7ca5470800b3a1b2","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-08T16:56:01.271Z","from_sync":false,"order":1,"slug":"commands","title":"Commands"},"user":"545e246f7ca5470800b3a1b1","githubsync":"","project":"545e249c7ca5470800b3a1b2","version":{"_id":"54fda38e21538c21006c49a6","__v":3,"forked_from":"54eb4535615ffc19003059f0","project":"545e249c7ca5470800b3a1b2","createdAt":"2015-03-09T13:43:42.927Z","releaseDate":"2015-03-09T13:43:42.927Z","categories":["54fda38f21538c21006c49a7","54fda38f21538c21006c49a8","54fda38f21538c21006c49a9","54fda38f21538c21006c49aa","54fda38f21538c21006c49ab","54fda3d347f93619001d2ae2","54fea8975c4ab10d00ef4279"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"0.5.0","version":"0.5.0"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-11-08T17:29:00.322Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"never","params":[],"url":""},"isReference":false,"order":2,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"mongodb_dump\"\n}\n[/block]\nDumps a MongoDB database.\n\n## Typical Usage\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"host \\\"db-host\\\", hostname: \\\"db.example.com\\\"\\n\\njob \\\"db-backup\\\" do\\n  resource \\\"database\\\", name: \\\"my-database\\\", host: \\\"db-host\\\"\\n  remotely as: \\\"user\\\" do\\n    mongodb_dump user: \\\"mongodb-user\\\", password: \\\"secret\\\"\\n  end\\nend\",\n      \"language\": \"ruby\",\n      \"name\": \"Sheepfile\"\n    }\n  ]\n}\n[/block]\n## Input resource\n\nResources of type `database` are allowed.\n\n## Output resource\n\nA resource of type `directory`.\n\n## Command options\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Option\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"`user`\",\n    \"1-0\": \"`password`\",\n    \"0-1\": \"The MongoDB account to use.\",\n    \"1-1\": \"The password to provide to MongoDB.\",\n    \"0-2\": \"Required: no\",\n    \"1-2\": \"Required: no\"\n  },\n  \"cols\": 3,\n  \"rows\": 2\n}\n[/block]","excerpt":"Create MongoDB backup artifacts","slug":"mongodb","type":"basic","title":"MongoDB"}

MongoDB

Create MongoDB backup artifacts

[block:api-header] { "type": "basic", "title": "mongodb_dump" } [/block] Dumps a MongoDB database. ## Typical Usage [block:code] { "codes": [ { "code": "host \"db-host\", hostname: \"db.example.com\"\n\njob \"db-backup\" do\n resource \"database\", name: \"my-database\", host: \"db-host\"\n remotely as: \"user\" do\n mongodb_dump user: \"mongodb-user\", password: \"secret\"\n end\nend", "language": "ruby", "name": "Sheepfile" } ] } [/block] ## Input resource Resources of type `database` are allowed. ## Output resource A resource of type `directory`. ## Command options [block:parameters] { "data": { "h-0": "Option", "h-1": "Description", "0-0": "`user`", "1-0": "`password`", "0-1": "The MongoDB account to use.", "1-1": "The password to provide to MongoDB.", "0-2": "Required: no", "1-2": "Required: no" }, "cols": 3, "rows": 2 } [/block]