From owner-freebsd-questions@FreeBSD.ORG Tue Oct 10 20:52:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B4FAD16A403 for ; Tue, 10 Oct 2006 20:52:20 +0000 (UTC) (envelope-from chris@childeric.freeserve.co.uk) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A01743D58 for ; Tue, 10 Oct 2006 20:52:17 +0000 (GMT) (envelope-from chris@childeric.freeserve.co.uk) Received: from [172.23.170.144] (helo=anti-virus03-07) by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) id 1GXOaG-0002Yp-Aa for freebsd-questions@freebsd.org; Tue, 10 Oct 2006 21:52:16 +0100 Received: from [82.35.115.93] (helo=[192.168.10.60]) by asmtp-out5.blueyonder.co.uk with esmtpa (Exim 4.52) id 1GXOaC-0001w5-3h for freebsd-questions@freebsd.org; Tue, 10 Oct 2006 21:52:12 +0100 Message-ID: <452C07F8.7050108@childeric.freeserve.co.uk> Date: Tue, 10 Oct 2006 21:52:08 +0100 From: Chris Whitehouse User-Agent: Thunderbird 1.5 (X11/20060417) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: unattended restore in script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 20:52:20 -0000 Hi all I've got commands like this in a script which is supposed to do an unattended clone of a hard disk dump 0af - /usr |restore xf - It does the dump and restore ok but then stops and prompts me with something like DUMP: DUMP IS DONE set owner/mode for '.'? [y/n] Can I modify the command so it doesn't prompt? I couldn't see anything in restore's man page except -x restores ownership and modes "where possible". Is it not possible on my system for some reason? I've also tried to include an 'echo y' in the command but without success. Thanks very much, sorry for such a trivial question. Chris FreeBSD 6.2-PRERELEASE #1: Sat Sep 16 12:05:57 BST 2006 i386