Squid utility command to force a cache load from a local hard drive

cachehard drivesquid

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 the 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.

OR

A better solution using something other than Squid? I am still hunting.

Best Answer

I have no experience with this but it seems others have used wget to spider the content via the proxy, thus populating the cache.

I can't think of any reason why you wouldn't be able to copy the cache_dir to your hard drive.

Out of curiosity, what exactly are you trying to do?

Using wget to populate SQUID cache