3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory without
9 # md5 signature then restore it.
11 TestName="no-chksum-test"
19 # Zap out any schedule in default conf file so that
20 # it doesn't start during our test
23 echo "s% Schedule =%# Schedule =%g" > $outf
24 echo "s% signature =%# signature =%g" >> $outf
25 cp $scripts/bacula-dir.conf $tmp/1
26 sed -f $outf $tmp/1 >$scripts/bacula-dir.conf
28 change_jobname BackupClient1 $JobName
31 cat <<END_OF_DATA >$tmp/bconcmds
35 label volume=TestVolume001 storage=File pool=File
40 cat <<END_OF_DATA >$tmp/bconcmds
51 # Now do a second backup after making a few changes
53 touch ${cwd}/build/po/fr.po
58 dd if=/dev/zero of=$cwd/build/bigfile count=500000 > /dev/null
62 rm -f $cwd/build/bigfile
64 cat <<END_OF_DATA >$tmp/bconcmds
68 @# don't restore the bigfile, and try to see if it reads the whole volume
75 setdebug level=150 trace=1 storage=File
76 restore where=$tmp/bacula-restores select all done
85 check_for_zombie_jobs storage=File