Starting from the rsync-backup of Andreas Solberg (http://code.google.com/u/andreassolberg/) I wanted to practise my Perl capabilties by writing a script which fits my backup needs in a better way as the solutions I have found so far.
The perlscript runs via command line or by cron/launchd.
All settings are done in one "rather simple" config file. One can make backups as rsync supports. I have mainly foccused on the increment feature in order to keep track of my daily changing work files. Remote folders can be backed up locally and vice versa of course local to local works as well.
The key feature is the schedule table where you put setup tags defining the backup intervall and a time window of the day when it should try to run the backup.
Try to run? Yes. I was tired of messing around with manually starting a backup to my external USB-Harddisk after the backup cron job has failed to start because of the not mounted HDD.
Ok. But how about anacron? Yes but I do not want a backup starting the first time my harddisk is mounted ... So I rather let the script cron-running hourly (or less) and let it deciding itself if it is appropriate to start.
In addition adding/deleting cron jobs by editing the crontab file is always a source of errors ;-)
May be someone has a similiar opinion how to backup a laptop.
In case you will give it a try be carefully - there are "mv" and "rm" commands in the code - you can guess what can go wrong with such (potentially) dangerous commands. Even so my home folder is still alive you should be warned. Use it at your on risk!
Ohloh computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has code locations but that location contains no recognizable source code for Ohloh to analyze.