Re: Copying the content of a cache

From: Henny Bekker <henny@dont-contact.us>
Date: Tue, 28 Jul 1998 01:13:29 +0200 (METDST)

Hello all,

> >I want to move the content of one proxy server to another. The only
> >way I can think of is by copying the whole $cache_dir content over and
> >starting squid on the new machine.
>
> I suppose you have the same number of cache-dirs and the same number of
> level1 and level2 dirs (configured in the squid.conf). If all these apply
> then you can do the copying the cache_dir contents.
>
> > Is there a solution using ICP or
> >some other way of one cache 'copying/syncing' with another cache ?
> Just an idea: cache B would like to copy the the content of cache A.
> 1. Take a list of URLs from cache A's store.log
> 2. Configure cache A as a parent of cache B.
> 3. request URLs (present in the list got from cache A) from cache B (using
> squid_client, for example).
>
I used a rather simple shell-script (one master to fork a couple of children)
to reload the squid v1.2 cache from a squid v1.1 server. It indeed uses the
squid v1.1 log (index) file to fork a number of processes to load the cache
using lynx using the new proxy.. (which uses of course the old cache as a
parent or sibling..) These scripts can be found at url:
ftp://ftp.accu.uu.nl/pub/proxy/tools/reload_cache
ftp://ftp.accu.uu.nl/pub/proxy/tools/reload_cache_sub

Cheers, Henny

-- 
-----------------------------------------------------------------------------
E-Mail: Henny.Bekker@accu.uu.nl   ! Disclaimer: The main obstacle to progress
http    http://www.uu.nl/~henny   !             progress is not ignorance,but
PTT:    Voice: +31 30 2536971 Fax: +31 30 2531633 ! the illusion of knowledge
X500:   cn=Henny Bekker, ou=Ontwikkeling, ou=ACCU, o=UU, c=NL            o
Paper:  H.J.Bekker, Utrecht University, Computer Centre              _  /- _
        Po Box 80011, 3508 TA  Utrecht  Nederland                   (_) > (_)
-----------------------------------------------------------------------------
Received on Mon Jul 27 1998 - 16:14:22 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:41:16 MST