a new (?) twist on filesystem backups

ggs at ulysses.UUCP ggs at ulysses.UUCP
Mon Nov 24 01:55:24 AEST 1986


> I have been using cpio to save filesystems to move from a Sys V to a
> 4.3bsd.  I am happier with cpio than with tar; let's assume that I have
> to use cpio (I have the BRL Sys V cpio on 4.3).
> 
> As we know, cpio likes a list of files on standard input.  Problem is,
> people normally use find to generate that list, but it happily crosses
> filesystem boundaries.  How to generate a list of files on a filesystem
> for cpio?  find | grep -v?  No, ncheck!
> 
> 	Andrew Tannenbaum   Interactive   Boston, MA   +1 617 247 1155

Fine, but the 4.3BSD "find" has the -xdev option, which does what you want.

	find /usr -xdev -print | cpio ocB > /dev/rmtfoo

-- 

Griff Smith	AT&T (Bell Laboratories), Murray Hill
Phone:		(201) 582-7736
UUCP:		{allegra|ihnp4}!ulysses!ggs
Internet:	ggs at ulysses.uucp



More information about the Comp.unix.wizards mailing list