Sha256: 030294a08622b40566b96eaa35e753ed197a299e51d2562fb0447b0639d0b17e
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
# MongoDbUtils ## Warning - not safe for production use - undergoing development! A little gem that simplifies backing up and copying your mongo dbs. ![Sample](https://github.com/edeustace/mongo-db-utils/raw/master/images/sample.png) It saves your database urls so any task is just a few clicks. * backup a database locally * backup a database and deploy it to Amazon S3 * copy a database from one server to another (whilst backing up locally the target db if it exists) ## Installation You need to have *mongodump* and *mongorestore* on your path. gem install 'mongo-db-utils' And then execute: $ mongo-db-utils console ## Limitatons Only works on ruby 1.9.3 (to_yaml is throwing an error in earlier versions) ## Usage Once you launch the console it'll provide you with a set of options - pretty self explanatory. When it does backups it stores them in ````~/.mongo-db-utils/backups/````. The naming convention is ````${server}_${port}/${database_name}/${timestamp}/db```` ## Testing bundle exec rspec spec #cucumber can't handle interactive CLIs so need to wait on this. #bundle exec cucumber features ## Building source #run console bundle exec bin/mongo-db-utils console #install the gem locally rake build gem install pkg/mongo-db-utils.gem
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongo-db-utils-0.0.7 | README.md |
mongo-db-utils-0.0.6 | README.md |