all:
-setup: bacula
+setup: bacula sed
#
# Some machines cannot handle the sticky bit and other garbage that
# is in weird-files, so we load and run it only on Linux machines.
#
-bacula: all sed
+bacula: all
@rm -rf bin build weird-files tmp
(if test x`uname` = xLinux -o x`uname` = xFreeBSD ; then \
tar xfz weird-files.tar.gz ;\
Pool = Default
Write Bootstrap = "@working_dir@/NightlySave.bsr"
Maximum Concurrent Jobs = 4
-# Prefer Mounted Volumes = no
SpoolData = yes
# Prefer Mounted Volumes = no
}
outf="tmp/sed_tmp"
echo "s%# Prefer Mounted Volumes% Prefer Mounted Volumes%g" >${outf}
cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
+# Comment the next line out to write everything to one drive
+# otherwise, it writes the two jobs to different drives
sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
echo " "
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=0
label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=1
-setdebug level=100 storage=DDS-4
+@#setdebug level=100 storage=DDS-4
run job=NightlySave yes
run job=NightlySave yes
wait
+list volumes
status storage=DDS-4
messages
quit
@#setdebug level=400 storage=DDS-4
run level=Incremental job=NightlySave yes
wait
+list volumes
status storage=DDS-4
messages
@#