alphagov/pp-puppet — pull request #275 by roc (2014-03-10 12:24:21+00:00)
Title: Update backup script to make better use of mongodump

- Previously we were creating empty backups
![](http://25.media.tumblr.com/tumblr_m9v1pxPPaN1qiwf8po1_500.gif "whoops")
- Specify which database to backup (just backdrop for now)
- Write out dump to default dump folder
- `tar gzip` the contents of dump folder and write out in new format that includes db name (e.g. `2014-03-10-backdrop-monday.tar.gz`)
- Clean up afterwards by removing dump dir

*NB:* mongodump documentation is a bit unclear on this **grumble grumble**