dumping to tape drive

1998-12-31 Thread wax_man
I'm trying to get a backup of my system using dump.  However, I can not
seem to get it to work.  I have a 2.5gig scsi tape drive (Exabyte 8200)
and 2.1gigs on my root partition.  When I do dump -0 -f /dev/nst0 / the
system starts to dump but seems to want almost 40 tapes.  What is going
on here?

Thanks,

Chris


Re: dumping to tape drive

1998-12-31 Thread Jameson Burt
I too have an Exabyte 8200.  Mine works, so I mention what I do.
The primary line I use is
   /sbin/dump 0uBf 250 /dev/nst0   /
Notice the 0 for a whole dump, the B for size 2.5MB (250)
You merely needed to tell it how long your tape is,
otherwise the default is old-fashioned small.

If you have a Buslogic SCSI controller, it could be incompatible with
your Exabyte tape  -- search the debian-user archives for the last couple 
months,
or send me email (Exabyte has a firmware change you can make).
Both Buslogic and Exabyte are giving the Linux community some help,
Exabyte through their web page.



Here is part of a script I worked up, running it weekly as a cron job.

   log_file=/usr/local/backup/rabbit-log/rabbit_`/bin/date +%b-%d-%Y_%I:%M%p`
   touch $log_file  #This allows entries below to append $logfile, 
#so the first entry need not be unique.
   /bin/mt -f /dev/nst0 rewind
   
   # The total becomes greater than 2.5GB,
   # so I now backup /mirror on a separate tape.
   for filesystem in   \
/  /usr  /var   \
/home  /usr/local
   do
   if [ -z $chunk ]; then chunk=0;  
 else chunk=`expr $chunk + 1`; fi
  echo ' '   $log_file   21
  echo ' '   $log_file   21
  echo -- BACKING-UP ONTO TAPE-CHUNK \
 $chunk `hostname`:${filesystem} -- $log_file 21
  # /sbin/dump 0uf /dev/nst0 $filesystem $log_file 21
  /sbin/dump 0uBf 250 /dev/nst0 $filesystem $log_file 21
   done

   /bin/mt -f /dev/nst0 offline   #So, you should insert a weekly backup-tape 
on Saturday.