Project

kellerkind

0.0
No commit activity in last 3 years
No release in over 3 years
Dumps mongodb databases and archives them.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3.5
~> 1.8.4
~> 3.12
~> 2.13.0

Runtime

~> 0.5.4
~> 0.5.5
 Project Readme

kellerkind

Build Status Gem Version

Kellerkind is a Ruby application that runs several backup actions.

Type Status Cli flag
MongoDB Dumps Done --type mongodb
(Log)File Backup Done --type files

It should be used with its cli but it's also possible to use it with its API.

Usage

Install it as gem:

gem install kellerkind

Run from the command line:

kellerkind --help

to the arguments you could specify.

Example

Dumping a Mongo database and compressing the dump

kellerkind --type mongodb --mongo-db appDatabase --mongo-host linus.mongohq.com --mongo-port 10010 --mongo-username myUser --mongo-password myCrypticPassword --compress true --out $HOME/tmp/mongodump

Dumps a database hosted at MongoHQ to $HOME/tmp/mongodump and create a tar file of this dump.

Backing up several log files

kellerkind --type log --files $HOME/rails/my_app/log/production.log $HOME/logs/unicorn.stdout.log --out $HOME/tmp/log_backups --verbose true

Backups and compresses $HOME/rails/my_app/log/production.log and $HOME/logs/unicorn.stdout.log to $HOME/tmp/log_backups, deletes the original files and recreates them as blank files.

Tests

Run

rspec spec/

Contributing to kellerkind

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright (c) 2013 Daniel Schmidt. See LICENSE.txt for further details.