On 01/23/2013 02:15:06 AM, Voelker, Bernhard wrote:
> Kevin Korb wrote:
> > On 01/22/13 18:12, Kevin Korb wrote:
> > > That is the old way that pre-dates --link-dest.  Instead of cp -
> al
> 
> > > daily.02 daily.01 you can do a mkdir daily.01 then an rsync ... 
> > > --link-dest=../daily.02 daily.01

> I'm using a similar script on some desktop PCs. The problem is,
> that - due to the fact that it's a desktop PC - the backup can
> be killed during a shutdown ... leaving the last backup uncomplete.
> That's not a problem per se, but with the next backup, the missing
> files are copied freshly from the source and thus exhausting backup
> space.
> Therefore, the script I'm using rotates the snapshot *after* a
> successful run of rsync.

The solution is to use --link-dest twice, or more, to older
versions of the backup.  If the file is not in the most recent
backup then the older version(s) are hardlinked to.

Regards,

Karl <[email protected]>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to