Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2003 17:23:54 -0500
From:      "Jacques A. Vidrine" <nectar@FreeBSD.org>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: huge file, spanning multiple tapes
Message-ID:  <20030501222354.GA58218@madman.celabo.org>
In-Reply-To: <20030501220317.GA58262@dan.emsphone.com>
References:  <20030501213842.GA58002@madman.celabo.org> <20030501220317.GA58262@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 01, 2003 at 05:03:18PM -0500, Dan Nelson wrote:
> How about tar?  That lets you specify a change-volume script so you can
> change tapes when you're writing, and when you read the tape later you
> can specify the --to-stdout flag so it doesn't write to disk.

Ah, I wasn't aware of the `--to-stdout' business.  That may do the
trick, though it is kind of hackish.  It only works because I already
have the file on disk, it seems.

> If you can't have any headers, 

I don't want them, but in this case it doesn't screw me up.

> you can always tell dd to only write
> 33GB per tape: 
> 
> gzip < file | 
> (
>   dd of=/dev/ersa0 bs=64k count=$((33000000/64))
>   echo "please insert next tape"
>   head -1 < /dev/tty > /dev/null
> )

We don't know how much the tape would really hold.  It will likely
hold a good deal more than 33GB.

Thanks for the ideas!

Cheers,
-- 
Jacques Vidrine   . NTT/Verio SME      . FreeBSD UNIX       . Heimdal
nectar@celabo.org . jvidrine@verio.net . nectar@freebsd.org . nectar@kth.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030501222354.GA58218>