I have 2 web servers which require to sync website files within certain htdocs subfolders.
Web server details:
1) The primary web server (where content updates are made) is Linux, FreeBSD, PHP 5.3 (with CURL)
2) The secondary web server (shop installation which displays content to the public) is Windows 7, IIS, PHP 5.3 (with CURL)
SCRIPT 1 on server 1 - create zip of updated files
1) The htdocs/updates/... contains the previous zipped files. A text file ([login to view URL]) will store the date of the last zip created
2) On URL/manual prompt a script will check specific folders in htdocs and compare the date in #1 (above) to the time stamps of the files in these specific folders (array in script where specific folders can be defined) and copy the new/modified files recursively to the htdocs/updates/ folder AND ZIP
3) Update htdocs/updates/[login to view URL] with today's date and remove alll unzipped files from htdocs/updates (only zips left behind)
SCRIPT 2 on server 2 - download and extract latest zip
1) Similar folder htdocs/updates/... will contain latest recursively unzipped files and [login to view URL] containing the date of the latest downloaded version
2) Scheduled task or PHP cron tab runs once per day at 6pm to check if a zip file on server #1 with a later date than in [login to view URL] exits. IF so download and recursively extract
3) Delete zip. [login to view URL] will also be downloaded and locally overwritten (no need to update with script)
I'm not sure which technology would be best to use, but I'd prefer PHP with CURL. Yet, open to suggestions.
Required from you:
1) Commitment to deliver in 24 hours after project assignment
2) Quote for the project
3) A confirmation that you understand what is required - if not ask questions sooner rather than later. No time to be wasted