how to get multiple tars on a single tape

how to get multiple tars on a single tape

Post by Kevin Richards [METOF » Tue, 05 Jul 1994 20:12:32



Hi,
I'm fairly familiar with unix so I klnow how to get multiple files on a tape.

        mt -fsf 3,              to skip to the point where you want to start
                                (or some other variation like asf 3) and ..

        tar cv XXXXX            starts a tar file at that point

        But under linux, using a Jumbo tape streamer when ever I tar something it
rewinds the tape and starts at the beginning.  How can I get the damned thing to do
what I want.

        Cheers (in advance)
                Kev
  ____________________________________________________________________

                University of Reading, Whiteknights,
                       Reading, Berkshire, Uk

                    Phone +44 734 875123 ext 7641

 
 
 

how to get multiple tars on a single tape

Post by John Lell » Tue, 05 Jul 1994 23:19:43



: Hi,
: I'm fairly familiar with unix so I klnow how to get multiple files on a tape.

:       mt -fsf 3,              to skip to the point where you want to start
:                               (or some other variation like asf 3) and ..

:       tar cv XXXXX            starts a tar file at that point

:       But under linux, using a Jumbo tape streamer when ever I tar something it
: rewinds the tape and starts at the beginning.  How can I get the damned thing to do
: what I want.

:       Cheers (in advance)
:               Kev
:   ____________________________________________________________________

:                 University of Reading, Whiteknights,
:                        Reading, Berkshire, Uk

:                     Phone +44 734 875123 ext 7641

Use /dev/nftape instead of /dev/ftape.  The "n" means no automatic rewind.

--


--
... Our continuing mission: To seek out knowledge of C, to explore
strange UNIX commands, and to boldly code where no one has man page 4.

 
 
 

how to get multiple tars on a single tape

Post by Bill Mitche » Wed, 06 Jul 1994 01:40:02




>: I'm fairly familiar with unix so I klnow how to get multiple files on a tape.
>:[...]
>Use /dev/nftape instead of /dev/ftape.  The "n" means no automatic rewind.

This leads in to a problem I have:

I do something like:

    mt -f /dev/rst0 rewind
    for i in *.tar
    do
        tar cvf /dev/nrst0 $i
    done

and I get scsi timeout errors.  If I do the same thing manually, waiting
for tape activity to complete between files, all works fine.  I've used
this technique on other *nix systems without problems, but I have problems
under linux.

I have an adaptec 1542C controller and a Tandberg 3600 drive with a firmware
upgrade to the latest Tandberg firmware.

Email responses appreciated.

--

 
 
 

how to get multiple tars on a single tape

Post by Bill Broadhur » Wed, 06 Jul 1994 02:28:57




Quote:>Hi,
>I'm fairly familiar with unix so I klnow how to get multiple files on a tape.

>    mt -fsf 3,              to skip to the point where you want to start
>                            (or some other variation like asf 3) and ..

>    tar cv XXXXX            starts a tar file at that point

>    But under linux, using a Jumbo tape streamer when ever I tar something it
>rewinds the tape and starts at the beginning.  How can I get the damned thing to do
>what I want.

The tape drivers in Linux automagically rewind the tape after every
operation.  Use the version of your tape driver that begins in 'n'to
avoid this behavior.
For example:
    I use /dev/st0 for my tape drive.  To have the tape unit NOT rewind
after an operation I would use /dev/nst0.  Works fine.

--
 -----------------------------------------------------------------------
 Bill Broadhurst   | Independent contract Engineer.        | Finger for
 San Diego, CA.    | PC Systems Development & Integration. | PGP 2.6

 -----------------------------------------------------------------------

 
 
 

how to get multiple tars on a single tape

Post by Kevin Richards [METOF » Wed, 06 Jul 1994 03:24:59


Thanks for all the reponses, I'll try it out soon ...

                Kev

  ____________________________________________________________________

                University of Reading, Whiteknights,
                       Reading, Berkshire, Uk

                    Phone +44 734 875123 ext 7641

 
 
 

how to get multiple tars on a single tape

Post by Hans-Christoph Rohla » Wed, 06 Jul 1994 20:41:52


: The tape drivers in Linux automagically rewind the tape after every
: operation.  Use the version of your tape driver that begins in 'n'to
: avoid this behavior.
: For example:
:     I use /dev/st0 for my tape drive.  To have the tape unit NOT rewind
: after an operation I would use /dev/nst0.  Works fine.

It doesn`t rewind after every operation but only on close!
Greetings
Christoph

 
 
 

how to get multiple tars on a single tape

Post by Stefan Walt » Thu, 07 Jul 1994 06:18:54



: I'm fairly familiar with unix so I klnow how to get multiple files on a tape.

:       mt -fsf 3,              to skip to the point where you want to start
:                               (or some other variation like asf 3) and ..

   mt -f /dev/nrft0 fsf 3 forewinds the tape 3 tapemarks. In your command
   mt wants to work with tape "sf"
   Alternate option to give the device to mt is -t.
   Don't start the mt commands with - !

:       tar cv XXXXX            starts a tar file at that point

  You should use f optin with tar and give the non-rewinding device
  /dev/nftape or /dev/nrft0 with it.
  That should work.

cu
--

 
 
 

1. multiple tar backups to a single tape

I'm running redhat 6.2 with recommended package updates.

I want to back up certain directories every night to a tape
that I will physically swap once a week.

I tried adding a cron job by adding the file
/etc/cron.daily/tapetar  that looks like this:

#!/bin/sh
/bin/tar -cplf /dev/nst0 /var /home /etc /usr

and I get a mail to root every night saying
tar: Removing leading `/' from member names
tar: Removing leading `/' from link names
which I think is harmless, but indicates that the cron job
is running.

Unfortunately, I never see more than one backup on the
tape.

so I ran a test:
( bar1 and bar2 are empty directories, just used for this
test, and vm is a text file, also used for this test):





so i should have 4 entries on the tape... let's see:



drwxr-xr-x root/root         0 2001-07-06 09:53:45 bar1/


drwxr-xr-x root/root         0 2001-07-06 09:53:47 bar2/


drwxr-xr-x root/root         0 2001-07-06 09:53:45 bar1/




-rw-rw-rw- wiredtri/wiredtri 31234407 2001-10-26 09:53:39 vm

they are there, but why do I seem to have "blanks" inbetween
the entries... and why is there sometimes 1 blanks, and
then 3 blanks before the 'vm' file entry?

Thanks
Joe

2. Any luck with Sharp PC9030 w/Cirrus 754X?

3. Multiple tar files on a single 8mm tape

4. Bootloader Red Hat 5.2

5. multiple tar's on a single tape ??

6. How can I change "kern.ipc.maxsockets"?

7. Multiple Tars on a single tape (doesn't work for meY)

8. X on Verite VT1000 chipset

9. Multiple tars on a single tape?

10. backup multiple tar-files on a tape using tar and mt - command

11. backup multiple tar-files on a tape using tar & mt ???

12. getting a tar file off a tape when you've tar cf'ed first

13. Multi tapes with tar/Tar tape length