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"
14 scripts/copy-fifo-confs
16 echo "${cwd}/build" >/tmp/file-list
18 change_jobname NightlySave $JobName
19 rm -f tmp/log1.out tmp/log2.out
23 # Write out bconsole commands
24 cat <<END_OF_DATA >tmp/bconcmds
28 @#setdebug level=200 storage=Dummy
29 label storage=Dummy volume=TestVolume001 slot=0 pool=Default
40 check_for_zombie_jobs storage=Dummy
44 # Now do a second backup after making a few changes
46 touch ${cwd}/build/src/dird/*.c
47 echo "test test" > ${cwd}/build/src/dird/xxx
49 cat <<END_OF_DATA >tmp/bconcmds
63 check_for_zombie_jobs storage=Dummy
66 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
68 grep "^ Termination: *Backup OK" tmp/log2.out 2>&1 >/dev/null