The goal with bkr is to create a simple and easy to use backup utility that utilizes cloud services as backup storage.
bkr only supports S3 as target service at this time. You need to have an AWS account and a S3 bucket for your backups. Set your AWS account credentials and the folder to backup in the bkr.conf file. bkr uploads files from the wanted folders to the bucket. Next time bkr runs it checks for new or changed files and uploads these. bkr does not save copies of changed files, hence it’s rather a synchronization then a backup tool at the moment.
bkr is in a very early development stage. Currently it:
- is rather a synchronization then a backup tool (history/versions are not supported, wanted files are uploaded and when a local file changes the new version is uploaded overwriting the existing online copy)
- only supports Amazon S3 as backup target service
- no restore functionality (manual restores are required)
- very little error handling
- no scheduling (cron or similar is required)
Future versions might break backwards compatibility.
The easiest installation method is:
- Make sure to have Haskell platform installed (http://hackage.haskell.org/platform/). HP 2011.4.0.0 and 2012.2.0.0 is supported at the moment.
- From a command line:
- Run: $ cabal update
- Run: $ cabal install bkr
All configuration is made in a single configuration file, bkr looks for a configuration file in the following locations:
- The first command line argument ($ bkr /path/to/bkr.conf)
- In the same folder as the bkr executable (./bkr.conf)
- In your home folder named .bkr.conf ($HOME/.bkr.conf)
The easiest way to set up bkr is:
- After installation run bkr ($ bkr).
- When executed the first time it will create a example configuration file, .bkr.conf, in your home folder ($HOME/.bkr.conf).
- Edit the $HOME/.bkr.conf file with your favorite text editor. It should be documented well enough for you to make needed configuration changes, if not please file a bug report.
- Run bkr ($ bkr)
- Set up bkr to run regularly using, for instance, cron.
This is a fully functioning release but should be seen as a proof-of-concept release. Only basic functionality is implemented, documentation is rather rough, almost no error handling, synchronization rather then backup, no restore, only POSIX, only S3, among other.
Developed and tested on OS X 10.7 (and HP 2011.4.0.0) but should run fine on all POSIX compliant systems. Windows is currently not supported.
Reserved for bug fixes for the 0.1 release.
- Feature: HP 2012.2.0.0 (GHC 7.4) support.
- Bug fix: if bkr.conf could not be found bkr failed to create $HOME/.bkr.conf.
- Bug fix: if the log file location was configured but the log file was missing bkr crashed.
- Bug fix: missing / after tmp folder location when creating temporal bkrmeta file.
- Windows support.
- Better documentation.
- Better error handling:
- Detect wrong or not configured aws access key id and secret access key, ask and configure.
- Detect wrong or not configured S3 bucket name, ask and create.
- Detect not configured folders to backup.
- Detect not existing folders to backup and warn.
- Handle gracefully if not permitted to write .bkrmeta file.
- Activate S3 upload MD5 digest