herakles

herakles.sh
This is a script which uses Rsync over SSH to make backups to another server. The aim is that there had to be almost nothing being installed on the backupserver (dst-server), except for the availability of a SSH-server and a user. There also had to be some keys for SSH-authentication. The src-server is gonna take care of all the jobs that has to be done on the dst-server, so if the src-server fails, there will be an up-2-date snapshot on the dst-server.

lvm-snapshot.sh
With this script you can create snapshots of your data using LVM snapshots :)

<obsolete> snapshot-retention.sh
With snapshot-retention.sh you can create a tar-ball from the snapshots. You can define how many tar-balls must be saved. If you define to run this script every 24 hours and the retention is set to 7, the retention period of data will be 7x24h (1 week). If you define it to run the script every 12 hours with a retention of 10, the retention period of data is set to 10x24h (5 days)

Some upcomming features:

  • Per backup-entry exclude options by using semi-colons;
  • User specified backups, by using the .herakles-backup in their $home
  • Building a tar-file and retention care on the dst-server
  • An installation script for running on the src-server to take care of all the settings

Download herakles.sh, lvm-snapshot.sh and snapshot-retention.sh.