X-Git-Url: http://git.pjr.cc/?p=php-bacula-disk-changer.git;a=blobdiff_plain;f=bin%2Fpbdc.php;h=4aad1e05dad5e96e9798fe69d7b2bb7c84e42b02;hp=0e666578fccd6046bba88e3ef8ba27cc3834ae81;hb=ec925a934fdba63dcbcccfb914fb89849261443d;hpb=86d3e89064d683b75ad6c236da5a037811ce6abb diff --git a/bin/pbdc.php b/bin/pbdc.php index 0e66657..4aad1e0 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; +} +