3 # Run a simple backup of the Bacula build directory
5 # We have bad configuration for Messages resources, everything
8 TestName="messages-test"
12 # turn off until the email problem is solved
17 change_jobname BackupClient1 $JobName
20 # Zap out any schedule in default conf file so that
21 # it doesn't start during our test
24 echo "s% Schedule =%# Schedule =%g" >$outf
26 # tweak all Messages {} with non valid path
27 echo 's%append = "%append = "/nowhere%g' >> $outf
28 echo "s%bsmtp -h $SMTP_HOST%bsmtp -h nonvalidhost%g" >> $outf
29 echo 's%# mail% mail%' >> $outf
30 echo 's%Bacula daemon message%DELETE THIS MESSAGE Bacula daemon message%' >> $outf
31 echo 's%Bacula:%DELETE THIS MESSAGE Bacula:%' >> $outf
32 #echo 's%mailcommand = "%mailcommand = "/nowhere%g' >> $outf
34 cp $scripts/bacula-dir.conf $tmp/1
35 sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf
38 cat <<END_OF_DATA >$tmp/bconcmds
42 @#setdebug level=100 storage=File
43 label volume=TestVolume001 storage=File pool=File
53 restore where=$tmp/bacula-restores select all done
61 check_for_zombie_jobs storage=File