From owner-freebsd-questions Tue Dec 10 11:43: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4695D37B401 for ; Tue, 10 Dec 2002 11:43:07 -0800 (PST) Received: from iguana.simplexity.net (adsl-216-103-84-145.dsl.snfc21.pacbell.net [216.103.84.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id BABF943EC2 for ; Tue, 10 Dec 2002 11:43:06 -0800 (PST) (envelope-from ocrow@simplexity.net) Received: from localhost (oipzsd7384sdz6ek@localhost [127.0.0.1]) by iguana.simplexity.net (8.12.3/8.12.3) with ESMTP id gBAJh6aF031946 for ; Tue, 10 Dec 2002 11:43:06 -0800 (PST) (envelope-from ocrow@simplexity.net) Date: Tue, 10 Dec 2002 11:43:06 -0800 (PST) From: Oliver Crow To: freebsd-questions@freebsd.org Subject: Re: Dump/Restore to disk and tape In-Reply-To: <20021210070844.GL67692@over-yonder.net> Message-ID: <20021209232435.W17508-100000@iguana.simplexity.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 10 Dec 2002, Matthew D. Fuller wrote: > On Mon, Dec 09, 2002 at 08:44:29PM -0800 I heard the voice of > Oliver Crow, and lo! it spake thus: > > > > Of course this doesn't work because pax just creates the file > > 'dump.0.2002-10-10'. > > > > Is there some way to move a dump file to a set of tapes, without having to > > do the dump from the original filesystem? > > Have you tried symlinking dump.0.2002-10-10 to /dev/stdout, and then > doing the | restore? Kinda a twisted way of doing it, but it may work. I tried that, but pax deletes the symlink and replaces it with the dump file. I also tried using the pax filename substitution facility, in the hope that that would persuade it to open the stdout device: % pax -r -f /dev/sa0 -s :.*:/dev/stdout: Don't try this at home! It deleted the /dev/stdout device entry. I think though I *have* found a solution. archive: % gtar cM dump.*.gz restore: % gtar xMO dump.0.2002-10-10.gz | zcat | restore -if - It's not ideal because it depends on a package that's not part of the standard FreeBSD install. It has to be gtar, to avoid the 2GB file size limitation of tar. I also think it won't recover if part of a tape is damaged, because it is storing compressed dump files. The ideal solution would be if dump had a feature to split a single existing dump file across multiple volumes. That way 'restore' would recover from read errors on the tape, and only the affected files would be lost, instead of the remainder of the archive. Oliver To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message