RDIFF

%toc

Examples

check for older Versions:

rdiff-backup -l /backup/folder

make a backup:

rdiff-backup /working/folder/ /backup/folder/

remote host:

rdiff-backup /some/local-dir hostname.net::/whatever/remote-dir

Wen ein Backup failt wird es so auf den letzen Stand zur├╝ckgesetzt:

rdiff-backup --check-destination-dir /backup/dir

Mit exclude und include files:

#!/bin/bash
# Backup script for remote host
HOSTNAME=galaxy
USERNAME=root
DESTINATION=/home/freddy/backup/$HOSTNAME/

rdiff-backup --print-statistics --terminal-verbosity 2 \
    --exclude-globbing-filelist backup.exclude \
    --include-globbing-filelist backup.include \
    --exclude / $USER@$HOSTNAME::/ $DESTINATION

Exclude

/tmp
/mnt
/media
/dev
/sys

Include

/bin
/etc
/home
/lib
/opt
/root
/sbin
/usr
/var

Sudo