1 Answer
1

If you want to exclude the defaults directory from having its permissions altered, you would have to literally not include in the command (since you obviously want to maintain the permissions of everything you are copying). You can thus either do this:

rsync -ahv defaults/* root@hostname:~/

Or, in case you have files or directories starting with a dot inside defaults, and assuming you are using bash: