Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!ima!trb From: trb@ima.UUCP Newsgroups: comp.unix.wizards Subject: a new (?) twist on filesystem backups Message-ID: <269@ima.UUCP> Date: Sat, 22-Nov-86 20:34:03 EST Article-I.D.: ima.269 Posted: Sat Nov 22 20:34:03 1986 Date-Received: Sun, 23-Nov-86 07:26:20 EST Reply-To: trb@ima.UUCP (Andrew Tannenbaum) Distribution: world Organization: Interactive Systems, Boston Lines: 18 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! Yes, hackers, ncheck has not quite been totally superseded by fsck! Ncheck generates a list of i-number/pathname pairs. Just run the output through sed -e 's%[/]*/%%' and you're off! Ncheck stupidly prints the filesystem name followed by a colon as its first line of output, but cpio will ignore that (or you can sed it out). Andrew Tannenbaum Interactive Boston, MA +1 617 247 1155 Society for the Preservation of Obsolete File System Maintenance Utilities