mutiple file systems to one tape

  • sonicbee

    sonicbee - 2005-08-17

    I am trying to back up 3 different partitions on to one tape every night.  When I use: restore -i /dev/nst0, I can only see one partition.  I tried to use: mt  -f /dev/nst0 fsf 1, to look at the second partition but all i see is the first partition i tried to back up.
    My back up script looks like the following:

    mt -f /dev/nts0 rewind
    /sbin/dump -0f /dev/nst0 /partition1
    /sbin/dump -0f /dev/nst0 /partition2
    /sbin/dump -0f /dev/nst0 /partition3
    mt -f /dev/nst0 rewind

    What am i doing wrong?

    • Stelian Pop

      Stelian Pop - 2005-08-19

      What you're doing seems correct...

      You should be able to access the second partition using:
          mt -f /dev/nst0 rewind
          mt -f /dev/nst0 fsf
          restore -if /dev/nst0

      Or just simply
          mt -f /dev/nst0 rewind
          restore -i -f /dev/nst0 -s 2


Log in to post a comment.