LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dump restore: not found on tape (http://www.linuxquestions.org/questions/linux-newbie-8/dump-restore-not-found-on-tape-539280/)

remargorp 03-21-2007 06:00 AM

dump restore: not found on tape
 
I have an external hard drive mounted to /bkroot, here's the line from fstab:
Code:

/dev/sda1              /media/usbdisk          ext3    pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
I mount like this:
Code:

# mount /dev/sda1 /bkroot
I performed backup like this:
Code:

/sbin/dump -0uz -A "/bkroot/bkups/testHome.toc" -L "testHome" -f "/bkroot/bkups/testHome.bk" /home
When I try to restore, I can see all files inside the testHome.bk, but when I try to restore I get: <filename> not found on tape. Here's an example session:
Code:

# restore if /bkroot/bkups/testHome.bk
Dump tape is compressed.
restore > ls
.:
myhome/

restore > add myhome
restore > extract
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume # (none if no more volumes): none
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume # (none if no more volumes): none
./myhome/file1: (inode 426509) not found on tape
./myhome/file2: (inode 524289) not found on tape
./myhome/file3: (inode 524362) not found on tape
set owner/mode for '.'? [yn] n

I've tried umounting the /home partitioning and then doing the dump, but still get the same results?? Any Ideas??

remargorp 03-21-2007 07:47 PM

I figured it out. I should have read the man pages more carefully ;)

I needed to use "1" instead of "none" when restore asks to "Specify next volume #".

So here's a successfull restore session:
Code:

# /sbin/restore if /bkroot/bkups/testHome.bk
/sbin/restore > cd myhome/myfile
/sbin/restore > add myfile
/sbin/restore > extract
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume # (none if no more volumes): 1
Mount tape volume 1

Enter ``none'' if there are no more tapes
otherwise enter tape name (default: /bkroot/bkups/testHome2.bk)
resync restore, skipped 96 blocks

set owner/mode for '.'? [yn] set owner/mode for '.'? [yn] n

From the dump man page:
Quote:

A dump that is larger than the output medium is broken into multiple volumes. On most media the size is determined by writing until an end-of-media indication is returned.
From the restore man page:
Quote:

If a backup was made using more than one tape volume, restore will notify the user when it is time to mount the next volume. If the -x or -i flag has been specified, restore will also ask which volume the user wishes to mount. The fastest way to extract a few files is to start with the last volume, and work towards the first volume.


All times are GMT -5. The time now is 06:35 PM.