I have two directories with same PHP application in every of them. I want to execute rsync -rvz
from one, source directory to another, destination, so rsync will copy changed files only. Problem is that files in the source directory has 755 permissions, by mistake. Permissions in destination are fine.
How can I tell to rsync ignore permission checkings and check by size only?
Thanks.
Best Answer
As long as you don't supply the -p flag permissions shouldn't be changed. If you're still not getting the permissions you expect make sure perms is off and use --chmod=ugo=rwX
For reference: http://linux.die.net/man/1/rsync
The man page goes on to say:
Side-note: If possible it might make more sense for your developer to be pushing their changes back into the repo, and have all servers use a code repo, rather then use rsync to ship files form one server to the other.