amrestore usage?
2003-05-23 09:35:58
Hi all,
I'm trying to work out how to restore a specific file (or group of
files) using amrestore and the output from amrecover's list command.
ie: I use amrecover to select a bunch-o-files, and then type 'list
/tmp/restore_me'... the file /tmp/restore_me contains data like this:
TAPE Daily-02 LEVEL 0 DATE 2003-05-17
/bar/quux
TAPE Daily-05 LEVEL 0 DATE 2003-05-20
/foo
/bar/baz
I am trying to write a script that will parse this, and (automagically
knowing the right host and DLE) will restore these files into a specific
directory. However, i can't even construct an amrestore command to do
so...
These are some of my attempts (where host is localhost and the relevant
DLE is /export/home):
sudo amrestore -p /dev/nst0 localhost /export/home 20030520|tar tvf -
sudo amrestore -p /dev/nst0 localhost _export_home 20030520|tar tvf -
sudo amrestore -p /dev/nst0 localhost./export/home.20030520|tar tvf -
sudo amrestore -p /dev/nst0 localhost._export_home.20030520|tar tvf -
sudo amrestore -p /dev/nst0 localhost /export/home 20030520 0|tar tvf -
sudo amrestore -p /dev/nst0 localhost _export_home 20030520 0|tar tvf -
sudo amrestore -p /dev/nst0 localhost./export/home.20030520.0|tar tvf -
sudo amrestore -p /dev/nst0 localhost._export_home.20030520.0|tar tvf -
But no matter what, I seem to come up with the same thing:
amrestore: 0: skipping start of tape: date 20030520 label Daily-00
amrestore: 1: skipping localhost._boot.20030520.0
amrestore: 2: skipping localhost._.20030520.0
amrestore: 3: skipping localhost._usr.20030520.0
amrestore: 4: skipping localhost._export_home.20030520.0
amrestore: 5: reached end of tape: date 20030520
It appears to me as if it's sckipping the very record I want (#4)...
What am I doing wrong?
rr
--
Richard Russell
Yellow Goanna P/L
m: +61 412 827 805
e: richard AT yellowgoanna DOT com
w: http://www.yellowgoanna.com
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- amrestore usage?,
Richard Russell <=
|
|
|