From owner-freebsd-questions@FreeBSD.ORG Fri Jan 21 16:38:24 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0452C16A4CE for ; Fri, 21 Jan 2005 16:38:24 +0000 (GMT) Received: from rambo.401.cx (rambo.401.cx [80.65.205.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A05D43D49 for ; Fri, 21 Jan 2005 16:38:23 +0000 (GMT) (envelope-from listsub@401.cx) Received: from [127.0.0.1] (rocky [192.168.200.2]) by rambo.401.cx (8.13.1/8.13.1) with ESMTP id j0LGcHFq022230; Fri, 21 Jan 2005 17:38:18 +0100 (CET) (envelope-from listsub@401.cx) Message-ID: <41F13011.7070809@401.cx> Date: Fri, 21 Jan 2005 17:38:41 +0100 From: "Roger 'Rocky' Vetterberg" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ruben de Groot References: <41EBB986.7080402@401.cx> <20050121145052.GB77707@ei.bzerk.org> In-Reply-To: <20050121145052.GB77707@ei.bzerk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0503-2, 2005-01-21), Outbound message X-Antivirus-Status: Clean cc: FreeBSD Questions Subject: Re: running restore non-interactive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2005 16:38:24 -0000 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