BackupPC-users

Re: [BackupPC-users] Search for File

2011-09-28 11:32:51
Subject: Re: [BackupPC-users] Search for File
From: Timothy J Massey <tmassey AT obscorp DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 28 Sep 2011 11:23:17 -0400
Arnold Krille <arnold AT arnoldarts DOT de> wrote on 09/28/2011 11:20:57 AM:

> > I'm sure someone with more shell-fu will give you a much better command
> > line (and I look forward to learning something!).
>
> Here you are:
>
> find <path_where_to_start> -iname <string_to_search>


Now I remember why I stick with the grep form:  remembering the different syntax of the find command.  As a *not* old-time UNIX guru (but a long-time but not full-time *Linux* user), I think that any parameter of multiple letters (like -name) should have two dashes!  :)  I am often frustrated by the unusual find command syntax, so I simply stick with grep, which has many more uses beyond finding files.

> Using find you will realize that its rather slow and has your disk rattling
> away. Better to use the indexing services, for example locate:
>
> locate <string_to_search>


Yeah, that's great if you update the locate database (as you mention).  On a backup server, with millions of files and lots of work to do pretty much around the clock?  That's one of the first things I disable!  So no locate.

Timothy J. Massey
 
Out of the Box Solutions, Inc.
Creative IT Solutions Made Simple!

http://www.OutOfTheBoxSolutions.com
tmassey AT obscorp DOT com
      22108 Harper Ave.
St. Clair Shores, MI 48080
Office: (800)750-4OBS (4627)
Cell: (586)945-8796

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
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/