[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Backup tar (/dev/st0)



On Fri, 05 Jun 2009 09:07:41 -0300
Márcio Luciano Donada <mdonada@auroraalimentos.com.br> wrote:

> I have a backup that uses 4 tapes with tar, but must return a single
> file that is in the second tape, but when I put the second tape and
> give the tar-xvf / dev/st0 it does not agree and says it is continuing
> another volume, now the question is this, I have to necessarily use
> the first tape?

yes. A tarball is one single file. The beginning of that file is on the
first tape. It scans through the tarball (as the "table of contents"
data is effectively scattered throughout the archive) until it finds
your file, then extracts it.

Having said that, if you knew the exact bit locations your file starts
on the tape, and its exact length, you could extract it with dd.

-- 
section .data
     sig:       db      'Spiro Harvey',0x0a
                db      'UNIX Specialist, Writer, Editor',0x0a
homepage:       db      'http://twiddle.starforge.net.nz',0x0a

Attachment: signature.asc
Description: PGP signature


Reply to: