Re: Using hdup 2.0.0
Miek Gieben <[email protected]> Thu, 11 Nov 2004 19:12:51 +0100
| Newsgroups | gmane.comp.sysutils.backup.hdup.general |
|---|---|
| Message-ID | <[email protected]> |
[On 11 Nov, @ 17:50, Boris wrote in "Re: [hdup-user] Using hdup 2.0 ..."] > On Thu, 2004-11-11 at 15:54 +0100, Miek Gieben wrote: > > yes, exactly, the / is in no way special . > > I see, I was mistaken about / being special at the beginning of the > pattern. It does not force it to the root of the filesystem. ^/ should > do that. That's better than I thought, actually. > > The / at the end is only very slightly special - it causes a "Now > Leaving" message to be output with the -VV flag. Without the trailing / > there is no message but the directory is still excluded, which confused > me the first few times through. (And of course without the trailing / > you could catch a non-directory file of the same name, but that follows > from the "just match against the pathname" rule, if you imagine all > directories being written with their trailing / when they're compared > against the regexp). it worth thinking about this... right now it's like this: if the pattern ENDS in a / it is only applied to a directory, all other patterns are applied to files. I will look into this, because when I look at the code I cannot see this happening... Btw, a new hdup2.0.0 is up on the website in which the incremental backup stuff is working again. It should also be faster, 'cause there isn't a 'lstat' in there anymore for every file/dir encountered. grtz Miek