Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

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



Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org