|
Changing permissions of destination directory after rsync
Hi,
I am trying to rsync some data from one server to another using ssh public key authentication as user. I have added ssh key in the destination server and succeeded in copying the data. But when I try rsync-ing for the second time, it doesn't work. It is asking for the ssh password.
On a further check, I found that the permissions of the destination user directory has been changed to 775 after rsync.( it was 711 before). The ssh key doesn't work with 775 permissions.
I am using the following command for rsync,
rsync -avz -e 'ssh -p 2599' -F --include-from=list testing/ user@dest-IP:
Any suggestions?
Thanking you,
Tom
|