[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting old archives is slow
On 09/29/15 11:31, Tom Limoncelli wrote:
> On Mon, Sep 28, 2015 at 10:17 AM, James Turner <james@calminferno.net> wrote:
>> tarsnap -d -f archivename-2014010101 -f archivename-2014010102
>> -f archivename-2014010103
>
> It is good to know that this works. However it doesn't seem much
> faster.
Whether it's faster depends on the amount of shared data between the archives.
> Also, I noticed that it fails the first time it hits a
> non-existent archive, so restarting after a failure requires a binary
> search or just reverting to doing them one at a time.
>
> tarsnap: Archive does not exist: archivename-2014010103
> tarsnap: Error deleting archive
Hmm, I never thought of that. Maybe we should have a --keep-going option?
https://github.com/Tarsnap/tarsnap/issues/77
As a workaround you could run `tarsnap --list-archives` and use that to filter
your deletion list.
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid