Mirroring Script?
Hi,
I am looking for a CGI script that can be run on a UNIX server that will copy the contents of a directory(ies) to another server.
Basically, I need a mirroring script. One of my sites is hosted on 2 servers to keep high uptime and I need a script that will keep files exact on both hosts.
Many Thanks
Wil posted this at 16:17 — 15th February 2002.
They have: 601 posts
Joined: Nov 2001
Most systems which are derived from BSD unix come with a program called rdist, which seems to do what you want. I am assuming that you have logins on both servers.
These two URLs will also help you:
http://directory.google.com/Top/Computers/Software/Internet/Site_Management/Mirroring/
And a simple example of how to us rdist:
http://www.linuxgazette.com/issue24/bavendiek.html
Hope this helps.
- wil
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.