I am using SSH and Rsync as a backup system. I just want to try copying the contents of one folder to one on a remote server. What happens is that rsync
recreates the directory AND changes the permissions on that remote directory.
This is the command:
Code:
rsync -av -e "ssh -i ~/my_secret_key" /home/billg/videos/ steveb@192.168.1.50:/home/steve/backup/video.bak
The permissions on the remote dir change from this:
Code:
drwxr-xr-x steve steve 4096 2010-09-09 15:13 video.bak
To this:
Code:
drwxrwxrwx steve steve 4096 2010-09-09 15:13 video.bak
not good. Why does this happen?
I have a trailing slash on the source directory.