regex + sbackup

Todd Slater dontodd at gmail.com
Tue Feb 14 22:05:26 UTC 2006


On 2/14/06, dave s <ubuntu at pusspaws.net> wrote:
> On Tuesday 14 Feb 2006 21:43, Todd Slater wrote:
> > On 2/14/06, dave s <ubuntu at pusspaws.net> wrote:
> > > OK this may be dumb but ...
> > >
> > > I have installed sbackup, it backs us up some directories but I do not
> > > want it to backup any sub directories called just 'data'
> > >
> > > I used the regex option and entered
> > >
> > > ^data$
> > >
> > > It still backs up data directories ... there goes 1GB ... If I change the
> > > regex to just plain
> > >
> > > data
> > >
> > > it works fine but it also excludes 'process_data' python directories.
> > >
> > > Either I have my regex wrong (very possible) or sbackup is not working
> > > the way it should.
> > >
> > > Can anone shed any light on this problem before I commit a bug report ?
> > >
> > > Cheers
> > >
> > > Dave
> >
> > In my setup it excludes using the regex
> >
> > /home/[^/]+?/\.thumbnails
> >
> > which I assume would exclude and .thumbnails directory under /home/.
> >
> > HTH,
> >
> > Todd
>
> I tried ...
>
> /home/dave/test/^data$
>
> and still no go. Does your reg ex actually work. Have you tested it ?

My guess is you'd just use the example I gave and replace .thumbnails
with data, since the name of the directory you want to exclude is
data.

i.e.,

/home/[^/]+?/\data

Todd




More information about the ubuntu-users mailing list