[Borgbackup] Separating repos
Ed Blackman
ed at edgewood.to
Tue Feb 5 11:06:53 EST 2019
On Mon, Feb 04, 2019 at 07:20:12PM -0800, David Gasaway wrote:
> On Mon, Feb 4, 2019 at 5:11 PM Ed Blackman <ed at edgewood.to> wrote:
> > I thought about that, but the problem is that the "keep" purges won't
> > purge anything if you're not adding anything. The last X
> > daily/weekly/monthly backups keep being the last X if you're not adding
> > any new ones. I did think about adding a flag (--keep-absolute-time ??
> > naming is hard) that would change the sense of --keep-daily etc such
> > that --keep-absolute-time --keep-daily 7 would purge any daily backups
> > older than 7 days from "now" even if that would leave less than 7.
>
> This option already exists, see --keep-within.
That would work for the simple example above, but if I have a prune that
keeps, eg, the last 7 dailies, the last 4 weeklies, and the last 3
monthlies, there's no way I can think of to *gradually* prune those
backups. --keep-within 3m would keep them all until the end of the 3
months, then drop them all at once.
--
Ed Blackman
More information about the Borgbackup
mailing list