Re: help with solution to keep 2 servers in sync

From: Andrew Schulman (andrex_at_deadspam.com)
Date: 12/11/04


Date: Sat, 11 Dec 2004 00:59:33 -0500


> The Issue
> Files need to stay in sync across the 2 webservers. This includes files
> that may be uploaded by users through script, as well as files uploaded
> through the staging server (rsync'd up, not really an issue) and files
> uploaded by admins on the admin server. This also includes keeping config
> files, tmp files, files moved or otherwise changed, sync'd between the 2
> servers. Using an NFS mount isn't an option.
>
> The proposed solution
> Go through all scripts, find any case that may some how change a file
> weather it be a copy, delete, chmod, fwrite so on and so on, and log each
> into a table with the file name and action to take. The server admin will
> then have a script that runs every few seconds and checks the table,
> performs an rsync based on the action then deletes the row.

Geez, that sounds like a nightmare, and fragile too. What about using
Unison? http://www.cis.upenn.edu/~bcpierce/unison/

See the FAQ, "What are the differences between Unison and rsync?"

-- 
To reply by email, replace "deadspam.com" by "alumni.utexas.net"


Relevant Pages

  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)
  • Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Regarding a selection for mobile code/scripting language
    ... Client Side scripting, so the server can send script commands to the client. ... I decided they should be scripted and mobile code. ...
    (Vuln-Dev)
  • Re: HTTPSConnection script fails, but only on some servers (long)
    ... (HTTP/CONNECT + switch to HTTPS) ... wget and my python script. ... >>The python script works with server A, ... the problem seems to depend on both the client ...
    (comp.lang.python)