On Thu, 24 Aug 2006, Jeff Portwine wrote:
> Sorry I should've been more clear.. user1, user2, etc.. are just placeholders
> for actual directory names. I actually have about 8 or 9 directories with
> nothing in common in their names. I was just giving generic names to show
> what I was attempting to do.
In that case, try
./home/{user1,user2,user3,user4}*
> ----- Original Message ----- From: "Ken D'Ambrosio" <kend AT xanoptix DOT com>
> To: "Jeff Portwine" <jdport AT michigandrill DOT com>
> Cc: <amanda-users AT amanda DOT org>
> Sent: Thursday, August 24, 2006 11:36 AM
> Subject: Re: need regex help
>
>
> [Sent a second time from an address known to the list; sorry if a dup.]
>
> On Thu, August 24, 2006 10:40 am, Jeff Portwine wrote:
> > I want amanda to back up multiple home directories, but I don't want to
> > back up everything in /home. I tried using syntax like this:
> >
> > myserver /dev/sdc1 { server-user-tar include
> > "./home/(user1|user2|user3|user4)*"
> > }
>
> I can't swear this would work, but this is how I'd write the regex if I
> were doing something similar in Perl or grep:
>
> "./home/user[1234]*"
>
> -Ken
>
> > Amcheck didn't have any problems with it but when the backup actually
> > ran, I got the following messages in the dump report:
> >
> > FAILURE AND STRANGE DUMP SUMMARY:
> > frank.veritime.com /dev/sdc1 lev 0 STRANGE
> >
> > FAILED AND STRANGE DUMP DETAILS:
> >
> >
> > /-- myserver /dev/sdc1 lev 0 STRANGE
> > sendbackup: start [myserver:/dev/sdc1 level 0]
> > sendbackup: info BACKUP=/bin/gtar
> > sendbackup: info RECOVER_CMD=/bin/gtar -f... -
> > sendbackup: info end
> > ? gtar: ./home/(user1|user2|user3|user4)*: Warning: Cannot stat: No such
> > file or directory | Total bytes written: 10240 (10kB, ?B/s)
> > sendbackup: size 10
> > sendbackup: end
> > \--------
> >
> >
> >
> >
> > Did I do the regex incorrectly, or is there a better way to accomplish
> > this?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert AT linux-m68k
DOT org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|