LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-12-2013, 12:57 PM   #1
spcm0012
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
Question Debian - Restore Command


Hi Everyone,

I am trying to restore a file from tape using the restore command. The following is the command I'm using:

Code:
restore -i -f /dev/st0
This works correctly and I am able to navigate through the tape and find the file I want to restore. However, after adding the file to the list, and using the extract command, and giving the next volume as "1", the process just hangs.

I believe it is supposed to prompt me for owner/mode, where I would just say 'Y', but that never happens.




What might cause this, and does anyone have any help about how I might be able to restore that file?
 
Old 11-13-2013, 12:05 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
To further diagnose the problem I suggest that immediately after your command:
add openstrt.1
you issue a command:
ls
to see if openstrt.1 was actually added to the list of files to be restored.

--------------------------
Steve Stites
 
Old 11-14-2013, 06:03 AM   #3
spcm0012
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Here's an update:

After getting fed up with it, I ran it until it reach the point where it hangs, and then I just left it. I came back to it later that night and it had moved onto the next step.

It's the first time I've used this command, I'm not sure if it's supposed to take this long or not, but it did work after waiting a while for it to move on.

Last edited by spcm0012; 11-14-2013 at 06:28 AM.
 
Old 11-14-2013, 06:27 AM   #4
spcm0012
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
To further diagnose the problem I suggest that immediately after your command:
add openstrt.1
you issue a command:
ls
to see if openstrt.1 was actually added to the list of files to be restored.

--------------------------
Steve Stites
Hi Steve,

The ls command in this situation does not print items added to the list of restores. Ls simply lists the items in this directory within the tape.

I read through the man pages for restore and did some research online, never found out how to actually output a list of items added to the extraction list.

I did however get annoyed enough to just start the command and walk away and just wait for it. Eventually it moved onto the next part where it asks for the owner/mode. And from there, it worked fine.

The openstrt.1 file wasn't particularly big either which is strange.

This is the first time I've had to use that command though, so it's possible that it's completely normal for it to take a long time to go through.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
restore command Ajay Mozar Linux - Newbie 1 03-10-2009 07:16 AM
Doubt about command restore kinai Linux - Newbie 2 08-04-2008 07:05 PM
Postgresql restore command :: Which one to use? custangro Linux - Server 1 06-17-2008 05:29 PM
How to restore files using the restore command ? SKYNAT Linux - Newbie 2 12-28-2007 10:26 PM
Restore command chuck77 Linux - General 2 03-26-2002 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration