Amanda-Users

Re: need regex help

2006-08-24 11:42:32
Subject: Re: need regex help
From: "Ken D'Ambrosio" <kend AT xanoptix DOT com>
To: "Jeff Portwine" <jdport AT michigandrill DOT com>
Date: Thu, 24 Aug 2006 11:36:43 -0400 (EDT)
[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?
>
> Thanks,
> Jeff




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