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

2004-04-08 Thread Brian McEntire
Answered my own question... here's what I came up with in case anyone else wants the answer: FILESYSTEMS=`ssh -q [EMAIL PROTECTED] df -l|awk '/\// {print $NF}'|tr '\n' ''` rsync -av -e 'ssh -q' --one-file-system --numeric-ids --relative \ --delete [EMAIL PROTECTED]:"${FILESYSTEMS}" /backups/

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

2004-04-08 Thread Brian McEntire
Thanks Wayne! > 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

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

2004-04-07 Thread Wayne Davison
On Wed, Apr 07, 2004 at 02:47:16PM -0700, Wayne Davison wrote: > the -x option only affects the reading of the files on the source > machine. Correction: this is an inaccurate statement when using --delete; the hierarchy of files created on the receiving machine that is used to figure out what ne

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

2004-04-07 Thread Wayne Davison
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

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

2004-04-07 Thread Brian McEntire
Greetings rsync gurus! I'm trying to run rsync from machine A to backup files on machine B. I want the files to be copied into a directory -- /backups/B -- on machine A and mimic the directory structure on machine B. Machine B has the following file systems (and some NFS mounts I don't want):