|
From: Bruce S. <bw...@re...> - 2008-10-27 20:24:59
|
> Thanks Bruce. One of the nice things about rdiff-backup (as I read it)
> is that it is easy to use and settings have 'sensical' [their word not
> mine] defaults. That sounds just what I need - by contrast, the rsync
> options are bewildering! If you are able and willing to send me your
> script (or some version of it) I would be grateful.
# The script is a bit more involved, but the part you need is:
TODAY="$(date +%F)"
YESTERDAY="$(date -d yesterday +%F)"
# You need to set:
# $BACKDIR for your backup directory.
# $server for the server to be backed up,
# $port for the listening ssh port (default=22)
# $dir for the directory on the server to be backed up.
# $dir2 for the destination backup subdirectories, in my case:
# dir2="$(dirname $dir)"
rsync -av --delete-excluded \
--link-dest=$BACKDIR/$YESTERDAY/$server$dir2 \
-e "ssh -p $port -c arcfour" \
$server:$dir \
$BACKDIR/$TODAY/$server$dir2
# I use all those different variables because I backup a lot of
directories individually on each server, in for/while bash loops.
> It would be still be
> good I think if someone could add rdiff-backup to DL 1.3 sometime. I
> would do it myself, but when I glance at section 3 of the documentation
> (development) I realise I would be totally out of my depth. If you don't
> know how to add a python module I sure as heck don't!
I've never added a python module to DL. I doubt it's difficult, but
I've never looked into it before.
- BS
|