On Wed, 3 Mar 2010 17:56:41 -0800, "C.W. Holeman II" <cwhii_gm@xxxxxxxxxxxxxxxx> wrote: > Is there a Squid utility command to force a cache load from a local hard > drive? > > xww.example.com > /w /x /y /z > Apache > ------------------------ > Slow Internet Connection > ------------------------ > lan1 | lan2 | lan3 > | | > cache | cache | cache > /x /y | /x /z | /y /z > Squid | Squid | Squid > ------ | ------ | ------ > Browser| Browser|Browser > Browser| Browser|Browser > Browser| Browser|Browser > Browser| Browser|Browser > > For example, plug a USB hard drive into the machine on lan1 that is > running Squid. > Then invoke a command like: > > $ suqid-util\ > --force-cache-load\ > --url-root http://www.example.com/x\ > --local-root /mnt/usb1\ > --recursive > > This would be useful when a 2TB hard drive can be hand carried to a > location with > slow Internet connection. > > This question has been posted at: > http://serverfault.com/questions/118541/squid-utility-command-to-force-a-cache-load-from-a-local-hard-drive > No such tool is needed. The cache is just a directory structure of filesystem files. As long as you are not fiddling with the actual content or layout you can move the whole structure between Squid boxes just fine. * Copy them into a new directory on the destination machine. * Update squid.conf to use that as a cache_dir * reconfigure Squid. Squid may or may not complain about having to throw duplicates away when loading. It's up to you whether you ignore that. Amos