Re: dar_manager enhancement?
Richard Gray <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <CAJeHhNOKcM3sF9s8H0NZM-Uno1yg5mZ36mEHQ74Aua2LGneiCw@mail.gmail.com> |
Thanks, Denis, most helpful as always. I'll try your suggestions the next time such a lost file problem crops up. Cheers, Richard. On Sat, 17 Apr 2021 at 20:08, Denis Corbin <[email protected]> wrote: > On 17/04/2021 13:14, Richard Gray wrote: > > Hi Denis, > > Hey Richard, > > > > > Firstly, I should note that this is not a priority request, but it's a > > feature that I would find useful from time to time. > > > > There are occasions when I, or a another user, deletes a file, or > > perhaps a directory, which needs to be recovered later on. I have used > > the dar_manager -f directive to find the missing data, but this is of > > little use when the *exact* path and/or filename is not known. My > > question is: is there a way of searching the catalogue using, say, a > > regular expression? Could such a feature be added, or maybe there is a > > way of doing this already that I'm unaware of? > > You can use all filtering features (-P, -g, -X, -I, ...) which can each > receive a glob expression or if preceded by -ar a regular expression > with the listing operation of dar: > > dar -l backup -I "*.txt" > dar -l backup -ar -I '.*\.txt$' > > For dar_manager you are correct, there is no such way to search the > database, your idea is interesting and I add it to todo list. > > In the meanwhile, you can still list the whole database content to a > file and apply egrep/grep to it with regular expression. > > dar_manager -B base.dmd -u 0 > listing.txt > egrep "regex" listing.txt > > > > > Many thanks in anticipation, > > > > Richard. > > > > > > Cheers, > Denis > >