0.01
No commit activity in last 3 years
No release in over 3 years
Provides a db:backup rake task designed to work within a Rails app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2

Runtime

~> 3.0.9
 Project Readme

Backup Task¶ ↑

A simple rake task for backing up a Rails 3 application’s database using the Backup gem.

Using¶ ↑

Add the gem to your Gemfile.

gem 'backup-task'

Create a backup configuration file in config/backup.rb, with a trigger called db_backup. See github.com/meskyanichi/backup/wiki/Getting-Started for details. Be sure to move the resulting file to config/backup.rb within your Rails app and to name your trigger ‘db_backup’.

Once you’ve done a ‘bundle install’ you should be able to run the backup task

rake db:backup

This will back up your database according to the configuration in config/backup.rb. It will use the tmp, log, and db directories from your Rails app to avoid conflicting with any other backups happening on the same system.

Fixing¶ ↑

Bug reports, pull requests, etc are welcome at github.com/edebill/backup-task or you can email the author at erik@debill.org.

Copyright © 2011 Erik DeBill. See LICENSE.txt for further details.