db_backups

A Command Line Interface to DB backups (using backup gem) stored in Rackspace CloudFiles

Designed for internal usage for our rails apps and their mysql backups, but could be driven in a more generic direction if anyone external was interested.

Setup:

Locomote only:

git clone [email protected]:locomote/config.git ~/.loco_config && ln -s ~/.loco_config/fogrc ~/.fog

or for everyone else:

echo "default:\n  rackspace_username: ${RACKSPACE_USERNAME}\n  rackspace_api_key: ${RACKSPACE_API_KEY}" > ~/.fog

Usage:

db_backups index
db_backups show
db_backups get
db_backups load
db_backups -euat index  # NB. defaults to production environment, but can be set to any in the config/database.yml