rsync incremental backup

lewis butler
Mon, 23 Feb 2009 15:04:58 -0000

On 23-Feb-2009, at 01:27, Louis-David Mitterrand wrote:
> Presently I have the latest full backup in a 'current' directory
and
> 30
> day incrementals in 'YYYY-MM-DD' format directories. Without
changing
> that directory structure I'd like the 'YYYY-DD-MM' directories
to
> contain the full system hardlinked (when applicable) to 'current'.
>
> What rsync command-line options could provide me with this?

I use:

/usr/local/bin/rsync -aCHh --delete-after --delete-excluded \
     --exclude="/backup/" --exclude-from=/var/.rexcludes \
     --link-dest="${BAKLOC}.1" / ${BAKLOC}.0

where $BAKLOC has been defined.  You could certainly modify it to do
--link-dest="${YDAY} / current