Backup Fu plugin
Plugin details
Documentation
ruby script/plugin install http://backup-fu.googlecode.com/svn/backup_fu/
The 'aws-s3' gem is required for backup_fu to function properly. Install with:
sudo gem install aws-s3
Run the following to copy over the example backup_fu.yml config file:
rake backup_fu:setup
This copies the example config file to: config/backup_fu.yml.
Usage
=====
For the list of available rake tasks:
rake -T backup_fu
Backing up your database:
rake backup
Dumping your database:
rake backup_fu:dump
Backing up your static files:
rake backup_fu:static:backup
Backing up both your database + static files:
rake backup_fu:all
Advanced Configuration
======================
See vendor/plugins/backup_fu/config/backup_fu.yml.advanced_example for the list of advanced configuration options.
Advanced options include:
* specify static path(s) that should be backed up -- i.e. backup your entire 'public/static' directory
* change default dump path from RAILS_ROOT/tmp/backup to whatever
* specify fully-qualified 'mysqldump' path
* disable tar/gzipping of database dump
* enable 'nice' with level specification to prevent backup_fu from bogarding your server
Cronjob Installation
====================
Here are some cron job examples.
Backup just the database everyday at 1am
0 1 * * * cd /apps/foo/current; RAILS_ENV=production rake backup > /dev/null
Backup db + static @ 2am every 3 days, log the results to ~/backup.log (verbosity should be turned on if logging results)
0 2 1-31/3 * * cd /u/apps/shanti.railsblog/current; RAILS_ENV=production rake backup_fu:all >> ~/backup.log
Debugging
=========
--- Enabling Verbosity
If you are experiencing any difficulties, the first thing you should do is enable verbosity by dropping this into config/backup_fu.yml:
verbose: true
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: scott, 6 months ago

