chmod recursive only on files
When needing to move a lot of repositories from one VM to another, I used rsync
to move all files from one NFS share to another. I didn't use the flag to keep the permissions and they got scrambled.
To make them available to my server again I needed to change the permissions back. But I only wanted to change the permissions of the files, not the directories. To do this you can use the following command:
find . -type f -exec chmod 644 {} +