From owner-freebsd-questions Sat Dec 29 1: 9:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by hub.freebsd.org (Postfix) with ESMTP id 6094D37B422 for ; Sat, 29 Dec 2001 01:09:37 -0800 (PST) Received: from blackbox.pacbell.net ([64.166.84.241]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GP300MYQLG03J@mta6.snfc21.pbi.net> for freebsd-questions@freebsd.org; Sat, 29 Dec 2001 01:09:37 -0800 (PST) Received: (from mikem@localhost) by blackbox.pacbell.net (8.11.6/8.11.6) id fBT9LOb59430; Sat, 29 Dec 2001 01:21:24 -0800 (PST envelope-from mikem) Date: Sat, 29 Dec 2001 01:21:24 -0800 From: Mike Makonnen Subject: Re: will dump / restore work on directories rather than filesystems ? In-reply-to: To: Joe Parks Cc: freebsd-questions@freebsd.org Message-id: <200112290921.fBT9LOb59430@blackbox.pacbell.net> MIME-version: 1.0 X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i386--freebsd4.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: 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 If I'm not mistaken dump only works on an entire filesystem (hence, the bad sblock magic number error). The only way to get a specific directory using dump is to set the nodump flag for all the directories except the one you want. This assumes that the directory you want is a top level directory on the partition or slice you want to dump. If it is a subdirectory of a top level directory you cant't set the nodump on the directory tree directly above it, which means you would dump the specific directory you want plus all the directories it is a subdirectory of. Cheers, mikem On Sat, 29 Dec 2001 00:22:15 -0700 "Joe Parks" wrote: > 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message