Operating System - HP-UX
1822562 Members
3085 Online
109642 Solutions
New Discussion юеВ

Re: How to recover one file from Ignite tape

 
SOLVED
Go to solution
Noble Sebastian
Frequent Advisor

How to recover one file from Ignite tape

Hi friends
My team facing a problem, one of my team members,
Remove one directory from userтАЩs home. Directory

We have backup, That is ignite backup .

How to retrieve files and directory from ignite backup..?

How to check that file available or not in my ignite tapeтАж

I can use tar for recover тАж?

Os Hp ux 11.11

Thanks
Noble
5 REPLIES 5
Sameer_Nirmal
Honored Contributor
Solution

Re: How to recover one file from Ignite tape

To check the contents of the recovery tape ( assuming the tar archive and 0m/n as device file )
# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 1
# tar tvf /dev/rmt/0m

To extract a file from the archive
# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 1
# tar xvf /dev/rmt/0m
Noble Sebastian
Frequent Advisor

Re: How to recover one file from Ignite tape

hi thanks

# mt -f /dev/rmt/0mn rew -------├п   Rewind tape.
# mt -f /dev/rmt/0mn fsf 1 ---├п   Forward space 1 count files
# tar tvf /dev/rmt/0m ----├п  verify files

To extract a file from the archive
# mt -f /dev/rmt/0mn rew --------├п   Rewind tape.
# mt -f /dev/rmt/0mn fsf 1 ------├п   Forward space 1 count files
# tar xvf /dev/rmt/0m ├п   copy files to server


I want one directory , so I create new directory in /home/restoredata
I want restore data in /home/restoredata
What I will do for restore new location ├в ┬ж?


Thanks
Noble Sebastian

Noble Sebastian
Frequent Advisor

Re: How to recover one file from Ignite tape


above message some worng

I want data in new directory , so I create new directory in /home/restoredata
I want restore data in /home/restoredata
What I will do for restore new location from ignite tape........


Sameer_Nirmal
Honored Contributor

Re: How to recover one file from Ignite tape

Since the files and directories are archived using absolute path, you need create a sofe link to restore the file to the desired directory.

Suppose that the path in the tar file is /home/common/xyz (files are present under the xyz directory) and you want to extract to /home/test directory, then simply do this:
a. mkdir -p /home/common
b. ln -s /home/test /home/common/xyz (assuming here that /home/test exists)
3. Run tar to extract the files.
tar -xvf tarfilename

This will extract the files that were in the archive to /home/test.
Dennis Handly
Acclaimed Contributor

Re: How to recover one file from Ignite tape

>Sameer: Since the files and directories are archived using absolute path, you need create a softlink to restore the file to the desired directory.

Instead of fiddling around, just use pax(1).