I have faced with a strange problem. I usually use
rsync to sync files between servers and now this utility behaves in a strange way.
Firstly, here is the command I use:
server1# rsync -av -e ssh ./server1_dir/ firstname.lastname@example.org:/server2_dir/
It starts the sync process as it should, but no file is synced, only directories. Not all directories actually, as the
rsync process hungs up for a long time resulting in the timeout error.
If I kill the process and make another attempt, it does not start at all. The only message I see:
sending incremental file list
The first thought was - firewall. But both servers don't have it installed. I've even tried manually compiling the latest
rsync version with no success though.
Could someone help me on this problem? Many thanks.
Update. strace output on the server1
root@server1 [~]# ps auxf|grep [r]sync root 13958 0.0 0.0 70676 1232 pts/0 S+ 23:29 0:00 | \_ rsync -avv -e ssh directory1 email@example.com:/home root 13959 0.0 0.2 58436 3256 pts/0 S+ 23:29 0:00 | \_ ssh -l root 192.168.1.1 rsync --server -vvlogDtpre.isf . /root root@server1 [~]# strace -p 13959 Process 13959 attached - interrupt to quit select(7, [3 4], , NULL, NULL