Re: Using hdup 2.0.0

Miek Gieben <[email protected]> Thu, 11 Nov 2004 15:54:12 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
[On 11 Nov, @ 15:00, Boris wrote in "[hdup-user] Using hdup 2.0.0 ..."]
> I'm trying to work out exactly how the new exclude mechanism works.  The
> following seem to be true, I wonder if they are intentional and will
> continue to work this way?
> 
> A / or ^ at the start of an exclude expression forces it to match at the
> root of the filesystem.  There isn't a way to match at the root of the
> directory tree being backed up.
> 
> The filename can be a partial match -- for instance, the exclude regexp
> "evolution/cache"  will match the filename
> "/home/boris/.evolution/cache"; so will the regexp "lution.ca" .

your right,

> Following from the previous observations, if you want to match just
> "evolution" and not ".evolution", I think you'd have to use something
> like [^.]evolution, since /evolution would force the match to the root
> directory.

yes, exactly, the / is in no way special .

> It would be great to get some of the rules and examples into the man
> page at some point.

Yeah, i'm planning on adding that.

Basicly the regexps match the filename as if the filename was just a
string, nothing fancy is done. I see that this can be awkward, OTOH,
if you can egrep you can get this working :-) Just don't think
'filenames'

I'm using hdup2 myself ofcourse, and I really love the nobackup
feature already :-))

grtz Miek