I'm looking to control the file mode bits of the
directory-to-be-created in the
rsync command below:
rsync -a ... <remote-user>@<remote-host>:/some/existing/path/directory-to-be-created/
As the name hopefully implies, that directory does not yet exist and
rsync is expected to create it; which it dutifully does... However, near as I can tell it always does this adhering to the <remote-host>'s default
umask and no
--chmod=... incantation that I can fathom will make it do something else...
So is it possible at all to set the file mode with which a missing target directory will be created, and if so how?