Plugin that provides the backup command for the heroku gem. This allows you to automate the process of backing up your database to S3 using the pgbackups addon.
$ heroku plugins:install git@github.com:wolfpakz/heroku_backup.git
This plugin requires two environment variables:
S3_KEY S3_SECRET
You can also still use the old style - namely, using config/s3.yml (the S3 config file used with the paperclip gem).
The Backup plugin uses the pgbackups plugin to capture a backup of your database. If you do not have the addon installed, pgbackups:basic will automatically be installed the first time you run Backup.
Note: All backups are captured with the –expire option, so your oldest backup will be overriden once you’ve reached your backup limit.
From your project’s root directory:
$ heroku backup
That’ll make the magic happen.
-
Fork the project.
-
Make your feature addition or bug fix.
-
Send me a pull request. Bonus points for topic branches.
-
Mauricio Gomes
-
Nathaniel Jones (nthj)
-
Tom Brown (herestomwiththeweather)
Special thanks goes out to hone for explaining the heroku plugin API to me, and for letting me gank the layout of his README.
Copyright © 2010 Matt Buck. See LICENSE for details.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.