home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!apple!apple!netcomsv!cruzio!comix!jeffl
- From: jeffl@comix.UUCP (Jeff Liebermann)
- Newsgroups: comp.unix.xenix.sco
- Subject: Re: Cpio and Filesystem Backup
- Summary: eliminating unwanted dirs from cpio backup
- Message-ID: <423@comix.UUCP>
- Date: 28 Jul 92 04:32:54 GMT
- References: <BrBtvD.K5o@hsi.com> <3162@ariadne.csi.forth.GR> <1992Jul17.212811.29900@crd.ge.com>
- Followup-To: comp.unix.xenix.sco
- Organization: COmmittee to Maintain Independent Xenix
- Lines: 37
-
- In article <1992Jul17.212811.29900@crd.ge.com> davidsen@crd.ge.com (bill davidsen) writes:
- >
- > This is a good idea, I'll throw out another, why not do a find on
- >everything and then use a simple awk script to break up the output into
- >several filelists, one per partition?
-
- awk is a bit too much for the purpose intended. This is a
- very simplified version of what I use to illustrate the
- principal.
-
-
- :
- # @(#) cpio.bak.root Make backup tape from root directory using cpio.
- # by Jeff Liebermann 02/28/91
- #
- # Ignore anything in /u /v /usr/spool/news
- find / -depth -print | egrep -v "^/u/|^/v/|^/usr/spool/news/" |\
- cpio -ocBv > /dev/rStp0
-
-
- Note that you can ignore more than just filesystems.
- The find -mount option only recognizes file systems and
- will not do the job within a filesystem.
-
- The problem with this approach is that it is exessively
- simplistic for NFS which have filesystems mount and unmount.
- You can easily goof and get an extra filesystem in the
- backup that wasn't listed in the script. However, since
- this is a Xenix newsgroup, and NFS is not available for
- Xenix, this should not be an issue.
-
-
- --
- # Jeff Liebermann Box 272 1540 Jackson Ave Ben Lomond CA 95005
- # 408.336.2558 voice wb6ssy@ki6eh.#nocal.ca.usa wb6ssy.ampr.org [44.4.1.86]
- # 408.699.0483 digital_pager 73557,2074 cis [don't]
- # jeffl@comix.santa-cruz.ca.us uunet!comix!jeffl jeffl%comix@scruz.ucsc.edu
-