On Tue, 17 Jul 2001 at 9:54am, Rivera, Edwin wrote

> my next question (as basic as it may be) is: how can i read/manipulate that
> image?  i've tried piping the amrestore command to "| /sbin/restore -ivb 2
> -" , but it's not actually restoring the data onto the hdd.  i'm not very
> familiar with backup images.

The '-i' flag tells restore that you want to do an interactive restore --
i.e. get a command line, select files, and then extract those select
files.  I don't know if that will work in a pipe -- I'm guessing no.
Also, you probably don't need to specify the blocksize ('-b 2').
Finally, you need to tell restore what to restore from.  You think you did
(via the '-'), but you didn't, because you need the '-f' flag.

To just restore the whole image, you can pipe amrestore to
'/sbin/restore -xf -'.  To pick and choose files from the image (without
using amrecover), amrestore the image to disk, then
'/sbin/restore -if image.name'.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

Reply via email to