> 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"