Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alphasights/filbert
A utility to download backups of heroku followers
https://github.com/alphasights/filbert
Last synced: 5 days ago
JSON representation
A utility to download backups of heroku followers
- Host: GitHub
- URL: https://github.com/alphasights/filbert
- Owner: alphasights
- License: mit
- Created: 2012-10-29T12:03:43.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-18T16:08:56.000Z (about 10 years ago)
- Last Synced: 2024-04-14T07:25:16.427Z (7 months ago)
- Language: Ruby
- Size: 332 KB
- Stars: 1
- Watchers: 60
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Filbert
Filbert downloads a backup of a follower database for a given heroku application, stores it in `~/.heroku_backups`, and cleans up the backup directory (see cleanup).
## Installation
gem install filbert
And reload your path (e.g. `rbenv rehash`). Then run
heroku login
to get access to the app you are planning to backup.
## Usage
### Backups
Note: the backup task invokes cleanup task automatically.
filbert backup --app your-heroku-appname
You can add it as a cron task if you want
crontab -e
# Then put this in there to run every 15 minutes.
# 'man 5 crontab' for more examples
*/15 * * * * bash -lc "filbert backup --app heroku-app-name"### Cleanup
You can invoke the cleanup task separately by running:
filbert cleanup
Cleanup deletes backup files keeping:
* All files that are not older than 12 hours old
* One monthly copy of files older than 6 months
* One weekly copy of files older than 2 months
* One daily copy of files older than 2 days
* One hourly copy of files older than 6 hoursYou can see what files would be deleted by passing in `-p`
filbert cleanup --pretend
# => Would delete:
# => ~/.heroku_backups/2013-01-29.dump
# => ~/.heroku_backups/2013-01-28.dump
# => ~/.heroku_backups/2013-01-27.dump## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request