Automatic `nodump' flag?

Alex Zbyslaw xfb52 at dial.pipex.com
Wed Jan 30 09:53:42 PST 2008


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.



More information about the freebsd-questions mailing list