From owner-freebsd-questions Mon Dec 9 20:44:41 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 0B3EE37B401 for ; Mon, 9 Dec 2002 20:44:40 -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 7F9AF43EB2 for ; Mon, 9 Dec 2002 20:44:29 -0800 (PST) (envelope-from ocrow@simplexity.net) Received: from localhost (rh2cy6cp952b4958@localhost [127.0.0.1]) by iguana.simplexity.net (8.12.3/8.12.3) with ESMTP id gBA4iTaF018659 for ; Mon, 9 Dec 2002 20:44:29 -0800 (PST) (envelope-from ocrow@simplexity.net) Date: Mon, 9 Dec 2002 20:44:29 -0800 (PST) From: Oliver Crow To: freebsd-questions@freebsd.org Subject: Dump/Restore to disk and tape Message-ID: <20021209202500.D17508-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 Question about use of dump/restore: I do daily dumps of several FreeBSD machines over the network to a large archive disk. This disk has directories for different machines, with several gzip'd dump files for each. I have a tape drive on that machine, and I'd like to copy some of the dump files to tape. I started off using dd to copy the dump file to tape: % dd if=dump.0.2002-10-10.gz of=/dev/sa0 But I don't think that dd handles multiple volumes if the dump file ends up being larger than a single tape. I could split the file first, but I'd rather use a program that can automatically handle splitting a file across several volumes. I tried to use tar or cpio to copy the dump files to tape archives. That way the tape would have a tar archive of dump files. Unfortunately both of those programs seem to choke on files >2GB. I tried using pax. Pax is fine with files >2GB, but there's another problem. To retrieve the contents of a dump file, I have to copy the entire thing to disk first. This is awkward for large dump files because it's slow and I may not have enough space for the entire file. I can't find a way to extract the file to stdout, and pipe it directly to restore. I'm thinking of something like: % pax -r /dev/sa0 dump.0.2002-10-10 | restore -if - 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? Thanks, Oliver To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message