PDA

View Full Version : Getting errors when running amcheck -c myconfig


bperrotta
June 2nd, 2008, 11:49 AM
Here are the errors below followed by my amanda.conf file.
Does anyone know how to fix these errors? I am extremely new to linux
backups. Help appreciated


amandabackup@Familyproject:/etc/amanda> amcheck -c myconfig
"/etc/amanda/myconfig/amanda.conf", line 22: configuration keyword expected
"/etc/amanda/myconfig/amanda.conf", line 23: configuration keyword expected
"/etc/amanda/myconfig/amanda.conf", line 26: configuration keyword expected
"/etc/amanda/myconfig/amanda.conf", line 37: dumptype parameter expected
"/etc/amanda/myconfig/amanda.conf", line 37: end of line is expected
"/etc/amanda/myconfig/amanda.conf", line 38: dumptype parameter expected
"/etc/amanda/myconfig/amanda.conf", line 38: end of line is expected
"/etc/amanda/myconfig/amanda.conf", line 39: dumptype parameter expected
"/etc/amanda/myconfig/amanda.conf", line 39: end of line is expected
"/etc/amanda/myconfig/amanda.conf", line 40: dumptype parameter expected
amcheck: errors processing config file "/etc/amanda/myconfig/amanda.conf"

here is my amanda.conf file below

org "My Organization" # your organization name for reports
mailto "noc@somenoc.com" # space separated list of operators at your site
dumpuser "root" # the user to run dumps under

inparallel 4 # maximum dumpers that will run in parallel
netusage 600 # maximum net bandwidth for Amanda, in KB per sec

dumpcycle 1 weeks # the number of days in the normal dump cycle
tapecycle 1 tapes # the number of tapes in rotation

bumpsize 1000 MB # minimum savings (threshold) to bump level 1 -> 2
bumpdays 1 # minimum days at each level
bumpmult 4 # threshold = bumpsize * (level-1)**bumpmult

runtapes 1
tapedev "/dev/st0" # Linux @ tuck

tapetype Travan # what kind of tape it is (see tapetypes below)
labelstr "^MYCONFIG[0-9][0-9]*$" # label constraint regex: all tapes must match

diskdir "/holding" # where the holding disk is
disksize -50 MB # how much space can we use on it

infofile "/amanda/conf/myconfig/curinfo" # database filename
logfile "/amanda/conf/myconfig/log" # log filename
indexdir "/amanda/conf/myconfig/index"

define tapetype Travan {
comment "Travan 10/20"
length 10000 mbytes
}

define dumptype myconfig {
program "GNUTAR"
comment "partitions dumped with tar"
options no-compress, index, exclude-list "/amanda/conf/myconfig/exclude.gtar"
priority medium
}


Thanks for the help,
Bill

dustin
June 2nd, 2008, 02:31 PM
There is no "options" parameter. Check the amanda.conf manpage.

bperrotta
June 6th, 2008, 10:21 AM
Thanx will try that.

bperrotta
June 13th, 2008, 01:03 PM
Please help when I man amanda.conf the file goes on forever, I cannot find anything called options which is a parameter so far.

I do not know how to grep a man page. please explain how to display the lines I want step by step. I know a few LInux commands but not that fluent.
are there any links to examples i can just paste in my amanda.conf file. I
if there are where do i paste it? I manually went through the man page and do not see an options parameter. I only see options for other parameters. sorry If I do not understand what you mean.

please help,
Bill

dustin
June 13th, 2008, 01:11 PM
You won't find an "options" parameter, because there isn't one :)

The manpage is available at http://wiki.zmanda.com/index.php/Amanda.conf.

bperrotta
June 14th, 2008, 06:33 AM
I still don't understand the errors or how to fix them so back to square one
I am lost. I do not know why the original amanda.samp file would not copy to amanda.conf like the 15 minute guide. but copied some one elses file and edited it and got all the errors in the top of this forum. Have no idea what they mean so it is useless to me and I am stuck.