I have a script that sends a file from Linux to windows 2008 server. Occasionally I get an error when Rsync sends the same file twice to windows. Would like to prevent this from occurring.
I capture the file name when the return code is not 0.
File: 2150609050259_104993390_38.txt,TEMP_1433826082527 was being processed
I call a script passing the file, windows server and destination:
rsync -avz -e "ssh -p 22 -i /home/admin1/.ssh/prdkey " $sfile produser@$remotehost:$dest
Sems like it was processing 2 files at once?
Any suggestions?