Changing permissions of destination directory after rsync
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:
Are the permissions on the source directory set correctly? When -a is used with rsync the permissions on the destination directory will be changed to match those of the source directory. I am assuming you are rsync'ing the entire home directory here -- correct?
|All times are GMT -5. The time now is 07:54 AM.|