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

Re: How to find a deleted file amongst many archives



On Thu, 5 Nov 2015 13:01:18 -0500, Quinn Comendant wrote:
> Is there a way to search all archives to find "the most recent file that 
> exist(s|ed) at the specified path"?

Just to avoid anyone giving the obvious answer: I suppose I can always wrap `while` loops around `tarsnap --list-archives` and `tarsnap -t -f $ARCHIVENAME` with a combination of `grep $FILENAME` and `tail -1`.

Is that the best strategy, or is there a built-in command that does this more elegantly (there don't appear to be)? 

Quinn