BackupPC-users

Re: [BackupPC-users] Feature request: Restore Search across all shares/backups

2017-06-15 22:53:26
Subject: Re: [BackupPC-users] Feature request: Restore Search across all shares/backups
From: Craig Barratt via BackupPC-users <backuppc-users AT lists.sourceforge DOT net>
To: bobkatz AT dugido DOT com, "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 15 Jun 2017 19:52:32 -0700
[backuppc@localhost bin]$ ./BackupPC_zcat /Bobby/pc/*/XferLOG.*.z | egrep *headphone*

The output of this command is instantaneous! So the search from the CLI
is very powerful and VERY fast. The problem is that the results do not
tell which backup has the resulting file, the backup number or the
modification date.

BackupPC_zcat behaves like cat, simply concatenating multiple arguments.  You should write a short shell script that iterates through each file, eg in bash:

for file in /Bobby/pc/*/XferLOG.*.z ; do echo $file ; BackupPC_zcat $file | egrep "*headphone*" ; done

As well as the last modified date?

Typically mtimes don't appear in the XferLOG file, so you'll need to use the BackupPC_ls approach instead (which will produce an accurate list of files, whereas the XferLOG file might not show unchanged files depending on the Xfer method and log level etc).

Craig 

------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

ADSM.ORG Privacy and Data Security by KimLaw, PLLC