From owner-freebsd-questions@FreeBSD.ORG Tue Feb 5 04:09:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1CE916A46C for ; Tue, 5 Feb 2008 04:09:12 +0000 (UTC) (envelope-from francois-xavier@charpentier-de-beauville.com) Received: from vms173003pub.verizon.net (vms173003pub.verizon.net [206.46.173.3]) by mx1.freebsd.org (Postfix) with ESMTP id B2D9113C4EE for ; Tue, 5 Feb 2008 04:09:12 +0000 (UTC) (envelope-from francois-xavier@charpentier-de-beauville.com) Received: from [127.0.0.1] ([70.107.210.24]) by vms173003.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JVQ009G3WM2PWK2@vms173003.mailsrvcs.net> for freebsd-questions@freebsd.org; Mon, 04 Feb 2008 21:06:10 -0600 (CST) Date: Mon, 04 Feb 2008 22:08:51 -0500 From: Francois-Xavier Charpentier de Beauville To: freebsd-questions@freebsd.org Message-id: <47A7D343.1090603@charpentier-de-beauville.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) Subject: Preserving file permissions with dump and restore X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: francois-xavier@charpentier-de-beauville.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 04:09:12 -0000 Hi, I have a box with three hard drives: /dev/da0 - dedicated to the OS /dev/ad4s1e - data drive - mounted as /store /dev/ad5s1e - hold a backup of /dev/ad4 - mounted as /backup I used 'dump' to backup everything from /store to /backup with the following command: dump -0aun -f /backup/fullbackup /store As expected, the result is a dump file called 'fullbackup' Then I tested a restore, by restoring the fullbackup file from /backup to /store. I did the following: 1) made /store pristine: newfs -U /dev/ad4s1e 2) mounted /dev/ad4s1e on /store 3) cd into /store 4) ran the command: restore -r -uv -f /backup/fullbackup 5) remove 'restoresymtable' from /store The restore went fine and I had all the files back. However, all file permissions were gone. How can I preserve file permissions with dump / restore? Thanks in advance for your help