Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: catrefil <plabrosse@gmail.com>
Subject: Re: Preventing log file deletion
Date: Fri, 9 Oct 2009 06:32:11 -0700 (PDT)	[thread overview]
Message-ID: <af6881fd-6780-4d4c-b460-e0510df08fce@s6g2000vbp.googlegroups.com> (raw)
In-Reply-To: nospam.News.Bob-1788AB.18505107102009@news.eternal-september.org

On 7 oct, 18:50, Bob Harris <nospam.News....@remove.Smith-Harris.us>
wrote:
> In article
> <2b8a7669-aa3d-4df5-aad3-9d3d2a267...@31g2000vbf.googlegroups.com>
> ,
>
>  catrefil <plabro...@gmail.com> wrote:
> > Hi,
>
> > I'm trying to prevent log file from being deleted.
> > Would anybody already have implemented something like that? or have
> > any idea on how to do it?
>
> > Thanks
>
> > P.
>
> Create a hardlink to the file.  As long as there is a directory
> pointing at the file, it will not be deleted, on the other
> directory entry.
>
>     ln file.log /some/other/directory/file.log
>
> Notice there is NO -s in that 'ln' command.  You want a hardlink,
> not a symlink.
>
> Of course if the file is not really deleted, but rather truncated
> instead, that would be a different storey.
>
>                                     Bob Harris

That's a great idea Bob - I'm going to give it a try

Thanks

Philippe


      reply	other threads:[~2009-10-09 13:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07 14:05 Preventing log file deletion catrefil
2009-10-07 18:06 ` Kari Uusimäki
2009-10-09 13:42   ` catrefil
2009-10-07 22:50 ` Bob Harris
2009-10-09 13:32   ` catrefil [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox