rsync incremental backup

lewis butler lbutler+rsync at covisp.net
Mon Feb 23 15:04:50 GMT 2009


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




More information about the rsync mailing list