home *** CD-ROM | disk | FTP | other *** search
- 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
-
-