Mongodump and upload to S3 using knife
Quite recently I have had to write a knife plugin to take mongo dumps. This post contains the code for the same with a few assumptions in place. Assumptions: 1. CentOS 6.3, mongo db version 2.4.1 2. Chef environment has the db config as below : override_attributes({ database: { user: 'db_user', dump_dir: '/opt/mongodb-dump', auth: true, replica: { id: 'rsTest', mongo_primary:'x.x...