1830062 Members
2592 Online
109998 Solutions
New Discussion

Restoration Question

 
Waqar Razi
Regular Advisor

Restoration Question

I am creating a script for automating ignite backup, what I want at the end after the completion of backup, the tape rewinds and then restores some file from the backup to a temporary location say /tmp to make sure if the tape is readable on that drive and the backup is valid.

Could any one tell me the commands to do it?
3 REPLIES 3
candlejack
Advisor

Re: Restoration Question

For it rewind, you would just use the auto-rewind device file.

Also, the following thread gave a good way to check to see if the tape is readable:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=77746
"The future starts today, not tomorrow." -Pope John Paul II
candlejack
Advisor

Re: Restoration Question

CORRECTION: The link above refers to a deprecated command.

The jury is still out on how to verify the backup. Sorry for the confusion.
"The future starts today, not tomorrow." -Pope John Paul II
Tim Nelson
Honored Contributor

Re: Restoration Question

First off, all experience says, if ignite finishes without error then all is good.

Have not looked at this in awhile but...

first look at the archive to see if it is relative or absolute.

mt -t /dev/rmt/0mn fsf 1
tar vtf /dev/rmt/0m

If there is no "/" in the front then your answer is maybe...

Create a file in / called ignite.test and put a time and date stamp in it.

run the make_tape_recovery.

cd /tmp
mt -t /dev/rmt/0mn fsf 1
tar xvf /dev/rmt/0mn /ignite.test

If it was absolute then you should see this file recovered in /tmp.

Again if you are up to date on Ignite versions it is pretty reliable.