Re: Is it possible to rsync cache between diferent computers?

Alan Jenkins <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
On 5/16/10, Kurt Kraut <[email protected]> wrote:
> Hi,
>
>
> I own a desktop and a laptop with Ubuntu. I'd like to use Polipo on both.
> But when I access a website using my laptop at work, my desktop cannot take
> the benefit of the content cached on my laptop. In the opposite way, if I
> access a website in my desktop and get some content cache, if I leave home
> and access this website again in my laptop, all content will be new, without
> taking benefit from previous caching done in the other computer. I already
> have some means of rsyncing stuff between my desktop and laptop when they're
> in the same LAN. So my question is:
>
> Would Polipo break if I set it's cache to be rsynced between my computer and
> my desktop? What I want to do is a good approach?

Sounds interesting.  It's fine to copy files between caches on
different computers.

I would be careful about doing it fully-automatic though.  If you do
it while polipo is running, you will want to make sure polipo doesn't
see any partially copied files.  This is explained in the manual; see
"Modifying the on-disk cache".  I have a feeling rsync may already do
this - i.e. it first copies the file to a temporary location, then
renames it on top of the old version (if any), but you would need to
check this.

Alan

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.