The Samba-Bugzilla – Bug 8513
files from local filesystem on source written to different filesystem on dest despite --one-file-system
Last modified: 2011-10-08 16:38:15 UTC
doing something like
rsync -e "ssh -p $PORT" \
On the source, due to historical accident, there are *local* files like
and on dest. .../cifs/data1/cdrive is a windows share on another filesystem / machine, but the --read-batch version of the above, even with --one-file-system flag, files on the other filesystem are still overwritten.
Seems --one-file-system should never cross file system boundaries.
That's not what --one-filesystem limits. The man page explains it fairly well:
This tells rsync to avoid crossing a filesystem boundary when recursing. This does not limit the user’s ability to specify items to copy from multiple filesystems, just rsync’s recursion through the hierarchy of each directory that the user specified, and also the analogous recursion on the receiving side during deletion.
So, no limit is place on files that make it into the transfer -- they get transferred. While it would be possible to add a destination check to see if a particular existing file is on a different filesystem from the starting one, that is not something that I plan to add.