Grepping though a disk

Warren Block wblock at wonkity.com
Mon Mar 4 13:41:35 UTC 2013


On Mon, 4 Mar 2013, Polytropon wrote:

> The file size of the file I'm searching for is less than 10 kB.
> It's a relatively small text file which got some subsequent
> additions in the last days, but hasn't been part of the backup
> job yet.

There have been some good suggestions.  I would use a large buffer with 
dd, say 1M or more, both for speed and to reduce the chance of hitting 
only part of the search string.

For the future, look at sysutils/rsnapshot.  Easy to set up, 
space-efficient, and provides an easily-accessed file history.


More information about the freebsd-questions mailing list