Re: Deleting old archives is slow

2016-04-04 Thread Graham Percival
On Tue, Sep 29, 2015 at 05:48:00PM -0700, Colin Percival wrote: > On 09/29/15 11:31, Tom Limoncelli wrote: > > On Mon, Sep 28, 2015 at 10:17 AM, James Turner > > wrote: > >> tarsnap -d -f archivename-2014010101 -f archivename-2014010102 > >> -f archivename-2014010103 > >

Re: Deleting old archives is slow

2015-09-29 Thread Colin Percival
On 09/29/15 11:31, Tom Limoncelli wrote: > On Mon, Sep 28, 2015 at 10:17 AM, James Turner 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.

Re: Deleting old archives is slow

2015-09-29 Thread Tom Limoncelli
On Mon, Sep 28, 2015 at 10:17 AM, James Turner 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. Also, I noticed that it fails the first time it

Re: Deleting old archives is slow

2015-09-29 Thread Daniel Staal
--As of September 29, 2015 3:06:39 PM -0400, Garance AE Drosehn is alleged to have said: On Sep 29, 2015, at 2:31 PM, Tom Limoncelli wrote: On Mon, Sep 28, 2015 at 10:17 AM, James Turner wrote: tarsnap -d -f archivename-2014010101 -f

Re: Deleting old archives is slow

2015-09-29 Thread Tom Limoncelli
Thanks, Garance. That's all good advice. A similar thing that I recommend to new sysadmins is that their scripts halt on some threshold. For example, if the number of archives to delete is more than something reasonable (in my case... 10) then halt or ask for confirmation. In this case I'm

Deleting old archives is slow

2015-09-28 Thread Tom Limoncelli
Every couple months I expire a bunch of old archives with commands like... tarsnap -d -f archivename-2014010101 tarsnap -d -f archivename-2014010102 tarsnap -d -f archivename-2014010103 ... Each deletion takes a minute or so. Is there any way to speed this up? I'd be willing to forego the

Re: Deleting old archives is slow

2015-09-28 Thread James Turner
On Mon, Sep 28, 2015 at 10:14:38AM -0400, Tom Limoncelli wrote: > Every couple months I expire a bunch of old archives with commands like... > > tarsnap -d -f archivename-2014010101 > tarsnap -d -f archivename-2014010102 > tarsnap -d -f archivename-2014010103 > ... > > Each deletion takes a