Rich Rauenzahn wrote:

>
>
> Steve Willoughby wrote:
>
>>On Thu, Nov 29, 2007 at 03:22:10PM -0800, Carl Keil wrote:
>>
>>
>>>Hi Folks,
>>>
>>>I'm trying to retrieve some deleted files from a BackUpPC backup.  The
>>>backup was deleted, but not much has been written to the drive since the
>>>backup.  This is an ext3 file system, so I'm forced to use the grep an
>>>unmounted drive method of retrieval.
>>>
>>>Does anyone know a way to have grep return everything between two retrived
>>>strings?  Like everything between "tuxpaint" and "end".  I'm trying to
>>>retrieve PNG files.  Can you describe to me the tools and syntaxes I'd
>>>need to employ to accomplish such a feat?  I'm familiar with the command
>>>line, I've gotten grep to return some interesting results and I know about
>>>piping commands, but I can't quite figure out the steps to extract these
>>>pngs from the raw hard drive.
>>>
>>>
>>
>>instead of grep, how about the command:
>>   perl -ne 'print if /tuxpaint/../end/'
>>
>>That would be a filter to print the lines from the one matching the
>>regexp /tuxpaint/ to the one matching /end/.
>>
>>It'll work as a filter like grep does; either specify filenames at the
>>end of the command line or pipe something into it.
>>
>>
>>
>
> Are you searching backuppc's ext3 filesystem?  Those PNG backup files
are likely compressed with backuppc and gzip, so you're really wanting
to look for backuppc's header information.  Also, realize that
sufficiently large files will not necessarily be contiguous on the
unmounted drive.
>
> Here's a thread where someone had some limited success with midnight
commander in 2002....
http://www.ale.org/archive/ale/ale-2002-08/msg01317.html
>
> Rich

I'm sorry for the delay, I'm just now getting a chance to try the "perl
-ne" suggestion.  What do you mean by backuppc's header info?  How would I
search for that?

Thanks for your suggestions,

ck


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
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