I am trying to use Rsync to transfer files between two servers. Rsync builds the incremental file list, but doesn't transfer anything. I am using Ubuntu Server on both machines. I am using the following command:
sudo rsync -avz -e "ssh -p $222" user@remoteip:/var/wwws/ /var/wwws/
For some reason I have to set set the port as 222, in the command, to get it to use 22. I was using a different port on one of the servers. I changed it back to 22, but I still have to add the port into the command to get it to connect. My config file is set up as follows on the server:
motd file = /etc/rsyncd.motd [workspace] path = /var/wwws comment = This is the path to my Eclipse workspace (on the server) uid = username gid = username read only = false auth users = username secrets file = /etc/rsyncd.scrt
On the first attempt, it runs through a list of the files to be transfered, but doesn't transfer anything. In subsequent attempts, it seems to just assume that everything is done. I'm thinking the command might be worded wrong and it is just doing a test run, or possibly it is a permissions issue. Any help would be greatly appreciated.