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