Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2005 12:27:39 -0700
From:      Chad Leigh -- Shire.Net LLC <chad@shire.net>
To:        List Free Bsd <freebsd-questions@freebsd.org>
Subject:   Re: how to recover (at least part of) a deleted file?
Message-ID:  <727aea72f33ead7f40aa1879f518dcf8@shire.net>
In-Reply-To: <6f7cb04cff85c6aef9d1f9d3e1b5a866@shire.net>
References:  <c83e8f8add9503e8587376cc5f2ead2d@shire.net> <6f7cb04cff85c6aef9d1f9d3e1b5a866@shire.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mar 9, 2005, at 12:12 PM, Chad Leigh -- Shire.Net LLC wrote:

>
> On Mar 9, 2005, at 12:09 PM, Chad Leigh -- Shire.Net LLC wrote:
>
>> Hi
>>
>> I have a 5.3-REL-p5 system and I accidently deleted an apache log 
>> before processing it.  I would like to recover as much as possible 
>> from it.  I have been looking in the sysutils ports and Googling but 
>> have not come up with a way of doing this.  What is the best way to 
>> attempt to recover a lost file or its contents, or as much as 
>> possible of it???
>>
>
> I should mention -- this is ufs2
>

And in case it matters, what happened was

I mv'ed the file to a different name and created a new log file.

ie

% mv access_log access_log.20050309; touch access_log

I restarted apache

I then accidently  did the move again so it replaced my previous saved 
copy with a new smaller one.

Chad



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?727aea72f33ead7f40aa1879f518dcf8>