3 # Run a simple backup of the Bacula build directory
5 # We have bad configuration for Messages resources, everything
8 TestName="messages-test"
16 # Zap out any schedule in default conf file so that
17 # it doesn't start during our test
20 echo "s% Schedule =%# Schedule =%g" >$outf
22 # tweak all Messages {} with non valid path
23 echo 's%append = "%append = "/nowhere%g' >> $outf
24 echo 's%mailcommand = "%mailcommand = "/nowhere%g' >> $outf
26 cp $scripts/bacula-dir.conf $tmp/1
27 sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf
29 change_jobname BackupClient1 $JobName
32 cat <<END_OF_DATA >$tmp/bconcmds
36 setdebug level=100 storage=File
37 label volume=TestVolume001 storage=File pool=File
47 restore where=$tmp/bacula-restores select all done
55 check_for_zombie_jobs storage=File