incremental_backup
NOTE: This repo is no longer maintained
Creates incremental backups via ssh and rsync.
Description
incremental_backup is a tool to easily create incremental backups to a local directory or to a remote server using ssh and rsync.
The backup is by default performed every hour of a determined set of files and folders. The backup is easily restorable from every hour in the last day, every day in the last week, every week in the last month, every month in the past three months and every year forever. These default settings can be changed to suit your needs.
Dependencies
- Ruby (tested on 1.9.3)
- ssh
- rsync
- trickle (only needed if using throttling)
Installation
$ gem install incremental_backup
Usage
The recommended usage is to create a small ruby application with a gemfile. Take a look at the example.
Cron
It's recommended to setup a cron job to handle scheduling of the backup.
The cron job can be triggered as often as you would like to, the script still only at most perform one backup per hour. This is useful if your computer is usually not online for more than an hour.
Alternatives
- meskyanichi/backup - An all-in-one solution for backups of files and databases. Pretty awesome!
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request