Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restoring i-node backup

Status
Not open for further replies.

khalidaaa

Technical User
Jan 19, 2006
2,323
BH
Hi all,

I'm trying to restore a file inside a backup tape that was backedup using i-node in the following script:

Code:
unmount /image2

backup -0 -uf/dev/rmt0 /image2

if [ $? -eq 0 ]
then
  echo "\n\n VOL3 backup completed successfully. "
  echo "ok" > /tmp/weekly_VOL3_backup_status
else
up "
  echo "bad" > /tmp/weekly_VOL3_backup_status
  read
  return
fi

Mount /image2

This backup job takes 3 tapes.

Now i'm trying to restore a directory inside the tape using this command:

Code:
restore -xvqf /dev/rmt0 ./images/vault/777/

I run this command on the first tape showing the following output:

Code:
./images/vault/777/192601.dwg is not on the archive.
./images/vault/777/192602.dwg is not on the archive.
./images/vault/777/192603.dwg is not on the archive.
./images/vault/777/192604.dwg is not on the archive.
./images/vault/777/192605.dwg is not on the archive.
./images/vault/777/192606.dwg is not on the archive.
./images/vault/777/192607.dwg is not on the archive.
./images/vault/777/192608.dwg is not on the archive.
./images/vault/777/192609.dwg is not on the archive.
./images/vault/777/192610.dwg is not on the archive.
./images/vault/777/192611.dwg is not on the archive.
./images/vault/777/192612.dwg is not on the archive.
./images/vault/777/192613.dwg is not on the archive.
./images/vault/777/192614.dwg is not on the archive.
./images/vault/777/192615.dwg is not on the archive.
./images/vault/777/192616.dwg is not on the archive.
./images/vault/777/192617.dwg is not on the archive.
./images/vault/777/192618.dwg is not on the archive.
./images/vault/777/192619.dwg is not on the archive.
./images/vault/777/192620.dwg is not on the archive.
./images/vault/777/192621.dwg is not on the archive.
./images/vault/777/192622.dwg is not on the archive.
./images/vault/777/192623.dwg is not on the archive.
./images/vault/777/192624.dwg is not on the archive.
./images/vault/777/192629.dwg is not on the archive.
./images/vault/777/192626.dwg is not on the archive.
./images/vault/777/192627.dwg is not on the archive.
./images/vault/777/192628.dwg is not on the archive.
./images/vault/777/192631.dwg is not on the archive.
./images/vault/777/192632.dwg is not on the archive.
./images/vault/777/192633.dwg is not on the archive.
./images/vault/777/192634.dwg is not on the archive.
./images/vault/777/192635.dwg is not on the archive.
./images/vault/777/192636.tif is not on the archive.
./images/vault/777/192636.bak is not on the archive.
./images/vault/777/192636.dwg is not on the archive.
./images/vault/777/192636.siz is not on the archive.
./images/vault/777/192636.ref is not on the archive.
./images/vault/777/192637.dwg is not on the archive.
./images/vault/777/192638.dwg is not on the archive.
./images/vault/777/192638.bak is not on the archive.
./images/vault/777/192639.dwg is not on the archive.
./images/vault/777/192639.bak is not on the archive.
./images/vault/777/192640.dwg is not on the archive.
./images/vault/777/192640.bak is not on the archive.
./images/vault/777/192641.dwg is not on the archive.
./images/vault/777/192642.dwg is not on the archive.
./images/vault/777/192643.dwg is not on the archive.
./images/vault/777/192644.dwg is not on the archive.
./images/vault/777/192645.dwg is not on the archive.
./images/vault/777/192646.dwg is not on the archive.
./images/vault/777/192731.dwg is not on the archive.
./images/vault/777/192731.bak is not on the archive.
./images/vault/777/192732.dwg is not on the archive.
./images/vault/777/192732.bak is not on the archive.
./images/vault/777/192733.dwg is not on the archive.
./images/vault/777/192648.tif is not on the archive.
./images/vault/777/192649.tif is not on the archive.
./images/vault/777/192650.tif is not on the archive.
./images/vault/777/192651.tif is not on the archive.
./images/vault/777/192652.tif is not on the archive.
./images/vault/777/192653.tif is not on the archive.
./images/vault/777/192654.tif is not on the archive.
./images/vault/777/192655.tif is not on the archive.
./images/vault/777/192656.tif is not on the archive.
./images/vault/777/192657.tif is not on the archive.
./images/vault/777/192658.tif is not on the archive.
./images/vault/777/192659.tif is not on the archive.
./images/vault/777/192660.tif is not on the archive.
./images/vault/777/192661.tif is not on the archive.
./images/vault/777/192662.dwg is not on the archive.
./images/vault/777/192662.bak is not on the archive.
./images/vault/777/192663.dwg is not on the archive.
./images/vault/777/192663.pdf is not on the archive.
./images/vault/777/192664.dwg is not on the archive.
./images/vault/777/192665.dwg is not on the archive.
./images/vault/777/192666.dwg is not on the archive.
./images/vault/777/192667.dwg is not on the archive.
./images/vault/777/192668.dwg is not on the archive.
./images/vault/777/192669.dwg is not on the archive.
./images/vault/777/192670.dwg is not on the archive.
./images/vault/777/192671.dwg is not on the archive.
./images/vault/777/192672.dwg is not on the archive.
./images/vault/777/192673.dwg is not on the archive.
./images/vault/777/192674.dwg is not on the archive.
./images/vault/777/192675.dwg is not on the archive.
./images/vault/777/192676.dwg is not on the archive.
./images/vault/777/192677.dwg is not on the archive.
./images/vault/777/192678.dwg is not on the archive.
./images/vault/777/192679.dwg is not on the archive.
./images/vault/777/192680.dwg is not on the archive.
./images/vault/777/192681.dwg is not on the archive.
./images/vault/777/192682.dwg is not on the archive.
./images/vault/777/192683.dwg is not on the archive.
./images/vault/777/192684.dwg is not on the archive.
./images/vault/777/192685.dwg is not on the archive.
./images/vault/777/192686.dwg is not on the archive.
./images/vault/777/192687.dwg is not on the archive.
./images/vault/777/192688.dwg is not on the archive.
./images/vault/777/192689.dwg is not on the archive.
./images/vault/777/192690.dwg is not on the archive.
./images/vault/777/192691.dwg is not on the archive.
./images/vault/777/192692.dwg is not on the archive.
./images/vault/777/192693.dwg is not on the archive.
./images/vault/777/192694.dwg is not on the archive.
./images/vault/777/192695.dwg is not on the archive.
./images/vault/777/192696.dwg is not on the archive.
./images/vault/777/192697.dwg is not on the archive.
./images/vault/777/192698.dwg is not on the archive.
./images/vault/777/192699.dwg is not on the archive.
./images/vault/777/192700.dwg is not on the archive.
./images/vault/777/192701.dwg is not on the archive.
./images/vault/777/192702.dwg is not on the archive.
./images/vault/777/192703.dwg is not on the archive.
./images/vault/777/192704.dwg is not on the archive.
./images/vault/777/192705.dwg is not on the archive.
./images/vault/777/192706.dwg is not on the archive.
./images/vault/777/192707.dwg is not on the archive.
./images/vault/777/192708.dwg is not on the archive.
./images/vault/777/192709.dwg is not on the archive.
./images/vault/777/192710.dwg is not on the archive.
./images/vault/777/192711.tif is not on the archive.
./images/vault/777/192712.tif is not on the archive.
./images/vault/777/192712.sup is not on the archive.
./images/vault/777/192713.tif is not on the archive.
./images/vault/777/192714.tif is not on the archive.
./images/vault/777/192714.sup is not on the archive.
./images/vault/777/192715.tif is not on the archive.
./images/vault/777/192716.tif is not on the archive.
./images/vault/777/192717.tif is not on the archive.
./images/vault/777/192718.tif is not on the archive.
./images/vault/777/192719.tif is not on the archive.
./images/vault/777/192720.tif is not on the archive.
./images/vault/777/192721.tif is not on the archive.
./images/vault/777/192721.sup is not on the archive.
./images/vault/777/192722.tif is not on the archive.
./images/vault/777/192722.sup is not on the archive.
./images/vault/777/192723.tif is not on the archive.
./images/vault/777/192723.sup is not on the archive.
./images/vault/777/192724.tif is not on the archive.
./images/vault/777/192725.tif is not on the archive.
./images/vault/777/192726.tif is not on the archive.
./images/vault/777/192726.sup is not on the archive.
./images/vault/777/192727.tif is not on the archive.
./images/vault/777/192727.sup is not on the archive.
./images/vault/777/192728.tif is not on the archive.
./images/vault/777/192729.tif is not on the archive.
./images/vault/777/192729.sup is not on the archive.
./images/vault/777/192734.xls is not on the archive.
Extracting requested files.
You have not read any media yet.
Unless you know which volume your file or files are on, you should start
with the last volume and work towards the first volume.
Specify the next volume number: 3
Mount volume 3;
Enter the device name. The default is /dev/rmt0.

Synchronizing restore again; skipped 1232 blocks.
Restore is adding links.
Setting directory mode, owner, and times.
Do you want to set the owner or the mode for the current
        directory? [ yes or no ] no

when this finshes i still don't see any thing but the following directories created:

Code:
[edmsold]{root}/image3>ls -al
total 56
drwxrwsrwx   3 dmadmin  dmgrp           512 May 20 13:56 .
drwxr-xr-x  45 root     system         2048 May 16 13:03 ..
drwxr-sr-x   3 dmadmin  dmgrp           512 Nov 22 15:02 images
-rw-r--r--   1 root     dmgrp         12850 May 20 13:59 restore.log
[edmsold]{root}/image3>cd images
[edmsold]{root}/image3/images>ls -al
total 24
drwxr-sr-x   3 dmadmin  dmgrp           512 Nov 22 15:02 .
drwxrwsrwx   3 dmadmin  dmgrp           512 May 20 13:56 ..
drwxr-xr-x   2 dmadmin  dmgrp           512 Apr 16 10:10 vault
[edmsold]{root}/image3/images>cd vault
[edmsold]{root}/image3/images/vault>ls -al
total 16
drwxr-xr-x   2 dmadmin  dmgrp           512 Apr 16 10:10 .
drwxr-sr-x   3 dmadmin  dmgrp           512 Nov 22 15:02 ..

any idea why this is happening?? am i using the right command for i-node backups?

Regards
Khalid
 
try it in interactive mode

restore -if /dev/rmt0.1

not sure if you can do that in an inode backup, and maybe we've already answered that before, but start with vol 1 when it asks. cd to the right dir and "add" the files.
 
oh Thanks Breslau for this tip

but i did what you said and i still couldn't find the diretory i'm looking for!!!

when i do ls after cd to /images/vault i don't see the directory 777!!! but it should be there coz it was there a week before backing up the system!!!

any comments?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top