I need a script Perl or PHP that can automatically download/transfer directories with all files inside of them from server A to server B.
You will NOT have access to my sever or the server that I need to connect to. You must have your own server and or equipment to create this script. I will create a milestone upon you accepting the job for full amount, but this will not be released until the script has been tested by me and shown to work and I am 100% satisfied with the script. Also resync is not a option so please don't pm me telling me you can set that up. Don't bid if your not sure you can do this. Also make sure you can meet the deadline you set when you bid I don't want my time wasted. Please ask any question you may have I will answer them to the best of my abilities.
This script will be placed on my server (server B) it will need to connect to another server (server A). The script must scan a directory on server B every 20 seconds and look for a 0byte file. Once the script has found the 0byte file it must login to server A with a FTPES - FTP over explicit TLS/SSL connection. It then will need to go to a certain directory on server A and match the name from the 0byte file to the folder/directory with the same name. It will need to download that folder/directory and all files inside of it as well. There maybe more then 1 folder inside the download folder/directory it will need to download that as well. The download must be placed into a temporary directory until download/transfer has been completed. Once the download/transfer has been completed it will need to be moved to a completed directory. The script must also delete the 0byte file and then continue to do scans every 20 seconds for new 0byte files.
/home/scan -->This is Server B which will have 0byte files in it.
Once found it will need to login to server A and go to the directory I set inside the script. Which is /download/
/download/ --> This is the directory that will contain multiple folders/directories on server A
It will then need to search for the same name as the 0byte file ( We will say 0byte file name is "[url removed, login to view]")
/download/[url removed, login to view] --> This is the folder/directory that the script will need to download. It will also need to download all files and folders inside of this folder/directory.
Once found it will need start downloading in Server B temporary directory.
/home/temporary -->Directory where the folder/directories and all its files will be downloaded to.
Once the download has been completed 100% it will need to move the completed download to the completed directory.
/home/completed -->The directory where the downloads will be place once completed 100%.