Rsync occasionlly sends the same file twice to Windows from Linux

1 post / 0 new
nowhere86
Offline
Last seen: 7 years 8 months ago
Joined: 20.03.2014 - 13:39
Rsync occasionlly sends the same file twice to Windows from Linux

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?

 

Release news