From: Nix on
On 7 Jun 2010, Theo Markettos spake thusly:

> Richard Kettlewell <rjk(a)greenend.org.uk> wrote:
>> I do backups to external drives too; however rather than monitoring
>> timestamps to construct incrementals, I used rsync with the --link-dest
>> option, so my backups are complete filesystem snapshots, with unchanged
>> files connected as hard links.
>
> There's a tool 'rsnapshot' which calls rsync to do this in a slightly more
> user-friendly way.

There's also rdiff-backup, which gives you network-transparency and dated
generational backups. I swear by (and occasionally at) it.

It's a hell of a lot easier to script than dar was back in the days when
I was backing up to CD-R... my total rdiff-backup script is (with a few
private exclusions removed; the exclusion of /home and --include on the
command line below is to allow for the extremely strange way I mount my
home directories and is unlikely to be useful to anyone else):

,----
| #!/bin/sh
|
| EXCLUSIONS=/tmp/backup-exclusions.$$
|
| exclude_filesystems()
| {
| while [[ $# -gt 0 ]]; do
| awk -v F=$1 '$3 ~ "^"F"$" { print $2; }' /proc/mounts >> $EXCLUSIONS
| shift
| done
| }
|
| cat > $EXCLUSIONS <<'EOF'
| /mnt
| /var/cache
| /var/account
| /var/run
| /var/log
| /var/spool/core
| /usr/local/tmp
| /home
| + /var/spool/news/articles/esperi
| /var/spool/news/articles
| EOF
|
| exclude_filesystems tmpfs nfs usbfs configfs mqueue debugfs sysfs proc
| rdiff-backup --backup-mode --print-statistics --preserve-numerical-ids \
| --ssh-no-compression --include /home/.spindle.srvr.nix \
| --exclude-globbing-filelist $EXCLUSIONS \
| / backup(a)spindle::/mnt/backup/spindle
|
`----
First  |  Prev  | 
Pages: 1 2 3 4 5
Prev: BIOS 'Hanging'
Next: Text encryption