On Thu, 22 Jun 2000, Wilson Fletcher wrote:
> It's pretty easy. All you need to do is read the documentation for rsync.
> From: Agi Subagio[SMTP:[EMAIL PROTECTED]]
> How to create another mirror of that server and duplicate all the web and
> database content?
welll ... not _that simple_.
Break the mirroring into pieces. The web tree content --
images, .html, and .php3 files will change slowly, and can
probably safely be hot-rsynced without stopping the database
or webserver.
But for moving the database content, I would probably run a
script which:
Stops the MySQL server
Quickly makes a copy of the database files
Restarts the MySQL server
,.,
and THEN rsync (or ftp's or SCP's) the COPY over to a COPY
tree on the remote host
and set a semaphore on the remote host that the copy process
is done
and then, on the remote host,
Watch for the semaphore
Stops the MySQL server
Quickly moves the copy of the database files to the
production dataset [NOTE that this assumes that the MySQL
database is read only here --- that is, that there will not
be new data created at this end (if so, you have other isues
to solve)]
Restarts the MySQL server
Clear the semaphore.
.. error checking is always important --- don't skip doing
it.
We use variants of this process for synchronizing several
sendmail and pop servers, and the related password, shadow,
group, sendmail.cw, virtuser, access, aliases, and a host of
other files in an ISP environment -- same principle.
--
end
==================================
.-- -... ---.. ... -.- -.--
Copyright (C) 2000 R P Herrold
[EMAIL PROTECTED] NIC: RPH5 (US)
My words are not deathless prose,
but they are mine.
Owl River Company 614 - 221 - 0695
"The World is Open to Linux (tm)"
... Open Source LINUX solutions ...
[EMAIL PROTECTED]
Columbus, OH