Date: Wed, 30 Jan 2008 17:24:24 +0000 From: Alex Zbyslaw <xfb52@dial.pipex.com> To: Mikhail Teterin <mi+mill@aldan.algebra.com> Cc: questions@freebsd.org Subject: Re: Automatic `nodump' flag? Message-ID: <47A0B2C8.8060209@dial.pipex.com> In-Reply-To: <200801301139.21989.mi%2Bmill@aldan.algebra.com> References: <200801301139.21989.mi%2Bmill@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A0B2C8.8060209>