xfs
[Top] [All Lists]

Re: xfsdump recursive exclusion attribute

To: linux-xfs@xxxxxxxxxxx
Subject: Re: xfsdump recursive exclusion attribute
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Mon, 10 Jun 2002 23:27:09 -0800
In-reply-to: <20020611111728.33525a97.ivanr@xxxxxxx>; from ivanr@xxxxxxx on Tue, Jun 11, 2002 at 11:17:28AM +1000
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <Pine.LNX.4.33.0206101141590.8211-100000@xxxxxxxxxxxxx> <20020611111728.33525a97.ivanr@xxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Tue, Jun 11, 2002 at 11:17:28AM +1000, Ivan Rayner wrote:
> On Mon, 10 Jun 2002 12:15:22 +0200 (CEST), Matteo Centonza wrote:
> 
> > i'm trying to figure out if there's an easy way to skip several
> > subtrees with xsfdump without the need of specifying a bunch of
> > subpaths on the command line.
> 
> This was deliberately not done for mainly two reasons:
> 
> 1. Performance.  The current system of excluding files was able to be
>    implemented in such a way that it had very little performance impact on
>    xfsdump.  Handling directories however, would have had a significant
>    impact as it would have meant invoking the "directory pruning" stage.
> 
> 2. Security.  I felt that allowing a user to exclude an entire directory
>    tree, regardless of the contents of that tree, could very well lead to
>    problems.  Directories owned by Frank could contain files and entire
>    directory trees owned by Joe.  If Frank decides to exclude the tree, Joe
>    will not have any of his files backed up, and Joe wont necessarily know
>    about this until he tries a restore.  It shouldn't be possible for a
>    user to decide whether another user's files get included in a backup.
>    This is a decision for the owner or for the administator.

this is a good point. (though ext2/ext3 do it anyway)

> IMO, the best way to do this would be as an option to xfsdump -- sort of
> an inverse of the -s option.
> 
> At the moment, however, you will either have to set the attribute on all
> the files in the tree you want to exclude, or use the -s option to
> specify all the directory trees you want to include.

a way to specify a glob or regexp for exclusion would be useful, for
example */.mozilla/*/Cache

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpRx2Dc6ZeYe.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>