[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Removing intermediate snapshot

From: Jacob Anawalt
Subject: Re: [rdiff-backup-users] Removing intermediate snapshot
Date: Mon, 7 Feb 2011 09:55:03 -0700

> On 04/02/2011 12:00, Alex Schuster wrote:
> For my
> /home directory, the last backup is most important of course, but I would
> also like to be able to restore the very first backup I did make.  All other
> backups in between are not that important, and I would like to remove some.

You could restore that fist version to a different location, back it
up on a long term storage media, then use --remove-older-than. You
would of course no longer use rdiff-backup to restore that first

> But rdiff-backup only has a --remove-older-than<date>  option, not something
> like --remove-between<date1>  <date2>. Is there some workaround,

rdiff-backups uses reverse diffs. The most recent file is complete.
Historical versions are a chain of dependent reverse diffs. Removing
interim backups yet keeping an older version would require restoring
the versions on either side of date1 and date2 and repacking a reverse
diff of that change and rewriting all the metadata history referring
to file during the in between range to pretend it didn't exist or
didn't change. Otherwise the versions before the older date may be

> or do I want the impossible?

Seems tricky and may have unintended consequences. (Insert
back-to-the-future warning of choice here :) ) The subversion project
skirts the issue by requiring you to dump, filter, and re-import. It
isn't something I would want to tackle even though I've thought it
would be nice once or twice.

> I'm expecially concerned about one backup that has very much data in it that
> was only temporary and is no longer needed. I read I could remove those
> specific files if I am careful,


Also tricky. Best of luck,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]