cancel
Showing results for 
Search instead for 
Did you mean: 

How to restore from partial image from import NBU 6.0

Janet_White_2
Level 3
..one of those weeks, I saw a prior thread (3.4 I think) about changing the flist; then re-import so netbackup thinks there are only fragments on the tapes that I have. The remaining in the set is unusable. I was able to import 2 of the tapes and I am pretty confident the files I need are on the tapes that I have,(backup was done 2 years ago) my master is unix so my catalog is binary. Bob Stump mentioned a cat_convert , but can't find that anywhere... The client I need to restore is Windows 2000, looked in admin guides for restore using tar, and couldn't find anything. I really need these files.

Does anyone know a way to restore files when they do not show up in the GUI due to the import could not complete? Thank you for your time.
14 REPLIES 14

zippy
Level 6
Janet,

You can use tar.

-/usr/openv/netbackup/bin # ./tar
you must specify exactly one of the r, c, t, x, or d options

For more information, type ``./tar +help''.

tape archive command that is shipped with Netbackup wil allow you to pull data from a tape.

tar -tvf /dev/rmt/tape_device will allow you to view whats on the tape.

JD

Janet_White_2
Level 3
THANK YOU!!!!

zippy
Level 6
No problem

JD

Merry Christmas

Janet_White_2
Level 3
you too!

Janet_White_2
Level 3
ok, need more help please...

mounted using unix mt command

/usr/openv/netbackup/bin/./tar -tvf /dev/rmt/c33t0d2BESTnb
Blocksize = 2 records
Hmm, this doesn't look like a tar archive.
Skipping to next file header...
?--------- 0/0 0 Dec 31 19:00 1969
unknown file type '{'

then tar ends, the tape is the one that was imported starting with 1 of 7 fragments

zippy
Level 6
Umm bad

did you rewind the tape with mt

man mt
I think its rew

JD

zippy
Level 6
http://forums.symantec.com/discussions/thread.jspa?messageID=4440573쇽

look here

Janet_White_2
Level 3
yes I did

mt -f /dev/rmt/c33t0d2 rew

zippy
Level 6
it may be compressed

Dennis_Strom
Level 6
This is what i used. If you used software compression or if the tape was multiplexed using tar will not work. Also I think you will have more success if you use GNU tar since that is what Netbackup uses.

to extract data from backup tape

tpreq -ev I01882 -a r -d 8mm -p FULL -f /openv/I01882
vmoprcmd -d
tpconfig -d
mt -f /openv/I01882 rew
mt -f /openv/I01882 stat
mt -f /openv/I01882 fsf
mt -f /openv/I01882 fsr
/usr/openv/netbackup/bin/tar -tvf /openv/I01882
/usr/openv/netbackup/bin/tar -xvf /openv/I01882 -b 64
/usr/openv/volmgr/bin/tpunmount /openv/I01882

Stumpr2
Level 6
This is old but it also has a lot of detail

How do I restore a netbackup tape using just the "tar" command?
http://www.backupcentral.com/foms/netbackup-serve/cache/192.html

Janet_White_2
Level 3
Dennis...

this was much better than helpful.... brilliant... unfortunately I am getting I/O errors 1/3 through the tape (tar -tvf). but the information you supplied is just what I needed thank you.

Dennis_Strom
Level 6
Just glad I could help.
Thank you

Sorry to hear about the bum tape.

Janet_White_2
Level 3
sorry for the late response... actually I don't think the tape is bad, it is mpx so the tar won't work.. Valuable lesson learned there. Thanks also to Bob, for the thread very good info.