On Monday 25 September 2006 16:13, Silver Salonen wrote: > Hi. > > Is it possible to fetch entire configuration resources from database, ie. by > executing commands, just like including. > > I tried putting "| some-command" into bacula-dir.conf, but it didn't work. Can > it be done in some other way? > > Silver
The idea would be that I could write a script that would parse configuration to be included, detect any invalid dependencies and remove them etc, so that bacula-dir would load all the valid changes done, but ignore the invalid ones. Script could then notify me what was wrong and where, so I can fix it afterwards. Basing to this it would be a little easier for users change their configurations (e.g. filesets) by giving them access to only their configurations sitting in some database. I figured it's possible to let users change their configuration parameters by letting them to change these in some database and bacula-dir would then query them with some script (resource { param = "| some-query-script" }). The problem in that case is that every resource has to be first included from bacula-dir.conf, and they can't be removed from configuration dynamically without changing bacula-dir.conf again. So it would be perfect if entire sections could be included in the same way. bacula-dir.conf could then look smth like: director { .. } "| bacula-check.pl /etc/bacula/jobs.conf" .. bacula-check.pl would then remove invalid jobs etc. What do you think about it? :) Silver ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users