1828402 Members
3326 Online
109977 Solutions
New Discussion

Re: restore files

 
SOLVED
Go to solution
juno2
Super Advisor

restore files

I want to restore the file from the tape , the backup is made by "tar" , I have generated the file list of the tape , (tar -tvf /dev/st0 ) , the files as below,
a/file1
a/file2
a/file3
b/file1
b/file2
b/file3
c/file1
c/file2
c/file3
"
"
"


I want to restore the file for one time instead of restore it one by one , I tried " tar -xvf /dev/st0 * " , it seems no files is restored , can suggest how can I restore it ? thx

4 REPLIES 4
Balaji N
Honored Contributor
Solution

Re: restore files

hi

a simple tar -xvf /dev/st0 will restore all files on the tape.

is that what you require.

if you want to do specific files then do,

tar -xvf /dev/st0 file1 file2 file3.


here the wild card * wont help because when the shell interprests it, it will be like

tar -xvf /dev/st0

which are likely not to be on the tape.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
juno2
Super Advisor

Re: restore files

it is ok ,thx
Balaji N
Honored Contributor

Re: restore files

hmm...

how abt spending some time now assigning points to those invaluable help u have received from all.
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Caesar_3
Esteemed Contributor

Re: restore files

Hello!

You don't need to use the * because the default is to restore all the files,
if you want to use the * as parameter and
not give to shell return a list of files
then use the "*" but no need in for you.

Caesar