1836358 Members
2530 Online
110100 Solutions
New Discussion

vxrestore

 
SOLVED
Go to solution
Sigma
Advisor

vxrestore

Hello,
I'm using the following command:

vxdump 0f - /dev/vx/dsk/datavol | (cd /mnt ; vxrestore xf - )

At the end, it's ask a question.
set owner/mode "." ? (y/n)

How can i ask "Yes" automatiquely ?


Thanks,
Steve
10 REPLIES 10
Sandman!
Honored Contributor
Solution

Re: vxrestore

Add the "-y" switch to the vxrestore command. That should do it for the most part.

hope it helps!
Sigma
Advisor

Re: vxrestore

I'll give it a shot.

Thanks
Sandman!
Honored Contributor

Re: vxrestore

Steve,

Letme know if that switch worked???

thx
Sigma
Advisor

Re: vxrestore

It did not work. After doing some addtional research I was able to determine that there is no switch that will work. Thanks for you input.
Alzhy
Honored Contributor

Re: vxrestore

The correct syntax should be to use "-rf" insted of "-xf" on teh vxrestore end of the pipe.
Hakuna Matata.
Sigma
Advisor

Re: vxrestore

From what I've read using the -r can cause problems....data corruption?? Is that correct? Thanks
Sandman!
Honored Contributor

Re: vxrestore

Steve,

Try the following command pipeline. Basically this inserts an "echo" command into the parenthesized command group. Also I preceded the "xf" switch with a "-".

# vxdump 0f - /dev/vx/dsk/datavol | (cd /mnt ; vxrestore -xf - ; /usr/bin/echo "y")

hope this helps!!!
Sigma
Advisor

Re: vxrestore

I'll try it.

Thanks for the input.
Sandman!
Honored Contributor

Re: vxrestore

Let me know if this code snippet worked???

thx
Alzhy
Honored Contributor

Re: vxrestore

Data corruption? I don't think so.
Hakuna Matata.