3 # Run a simple backup of the Bacula build directory
4 # to a tape then restore it, we do that twice to ensure that
5 # we can correctly append to a tape.
6 # We also use the purge and the relabel commands as
7 # well as a pile of status storage commands.
9 TestName="backup-bacula-fifo"
16 scripts/copy-fifo-confs
18 echo "${cwd}/build" >/tmp/file-list
20 change_jobname NightlySave $JobName
21 rm -f tmp/log1.out tmp/log2.out
25 # Write out bconsole commands
26 cat <<END_OF_DATA >tmp/bconcmds
30 @#setdebug level=200 storage=Dummy
31 label storage=Dummy volume=TestVolume001 slot=0 pool=Default
42 check_for_zombie_jobs storage=Dummy
46 # Now do a second backup after making a few changes
48 touch ${cwd}/build/src/dird/*.c
49 echo "test test" > ${cwd}/build/src/dird/xxx
51 cat <<END_OF_DATA >tmp/bconcmds
65 check_for_zombie_jobs storage=Dummy
68 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
70 grep "^ Termination: *Backup OK" tmp/log2.out 2>&1 >/dev/null