[squid-users] recovering an object from the cache -- trimming off the squid header

2008-10-16 Thread lartc
hi all,

i've googled, but have been unable to find a simple sed command, or
otherwise to recover an object sitting in the web cache.

i know the filename(s) in the cache, however, there's a squid header
on top of a binary file(s), and I don't know how to recover just the
binary portion.

original files were accidentally deleted, so these are the only
remaining copy -- i've backed them up, but can't figure out how to trim
off the header properly and just get the original file ...

hope you can help

thanks 

charles





Re: [squid-users] recovering an object from the cache -- trimming off the squid header

2008-10-16 Thread Henrik Nordstrom
On tor, 2008-10-16 at 19:06 +0200, lartc wrote:
 hi all,
 
 i've googled, but have been unable to find a simple sed command, or
 otherwise to recover an object sitting in the web cache.
 
 i know the filename(s) in the cache, however, there's a squid header
 on top of a binary file(s), and I don't know how to recover just the
 binary portion.

See the purge tool. It knows how to do this.

Found in the related software section.

Regards
Henrik