Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2005 17:38:41 +0100
From:      "Roger 'Rocky' Vetterberg" <listsub@401.cx>
To:        Ruben de Groot <mail25@bzerk.org>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: running restore non-interactive
Message-ID:  <41F13011.7070809@401.cx>
In-Reply-To: <20050121145052.GB77707@ei.bzerk.org>
References:  <41EBB986.7080402@401.cx> <20050121145052.GB77707@ei.bzerk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Ruben de Groot wrote:
> On Mon, Jan 17, 2005 at 02:11:34PM +0100, Roger 'Rocky' Vetterberg typed:
> 
>>Hi list.
>>
>>  Im trying to setup a machine to mirror its entire drive using 
>>dump/restore to a secondary drive.
>>The dump works fine, but at the end of each session, restore always 
>>asks "set owner/mode for '.'"?. This makes it impossible to automate 
>>the task, which is what I would to accomplish.
> 
> 
> What exact commands are you using? I have scripts doing 
> 
> cd /mnt/drive2/partitionX
> dump 0aLf - /partitionX | restore rf -
> 
> without being asked anything.

I was using 'restore xf -', but after reading the manpage again I see 
that using -r like you do is the way to go.
Unbelievable that noone else has noticed this, there are hundreds of 
posts on the internet discussing this very issue.

Many thanks, you just saved me a lot of trouble!

--
R




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41F13011.7070809>