home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.11 / text0034.txt < prev    next >
Encoding:
Internet Message Format  |  1987-07-18  |  779 b 

  1. From: akre@cuuxb.uucp (Mike Akre)
  2.  
  3. In article <8068@ut-sally.UUCP> jsdy@hadron.uucp (Joseph S. D. Yao) writes:
  4. >>Hmmm.  Since stat(2) returns
  5. >>               dev_t  st_dev; /* device inode resides on */
  6. >>it should be easy enough to see when you've crossed a device boundary,
  7. >
  8. >What I'd been thinking of was something on the order of:
  9. >    find / \( -fs /usr -o -fsd /dev/rdsk/ra11 \) -a -print
  10.  
  11. find knows how to not cross mount points in System V Release 3.0 and later.
  12. It has a new option "-mount" that will restrict find's searching to the
  13. filesystem containing the directory specified.
  14.  
  15. I do full backups of the root filesystem with something like this:
  16.  
  17.     cd /
  18.     find . -mount -depth -print | cpio -oacB >/dev/rmt/0m
  19.  
  20. Mike Akre
  21. Lisle, IL
  22.  
  23. Volume-Number: Volume 11, Number 35
  24.  
  25.