Q: --one-file-system and nested file systems

Wayne Davison wayned at samba.org
Wed Apr 7 21:47:16 GMT 2004


On Wed, Apr 07, 2004 at 03:38:28PM -0400, Brian McEntire wrote:
> * Is there a way for --one-file-system to know on dest side not to delete
> files that are not part of the target file system on the src side?

No, that's not currently possible -- the -x option only affects the
reading of the files on the source machine.  However, you can include
all the source filesystems as args in a single copy command and it will
enforce the single-filesystem (inode-based) restriction separately for
each arg you specify:

  rsync -avxR -e ssh --numeric-ids --delete \
    --exclude-from=/backups/control/all.exclude \
    root at B:'/ /usr /usr/local /usr/local/apache' /backups/B

As long as that doesn't exhaust your machine's memory, it should work
fine.

..wayne..


More information about the rsync mailing list