Re: trouble dumping whole filesystem to tape /sbin/dump

2002-01-12 Thread Karsten M. Self
on Thu, Jan 10, 2002 at 04:56:27PM +1100, James Cameron ([EMAIL PROTECTED]) 
wrote:
> Thedore Knab wrote:
> > /sbin/dump -0ua -f /dev/st0 / -L slash 2>> output.txt
> > /sbin/dump -1a -f /dev/st0 /usr -L usr 2>> output.txt
> > The second comand rewrites over the data I recorded with the first
> > command.
> 
> Change the first /dev/st0 to /dev/nst0 perhaps.

Yes.

The difference between /dev/st0 and /dev/nst0:

   /dev/st0 is the *rewinding* tape device.  The tape rewinds on the
   completion of all operations.  You'll overwrite data.

   /dev/nst0 is the *non*-rewinding tape device.  The tape doesn't
   rewind unless explicitly directed to (mt -f /dev/nst0 rewind).

Peace.

-- 
Karsten M. Self http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?  Home of the brave
  http://gestalt-system.sourceforge.net/Land of the free
We freed Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org
Geek for Hire  http://kmself.home.netcom.com/resume.html


pgpTFXX30rk2L.pgp
Description: PGP signature


Re: trouble dumping whole filesystem to tape /sbin/dump

2002-01-09 Thread James Cameron
Thedore Knab wrote:
> /sbin/dump -0ua -f /dev/st0 / -L slash 2>> output.txt
> /sbin/dump -1a -f /dev/st0 /usr -L usr 2>> output.txt
> The second comand rewrites over the data I recorded with the first
> command.

Change the first /dev/st0 to /dev/nst0 perhaps.
When you use /dev/st0 the device is rewound on close.

See also 'mt' for operations on the tape drive line rewinding or
unloading.

-- 
James Cameron
([EMAIL PROTECTED])
Not the Director of Titanic



trouble dumping whole filesystem to tape /sbin/dump

2002-01-09 Thread Thedore Knab
Hi,

I am trying to use dump to backup some data.

I have been using this command:

/sbin/dump -0ua -f /dev/st0 / -L slash 2>> output.txt

followed by:

/sbin/dump -1a -f /dev/st0 /usr -L usr 2>> output.txt

When I do a restore -t 

The second comand rewrites over the data I recorded with the first
command.



I want to dump the whole filesystem to the tape.

How would I do that ?

My filesystem. 

#/dev/sda5   /   ext2defaults
1 1
#/dev/sdb5   /home   ext2defaults
1 2
#/dev/sdb1   /usr/local/blackboard   ext2defaults
1 2
#/dev/cdrom  /mnt/cdrom  iso9660 noauto,owner,ro
0 0
#/dev/sda9   /tmpext2defaults
1 2
#/dev/sda8   /usrext2defaults
1 2
#/dev/sda6   /varext2defaults
1 2
#/dev/fd0/mnt/floppy autonoauto,owner
0 0
#/dev/sda1  /boot   ext2defaults
1 1
#none/proc   procdefaults
0 0
#none/dev/ptsdevpts  gid=5,mode=620
0 0
#/dev/sda7   swapswapdefaults
0 0

Sample output.

[EMAIL PROTECTED] backup]# less output.txt
#  DUMP: Date of this level 0 dump: Thu Jan 10 00:31:19 2002
#  DUMP: Date of last level 0 dump: the epoch
#  DUMP: Dumping /dev/sda5 (/) to /dev/st0001
#  DUMP: Label: slash
#  DUMP: mapping (Pass I) [regular files]
#  DUMP: mapping (Pass II) [directories]
#  DUMP: estimated 51833 tape blocks.
#  DUMP: Dumping volume 1 on /dev/st0001
#  DUMP: Volume 1 started at: Thu Jan 10 00:31:19 2002
#  DUMP: dumping (Pass III) [directories]
#  DUMP: dumping (Pass IV) [regular files]
#  DUMP: Closing /dev/st0001
#  DUMP: Volume 1 completed at: Thu Jan 10 00:31:28 2002
#  DUMP: Volume 1 took 0:00:09
#  DUMP: Volume 1 transfer rate: 6038 KB/s
#  DUMP: 54347 tape blocks (53.07MB) on 1 volume(s)
#  DUMP: finished in 3 seconds, throughput 18115 KBytes/sec
#  DUMP: level 0 dump on Thu Jan 10 00:31:19 2002
#  DUMP: Date of this level 0 dump: Thu Jan 10 00:31:19 2002
#  DUMP: Date this dump completed:  Thu Jan 10 00:31:28 2002
#  DUMP: Average transfer rate: 6038 KB/s
#  DUMP: DUMP IS DONE

-
Ted Knab