LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-21-2007, 06:00 AM   #1
remargorp
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Rep: Reputation: 0
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??
 
Old 03-21-2007, 07:47 PM   #2
remargorp
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
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.

Last edited by remargorp; 03-21-2007 at 07:48 PM.
 
  


Reply

Tags
backup, dump, restore


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
restore from dump killed wiggers Linux - Newbie 0 11-24-2005 04:54 PM
dump restore: not found on tape eddi.b Linux - Newbie 1 02-05-2004 08:36 AM
dump/restore moger Linux - Software 4 12-31-2002 04:34 AM
dump and restore nat Linux - General 1 04-26-2002 04:08 AM


All times are GMT -5. The time now is 05:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration