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
11 TestName="backup-bacula-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 cp $scripts/bacula-dir.conf $tmp/1
25 sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf
27 change_jobname BackupClient1 $JobName
30 cat <<END_OF_DATA >$tmp/bconcmds
34 setdebug level=4 storage=File1
35 label volume=TestVolume001 storage=File1 pool=File slot=1 drive=0
63 setdebug level=4 storage=File1
64 restore where=$tmp/bacula-restores select all done
72 check_for_zombie_jobs storage=File1
75 cat <<END_OF_DATA >$tmp/bconcmds
79 setdebug level=4 storage=File1
87 #setbandwidth client=$CLIENT limit=100
88 setdebug level=4 storage=File1
89 restore where=$tmp/bacula-restores select all done
97 # Now do a second backup after making a few changes
99 touch ${cwd}/build/src/dird/*.o
100 echo "test test" > ${cwd}/build/src/dird/xxx
104 check_for_zombie_jobs storage=File1