I have a primary server where certain files are created real time. These files have varying file sizes. I want to FTP or copy them over to a different server server as soon a file gets created. I have to ensure that only full file is copied. The receiving end process expects a FULL file. I am ok with a delay of 5-10 min. We dont have rsync enabled on the servers. Its a solaris box. Any inputs is appreciated. Thanks,
Could this help you ?
Implementation
ServerB - process/script running on this server continuously polling serverA for file "testFile.txt"
ServerA - Process/Script should create file with name as "testFile.txt_DONE" and once file creation done move "testFile.txt_DONE" to "testFile.txt"
So the process running on ServerB will pick full/complete file