I am using rsync over ssh to perform backups from a client to a remote server.
rsync -azLvv --progress -e 'ssh -p22 -vvv' --exclude 'foo' /home/user/ server.tld:Documents/backup/
It was working fine for six months and it stopped working few days ago.
git/myrep.git/refs/heads/something 41 100% 0.08kB/s 0:00:00 (xfr#81, to-chk=36/12092) debug3: send packet: type 1 Connection reset by A.B.C.D port 22 rsync: connection unexpectedly closed (3211265 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]
It is working if I skip some files, e.g. git repositories. The ssh connection works since I have a session open on this server for days from this client.
Rsync version on the client 3.1.2, version on the server 3.1.1.