On Thu, Jan 16, 2003 at 09:50:35AM -0600, Dan Spray wrote: > Hello all, > > I am new to Amanda and have been following > http://www.backupcentral.com/amanda.html to the "T" to get Amanda > setup and working. In chapter 12 it says to run "# su amanda - c > "amlabel Daily Daily-123 slot 123"" when I do I get: > > [root@ZEUS /named]# su amanda -c "amlabel config Daily-123 slot 123" > amlabel: label Daily-123 doesn't match labelstr "^DailySet1[0-9][0-9] > *$" > > My labelstr in my config file is: > > labelstr "^DailySet1[0-9][0-9]*$" > > Not sure what I am doing wrong or how to fix it. Any help would be > greatly appreciated.
I'm also new to Amanda, but not so new to regular expressions. The labelstr directive says that your tape label must be of a certain form. In this case, it's expecting the string 'DailySet1' followed by a number, followed by zero or more numbers. Therefore 'Daily-123' doesn't match the label string. You could change labelstr to be something like "^Daily-[0-9][0-9]*$" Or change your tape label to something like 'DailySet1123'. I'd go for the first option :-) Hope that helps! Simon.
