X-Git-Url: http://git.pjr.cc/?p=php-bacula-disk-changer.git;a=blobdiff_plain;f=bin%2Fpbdc.php;h=b8de758bee54f082c0b807cdff9711154f038299;hp=0e666578fccd6046bba88e3ef8ba27cc3834ae81;hb=de3a21b2b0515e2063d96e109392adf4f5008a95;hpb=6c35e3fc666294e3a4f5d36ffb9a2411460cea1d diff --git a/bin/pbdc.php b/bin/pbdc.php index 0e66657..b8de758 100644 --- a/bin/pbdc.php +++ b/bin/pbdc.php @@ -49,7 +49,38 @@ function bacula_config() $db = db_getDB($argv[1]); + $ntapes = conf_getVal($changer, "ndrives"); + $tapeloc = conf_getVal($changer, "drivelocation"); + // TODO: do this bit + // bacula-sd.conf + ?> +Autochanger { + Name = + + Changer Command = "/usr/local/bin/vchanger %c %o %S %a %d" + Changer Device = "" +} + + +Device { + Name = + DriveIndex = + Autochanger = yes; + DeviceType = File + MediaType = File + ArchiveDevice = + RemovableMedia = no; + RandomAccess = yes; +} +