I am building a script to copy files from a remote server. The problem is, the remote servers file permissions are pretty whack and I don't want to copy these over.
The line in my script right now is
/usr/bin/rsync -rtzul --progress -e ssh "$DEFAULT_SSH:$REMOTE_DIRECTORY" "$LOCAL_DIRECTORY"
I have seen elsewhere that you can use the
--chmod option to specify the permissions but I just don't understand the syntax for this argument! Perhaps I am being stupid?
I want to by default chmod files to
644 and directories to
755. I hope you can help me.