Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!std-unix From: akre@cuuxb.uucp (Mike Akre) Newsgroups: comp.std.unix Subject: Re: tar stop at mount points Message-ID: <8128@ut-sally.UUCP> Date: Thu, 21-May-87 09:22:52 EDT Article-I.D.: ut-sally.8128 Posted: Thu May 21 09:22:52 1987 Date-Received: Sun, 24-May-87 21:39:25 EDT References: <8046@ut-sally.UUCP> <8018@ut-sally.UUCP> <8024@ut-sally.UUCP> <8068@ut-sally.UUCP> Sender: std-unix@ut-sally.UUCP Reply-To: ut-sally!rutgers.edu!moss!cuuxb!akre (Mike Akre) Organization: AT&T, Data Systems Division, Lisle, IL Lines: 23 Approved: jsq@sally.utexas.edu (Moderator, John Quarterman) Summary: find knows how to do this in SVR3 From: akre@cuuxb.uucp (Mike Akre) In article <8068@ut-sally.UUCP> jsdy@hadron.uucp (Joseph S. D. Yao) writes: >>Hmmm. Since stat(2) returns >> dev_t st_dev; /* device inode resides on */ >>it should be easy enough to see when you've crossed a device boundary, > >What I'd been thinking of was something on the order of: > find / \( -fs /usr -o -fsd /dev/rdsk/ra11 \) -a -print find knows how to not cross mount points in System V Release 3.0 and later. It has a new option "-mount" that will restrict find's searching to the filesystem containing the directory specified. I do full backups of the root filesystem with something like this: cd / find . -mount -depth -print | cpio -oacB >/dev/rmt/0m Mike Akre Lisle, IL Volume-Number: Volume 11, Number 35