I have a machine on a remote network such that I tarred a
file "file.tar" :
tar cf file.tar directory1 directory2 ... dirN
since I only wanted some of the subdirectories
under there (this machine was HP and had it's
cruddy version of tar that doesn't let you exclude
things so I just explicitly listed the dirs)
and then ftp'ed the file to a local machine.
I want to untar the tar file onto the tape so that the tape is just
like I would have done in on the remote machine, ie.
I don't want to do:
tar cvf /dev/rmt/0mn file.tar
since that would show a user little info if
tar tvf /dev/rmt/0mn was done later.
What I tried was:
tar xvf file.tar - | dd of=/dev/rmt/0m ibs=20b obs=20b
thinking that the - should untar to the stdout and
that dd defaults to stdin as the input.
But upon running this the tape light shows no activity
however the cpu is active doing something and there is
no error msg.
the block size for tar should be 20 512 byte blocks
as stated in the tar man page so I don't see why this doesn't work.
I set dd to use 20b should should mean 20 512 byte blocks since
the 'b' unit is 512
I've verified that /dev/rmt/0mn is the proper device because
mt -f /dev/rmt/0mn offline ejected the tape ok
any ideas?
Mark