From owner-freebsd-questions Fri Dec 28 23:22:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f54.law9.hotmail.com [64.4.9.54]) by hub.freebsd.org (Postfix) with ESMTP id 85A6F37B41A for ; Fri, 28 Dec 2001 23:22:15 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 28 Dec 2001 23:22:15 -0800 Received: from 65.30.229.190 by lw9fd.law9.hotmail.msn.com with HTTP; Sat, 29 Dec 2001 07:22:15 GMT X-Originating-IP: [65.30.229.190] From: "Joe Parks" To: freebsd-questions@freebsd.org Subject: will dump / restore work on directories rather than filesystems ? Date: Sat, 29 Dec 2001 00:22:15 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Dec 2001 07:22:15.0380 (UTC) FILETIME=[8A78E940:01C19039] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I have been successfully using dump / restore - first I do a dump of a _filesystem_ with a command like this: dump -0a -f /my-dump /dev/da0s1a (make a dump of / filesystem) And then I restore it with: restore -x -f /my-dump (while my pwd is where I want to extract it) So far so good. --------------- But now, I would like to dump only a subset of the files on a filesystem. That is, I want to dump, and only dump a specific directory structure. I tried this three ways - with the dir structure in mind as my pwd, I tried a '.', the full path without a trailing slash, and finally the full path with a trailing slash. Here are the results: server# dump -0a -f /my-dump . DUMP: Date of this level 0 dump: Wed Dec 26 08:50:58 2001 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping . to /my-dump DUMP: bad sblock magic number DUMP: The ENTIRE dump is aborted. server# dump -0a -f /my-dump /full/path DUMP: Date of this level 0 dump: Wed Dec 26 08:51:22 2001 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /full/path to /my-dump DUMP: bad sblock magic number DUMP: The ENTIRE dump is aborted. server# dump -0a -f /my-dump /full/path/ DUMP: Date of this level 0 dump: Wed Dec 26 08:51:24 2001 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /full/path/ to /my-dump DUMP: bad sblock magic number DUMP: The ENTIRE dump is aborted. As can be seen, it did not work. So the question is, how can I `dump` a subset of an entire filesystem, and not the entire filesystem itself ? I am against using `tar` for this, since the subset in mind has special files in it (/dev - like files), etc., and I have read carefully the comments of freebsd-core members who have said, in the past: "use dump or you will lose". Your comments/help appreciated. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message