From owner-freebsd-questions Sun Mar 29 22:17:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA22360 for freebsd-questions-outgoing; Sun, 29 Mar 1998 22:17:20 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA22148 for ; Sun, 29 Mar 1998 22:17:01 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id WAA23657; Sun, 29 Mar 1998 22:16:54 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Sun, 29 Mar 1998 22:16:54 -0800 (PST) From: Doug White Reply-To: Doug White To: Typeline Webmaster cc: freebsd-questions@FreeBSD.ORG Subject: Re: cpio In-Reply-To: <35167D44.41C67EA6@typeline.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 23 Mar 1998, Typeline Webmaster wrote: > I'm in the process of trying to establish a backup procedure for a > couple of machines running FBSD. While using tar for most of my Unix > life I've just started to play with cpio. Since I'm trying to do a > complete backup of these machines, cpio, from what I've read, is better > suited for this purpose. Dump works pretty well too. > If I need to rebuild one of these machines after a crash I'd just want > to reload the OS and restore from tape. I've already tried using the > following script using cpio and was wondering if this is sufficient: > > find / -print -depth | cpio -ov > /dev/rst0 > > To restore to / I've run: > > cpio -ivd < /dev/rst0 > > Is this procedure safe enough to restore everything including any dev > special > files etc.? Probably not /dev; tar won't backup device special files. Easily fixed however. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message