[NCLUG] mirroring directories

R P Herrold herrold at owlriver.com
Fri Nov 3 19:39:38 MST 2000


On Sat, 4 Nov 2000, dobbster wrote:

> What's the simplest way of mirroring a directory hierarchy on one system
> to another system, real time?

> modify files every few minutes or so on the average.  Therefore, it'd be
> ideal to mirror "real-time" or at least have it update changed files
> every, say, minute or two.

... the mirror package, or rsync will do this admirably.

Set a "A" and "B" tree at the remote site. -- 

Update the B site while the A site is live
Move link C to point at B when done
Update the A site while the B site is live
Move link C to point at A when done
{optionally sleep}
Repeat forever

   http://www.acme.com/C/index.html

... where C points to either the A or the B site.  A cron
process on the remote site can check for the presence of a
semaphore file, to determine which way to set the link -=-
Optionally rsync can do it for you ..

This has the benefit that your weblogs will have a single set
of linktree for analysis.

-- Russ Herrold




More information about the NCLUG mailing list