Installation

Example backup Script for local files

#!/bin/sh
RDIFF=/usr/bin/rdiff-backup
RDIFFDIR=/media/LaCie/rdiff-backup/ubuntu-server

if cd $RDIFFDIR; then
  # backup /etc
  $RDIFF /etc $RDIFFDIR/etc

  # backup /var/lib
  $RDIFF --include '/var/lib/trac' --include '/var/lib/instiki' --exclude '**' /var/lib $RDIFFDIR/var/lib

  # /usr/local
  $RDIFF /usr/local $RDIFFDIR/usr/local

  # backup home
  $RDIFF --exclude '/home/lost+found' --exclude '/home/Shared/non-backup' /home $RDIFFDIR/home

  # remove old increments
  $RDIFF --remove-older-than 4W $RDIFFDIR/etc
  $RDIFF --remove-older-than 4W $RDIFFDIR/home
  $RDIFF --remove-older-than 1W $RDIFFDIR/var/lib
  $RDIFF --remove-older-than 1W $RDIFFDIR/usr/local
fi

Install web interface

$ /etc/init.d/rdiff-web start
/etc/init.d/rdiff-web start