[Discuss] Rsync "one file system"

Daniel Barrett dbarrett at blazemonger.com
Sat Oct 24 16:35:32 EDT 2020


On October 24, 2020, jbk wrote:
>rsync -ax bin boot data (<- mounted to separate partition) 
>... <destination>

-x means "In the GIVEN DIRECTORY, don't descend into any subdirectories
that are on a different filesystem."

So, if you hand the directories bin, boot, and data to rsync, it
doesn't matter if they happen to be on different filesystems. You told
rsync to copy them. What matters is if bin, boot, or data have any
*subdirectories* that are on different filesystems.

For example, if the data directory has a subdirectory, foo, that's on
a different filesystem, then rsync -x won't descend into data/foo.

Does that help?

--
Dan Barrett
dbarrett at blazemonger.com


More information about the Discuss mailing list