From owner-freebsd-questions@FreeBSD.ORG Wed Jan 30 17:53:42 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB1CE16A419 for ; Wed, 30 Jan 2008 17:53:42 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from mk-outboundfilter-1.mail.uk.tiscali.com (mk-outboundfilter-1.mail.uk.tiscali.com [212.74.114.37]) by mx1.freebsd.org (Postfix) with ESMTP id 4A10D13C459 for ; Wed, 30 Jan 2008 17:53:42 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) X-Trace: 30084750/mk-outboundfilter-1.mail.uk.tiscali.com/PIPEX/$MX-ACCEPTED/pipex-infrastructure/62.241.162.32 X-SBRS: None X-RemoteIP: 62.241.162.32 X-IP-MAIL-FROM: xfb52@dial.pipex.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAPxBoEc+8aIg/2dsb2JhbACReZ4+ X-IP-Direction: IN Received: from ranger.systems.pipex.net ([62.241.162.32]) by smtp.pipex.tiscali.co.uk with ESMTP; 30 Jan 2008 17:24:29 +0000 Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by ranger.systems.pipex.net (Postfix) with ESMTP id CF571E00008B; Wed, 30 Jan 2008 17:24:28 +0000 (GMT) Message-ID: <47A0B2C8.8060209@dial.pipex.com> Date: Wed, 30 Jan 2008 17:24:24 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: Mikhail Teterin References: <200801301139.21989.mi+mill@aldan.algebra.com> In-Reply-To: <200801301139.21989.mi+mill@aldan.algebra.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Automatic `nodump' flag? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 17:53:42 -0000 Mikhail Teterin wrote: >I'd like the entire contents of each user's .mozilla/firefox/*/Cache directory >to be excluded from the regular filesystem dumps. > >Running ``chflags -R nodump /home/*/.mozilla/firefox/*/Cache'' does the trick, >but this needs to be redone daily -- prior to running the backup -- because >new entries appear in the caches, obviously... The new entries don't have the >nodump flag set. > >Is there a way, the flag can be set automatically? For example, inherited from >the directory? Thanks! > > Well, the nodump flag is sort of inherited from the directory, since if the directory has the flag neither it nor anything in it will be dumped (assuming correct use of -h flag. -h 0 ensuring *never* dumped). Have you tried just setting the flag on the directories? It works for me... --Alex PS It's a slightly different problem if you do want the directory dumped but not any files in it; then you do have to resort to palaver like the above. You could write a script or an alias that does the chflags and then runs the dump, though.