BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Rsync "one file system"



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