Date: Mon, 9 Dec 2002 20:44:29 -0800 (PST) From: Oliver Crow <ocrow@simplexity.net> To: freebsd-questions@freebsd.org Subject: Dump/Restore to disk and tape Message-ID: <20021209202500.D17508-100000@iguana.simplexity.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021209202500.D17508-100000>