Operating System - HP-UX
1835209 Members
2288 Online
110077 Solutions
New Discussion

Re: tar and mt combination

 
SOLVED
Go to solution
dhanish
Regular Advisor

tar and mt combination

Hi,
I want to take two different tar backups (one by one )on the tape and restore the two back ups also.
Please let me how should i use the combinations of tar and mt commannds.

thnks
Never Say Die
1 REPLY 1
Carlos Fernandez Riera
Honored Contributor
Solution

Re: tar and mt combination


1- mt -t /dev/rmt/xmn rew # rewind

2- tar cf /dev/rmt/xmn /file_system # use no rewind device
3- tar cf /dev/rmt/xmn /file_system # use no rewind device


____

recovery :

1- mt -t /dev/rmt/xmn rew # rewind

# now you can restore session 1:

tar xvf /dev/rmt/xmn # work allways with no rewind device

# and the second:
tar xvf /dev/rmt/xmn # work allways with no rewind device

#or skip first session and restore only the second:
1- mt -t /dev/rmt/xmn rew # rewind
2- mt -t /dev/rmt/xmn fsf 1 # Forward Skip File(s) #skips

tar ....


unsupported