Date: Sat, 29 Dec 2001 01:21:24 -0800 From: Mike Makonnen <mike_makonnen@yahoo.com> To: Joe Parks <pleaseworky@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: will dump / restore work on directories rather than filesystems ? Message-ID: <200112290921.fBT9LOb59430@blackbox.pacbell.net> In-Reply-To: <F54kuO4sBsQ1TdsCLHB000123c8@hotmail.com> References: <F54kuO4sBsQ1TdsCLHB000123c8@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <pleaseworky@hotmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112290921.fBT9LOb59430>