We have a few shared hosting servers and would like to be able to setup serves for them for redundancy, however cPanel does not have an easy way to sync two servers. I am looking for someone to write an SH script that would automatically sync the required directories to make each server exactly the same down to each file.
I know this can be done because I've seen it in action using Rsync but I can't seem to find a functioning script anywhere. I also want this file to allow it to be used multiple times as we add new servers so upon running it, it should ask the host name, username and password of the current server, and the one to be mirrored. When I say mirrored I mean as soon as a file is saved on one server it is immediately synced to the second server.
I don't need anyone to install it for us, just to write the code and make sure it works.
I want to have a blank cPanel server, and the ability to run the script to copy everything over to the new server, then have it run every few seconds and sync any changed files. (using cron or rsync)
10 freelancers are bidding on average $47 for this job
Sun, 21 Dec 2014 02:18:18 +0530 Is rsync daemon running on source server? List directories to rsync. Do you prefer to delete files from target host that have been deleted at source?