Friday, February 4, 2011

Rsync

Decided I'd have a go at using rsync to do my backups. I played around with a few switches, but settled upon:
    -rltpDiv

I tried
    -aiv
but this attempts to preserve owner/group of files. This is no good for me, as the NSLU2 changes these attributes. I'm not bothered about this at the moment, I'm just interested in getting a backup to run which does transfer 10s of GB each time when all that's changed is file ownership.

So the full command to back up my home directory is:
    rsync -rltpiv /home/barry /media/nslu2/backup/rsync_home_backup --exclude '.gvfs' --exclude 'Dropbox'
where
    -r means recursive
    -l means copy symlinks as symlinks
    -t means preserve modification times
    -p means preserve permissions
    -i means display differences between source and destination
    -v means verbose output