-
- open (CONF, ">$confdir/$config/amanda.conf") ||
- &log_and_die ("ERROR: Cannot create amanda.conf file: $!\n", 1);
- chmod ($amanda_conf_perm, "$confdir/$config/amanda.conf") ||
- &log_and_die ("ERROR: Cannot set amanda.conf file access permission: $!\n", 1);
-
- print CONF "org \"$config\"\t\t# your organization name for reports\n";
- print CONF "dumpuser \"$dumpuser\"\t# the user to run dumps under\n";
- print CONF "mailto \"$mailto\"\t# space separated list of operators at your site\n";
- print CONF "dumpcycle $dumpcycle\t\t# the number of days in the normal dump cycle\n";
- print CONF "runspercycle $runspercycle\t\t# the number of amdump runs in dumpcycle days\n";
- print CONF "tapecycle $tapecycle\t# the number of tapes in rotation\n";
- print CONF "runtapes $runtapes\t\t# number of tapes to be used in a single run of amdump\n";
- print CONF "tpchanger \"$tpchanger\"\t# the tape-changer glue script\n";
- print CONF "tapedev \"$tapedev\"\t# the no-rewind tape device\n";
- print CONF "changerfile \"$changerfile\"\t# tape changer configuration parameter file\n";
- print CONF "changerdev \"$changerdev\"\t# tape changer configuration parameter device\n";