Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 1998 18:25:13 -0800 (PST)
From:      Bryce Newall <data@dreamhaven.net>
To:        Jordan Krushen <jkrushen@home.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Tape backup questions
Message-ID:  <Pine.NEB.3.96.981108181906.15750j-100000@ds9.dreamhaven.org>
In-Reply-To: <000801be0b7f$582dc7e0$0300000a@oblivion.purplemedia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 8 Nov 1998, Jordan Krushen wrote:

> I've just added a Seagate TapeStor 4/8Gb SCSI drive to my 2.2.7 system, and
> I'm having a hard time figuring out how to have multiple sessions added to
> the tape.  When using tar with /dev/nrst0 for two consecutive files, only
> the first file written to the tape remains.

Tar doesn't allow you to create archive files on a tape.  Rather, it sees
the tape itself *as* the archive file, and allows you to add files to and
extract them from the archive file.  If you want to add to an existing
tape archive, you should theoretically be able to use the -A (append)
switch on the tar command.  (I've never actually tried this, so I can't
verify that it actually works.)  Otherwise, tar will erase the header on
the tape and start a new one. 

By the way, when you use the -A switch, you'll probably notice a lot
of tape action with nothing going by on your screen.  This is due to tar
having to wind sequentially through the archive file on the tape to find
the end, so it can start adding.

Another solution would be to use dump instead of tar.  I actually have not
gotten dump to work properly, but your luck may be better than mine. :)

**********************************************************************
*       Bryce Newall       *       Email: data@dreamhaven.net        *
*               WWW: http://home.dreamhaven.net/~data                *
*       "Insanity takes its toll.  Please have exact change."        *
**********************************************************************


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?Pine.NEB.3.96.981108181906.15750j-100000>