now = time(NULL);
(void)localtime_r(&now, &tm);
strftime(buf1, sizeof(buf1), "%H:%M:%S", &tm);
+ Pmsg1(-1, _("%s\n"), buf1);
+#ifdef needed_xxx
Pmsg1(-1, _("%s Flush block, write EOF\n"), buf1);
flush_block(block, 0);
dev->weof(1);
+#endif
}
/* Get out after writing 10 blocks to the second tape */
# same Name and MediaType.
#
+Autochanger {
+ Name = tape
+ Changer Device = @autochanger@
+ Changer Command ="@scriptdir@/@changer_script@ %c %o %S %a %d"
+ Device = Drive-0
+}
+
+
Device {
- Name = tape #
+ Name = Drive-0 #
Media Type = Tape
Archive Device = @tape_drive@
AutomaticMount = yes; # when device opened, read it
require_autochanger
scripts/cleanup
-scripts/copy-2tape-confs
+scripts/copy-btape-confs
change_jobname $JobName
start_test
cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
-
if test "$debug" -eq 1 ; then
$bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
fill