[comp.unix.questions] backup with NFS

wjones@andromeda.rutgers.edu.rutgers.edu (Wendell E Jones) (11/20/90)

        I have a question.  I am trying to write a backup script for my 
    UNIX machine running 4.3 BSD and I am trying to avoid backing
    up those filesystems that are NFS mounted.  I use the find command
    and then pipe it through sed to eliminate those filesystems,  but
    for some reason nasty things happen.  
    
	* The backups take entirely too long 
	* The load average shoots thought the ceiling
	* Script goes to the NFS filesys and searches
	  through them, then it decides to not use any 
	  of the data it found.
    
	Here is a sample of the script:
	
# backup_usr_local: utility to dump /usr/local filesystem to /dev/rmt8

cd /usr/local;
/bin/find . -depth -print 2> /dev/null |
/bin/sed '/\.\/lib\/fonts/d'    |
/bin/sed '/\.\/contrib/d'       |
/bin/sed '/\.\/src/d'           |
/bin/cpio -oB 2> /dev/null > /dev/rmt8


	In my opinion, this setup is not very efficient.  I need to know
	if there is a way of backing up the file system with out the
	even looking past the NFS mount.
	
	-RESTRICTIONS:
	
	    On my system, find command does not have the:
	    
		-prune or -fstype 
	
	    options.  Thanks in advance.
	    
	

*  W.E.Jones A.K.A. The Ronin                                                *
*  wjones@andromeda.rutgers.edu   or   rutgers!andromeda!wjones              *
*" Do it with style or don't do it at all"				     *
*" Lesson #1: Never, no never underestimate your own stupidity"              *
*" Big brother is watching you.  "                                           *