rsync
rsync copied to clipboard
Issue when syncing files starting with an underscore to smb network drives (and potentially elsewhere)
I am running rsync 3.2.7 on OSX 13.4 (also tested an older version 2.x and encountered the same problem).
It seems that rsync during the copy process generates a file named:
.filename.seemingly_random_string
When copying to smb
network drives I run into permission issues when I try to rsync
files that begin with an underscore.
The resulting temporary files are then called:
._file_name.seemingly_random_string
// notice the leading dot
However, smb
servers often prohibit naming files ._*
and consequently produce permission errors.
For the moment I am trying to remedy this with the --inplace
parameter that seems to come with its own caveats.
My naive proposal would be to instead name the temporary files:
file_name.random_string.rsync
which should be allowed on all systems?
Side observation: naming any file ._file-name
lets the files disappear in the OSX finder, even when it is configured to show hidden files.
Thanks for your help!