Operating System - HP-UX
1832768 Members
2928 Online
110045 Solutions
New Discussion

Re: restore one file from make tape recovery

 
Fauziah Mahdan
Super Advisor

restore one file from make tape recovery

Hi all I have problem login to my system whereby my /etc/pam.conf corrupted.
The only is to restore via make tape recovery.
If I want to remain the rest file there and only want to restore specific file from make tape recovery backup can it be done?
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: restore one file from make tape recovery

Shalom,

Yes, this is a FAQ, or Frequently Asked Question in ITRC:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1137154

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=942589

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=749664

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ganesan R
Honored Contributor

Re: restore one file from make tape recovery

Hi,

If you need just overright the existing file,

#mt -f /dev/rmt/0mn rew
#mt -f /dev/rmt/0mn fsf 1
#tar xvf /dev/rmt/0mn /etc/pam.conf

If you want to restore to some alternate location run the below commands

#cd /tmp
#mt -f /dev/rmt/0mn rew
#mt -f /dev/rmt/0mn fsf 1
#tar xvf /dev/rmt/0mn etc/pam.conf

This will restore the file in /tmp
Best wishes,

Ganesh.
Fauziah Mahdan
Super Advisor

Re: restore one file from make tape recovery

The problem is I can't login to the system at all. If i restore and boot from this tape at which stage I should interrupt to only restore for 1 file?