Les is right for 3.x.

For 4.x the files are not stored in the backup tree.  So you'll need to use
BackupPC_ls -R, or you could also grep the XferLOG.nnn.z files (although
the format and what appears or not depends on the XferMethod).

Examples:

BackupPC_ls -R -h HOST -n NUM -s SHARE / | egrep FILENAME

BackupPC_zcat TOPDIR/pc/HOST/XferLOG.NUM.z | egrep FILENAME


For BackupPC_ls you'll need to write a script to iterate over every HOST,
backup NUM and SHARE.  Or you could use wildcards with BackupPC_zcat for
HOST and/or NUM.

I'd rather not build this into the CGI interface, since the running times
could be very long.

Craig

On Wed, Jun 14, 2017 at 10:46 AM, Les Mikesell <lesmikes...@gmail.com>
wrote:

> On Wed, Jun 14, 2017 at 8:59 AM, Bob Katz <bobk...@digido.com> wrote:
> > Is it possible to design a search tool that will look for the occurrence
> of
> > a string in the file name across all shares/backups?
> >
> > It should come up with any versions of the file, last modified date, etc.
> > and what backup it is stored in. Ideally it should allow the user to
> > navigate to the file in the backup and then use the normal restore
> choices
> > to restore it.
> >
> >
> > Wouldn't that be nice? Sometimes we don't know which computer/host might
> > have had the file we're looking for and/or we want to go back to an old
> > version of that file.
> >
>
> You can sort-of accomplish that using 'find' on the command line at
> the top of the backup tree with a pattern that may need to allow for
> the filename changes used in the archive.    But, I agree that having
> it as an option in the web interface would be great - and there it
> could even be aware of what host(s) the user is allowed to access.
>
> --
>    Les Mikesell
>      lesmikes...@gmail.com
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to