1752708 Members
5724 Online
108789 Solutions
New Discussion юеВ

Re: how to tar

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

how to tar

Hello guys, how do I tar up a file on a dds3 tape but use the relative path so it doesn't pick up the entire directory path where the file currently resides. Any help will be greatly appreciated.

 

 

P.S. This thread has been moved from Storage > General to HP-UX > sysadmin. - Hp Forum Moderator

2 REPLIES 2
Michael Tully
Honored Contributor
Solution

Re: how to tar

Hi,

To do a tar of a directory or file and
remove the abolsute path name you simply
do cd to the directory and then
'tar cvf /dev/rmt/0m ./mydir'

If you wish to place the files of all
directories with no directory structure
at all on the tape, sorry you cannot do
this with tar, but you could use 'fbackup'
and if you wished to recover using'frecover'
the -F option.

HTH
-Michael
Anyone for a Mutiny ?
Bill McNAMARA_1
Honored Contributor

Re: how to tar

tar -tvf /dev/rmt/0m
to verify

(for tar you don't need to specify the dev file above for the tape 0m.. it's the default)

ioscan -fnkCtape

to check the device files.

Did you read the tar man page?
man tar
You'll have an example there of what you want to do.

Later,
Bill
It works for me (tm)