[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using wildcards to remove archives
On Thu, 2019-03-14 at 20:21 -0700, Graham Percival wrote:
> Here's my solution, using the --archive-names option (new in
> 1.0.38, 2018-July-15, so longtime users might not know it exists).
> I'm deleting any archive names that match "zeros-100*" because
> they're left-over from some debugging I was doing.
> $ tarsnap --list-archives > archivelist.txt
> $ grep "zeros-100*" archivelist.txt > todelete.txt
> $ more todelete.txt
> $ tarsnap -d --archive-names todelete.txt
Brilliant! Almost exactly what I was looking for and it worked
perfectly. Thanks Graham. Only problem is now you're making less money
from my having previously over-archived.