O rsync (3.0.9, pelo menos) tem uma opção --chmod
, eis o que ele faz:
This option tells rsync to apply one or more comma-separated "chmod" modes to the permission of the files in the transfer. The resulting value is treated as though it were the permissions that the sending side supplied for the file,