From owner-freebsd-questions Mon Feb 25 3:28:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 7BB7337B402 for ; Mon, 25 Feb 2002 03:28:38 -0800 (PST) Received: (qmail 66448 invoked by uid 100); 25 Feb 2002 11:28:35 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15482.8162.546271.768661@guru.mired.org> Date: Mon, 25 Feb 2002 05:28:34 -0600 To: "Anthony Atkielski" Cc: questions@freebsd.org Subject: Re: Default nodump flag on certain structures In-Reply-To: <72195866@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 Anthony Atkielski types: > Are there any files or directories in FreeBSD that have the nodump flag set > by default? No. About the only flags that are set by default are noschg, to protect critical system files when running at elevated security. > Also, are there other ways to tell dump not to save a specific directory? No. For things like that, I recommend a separate partition for the files. Then mount it, and dump will ignore it no matter what you do. > Finally, I seem to recall that there is a way to find files with specific > flags set, but I can't remember what command does this. If I remember > correctly, can someone remind me which command allows this to be done? Whenever the question starts with "I want to find files with", the answer on Unix is usually the fourth word. Not always, but it's worth checking the man page. Doing so turns up the following, run as root: "find / -flags +nodump". In the cases where find isn't the answer, it can probably provide it anyway :-). If you have non-ufs file systems, you may want to run it on each local file system separately with -x, or do something like find / \( \! -fstype ufs -prune \) -or -flags +nodump http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message