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
9 # to /dev/null Of course, it's not possible to restore ;-)
11 TestName="backup-to-null"
18 scripts/copy-fifo-confs
20 echo "${cwd}/build" >${cwd}/tmp/file-list
22 change_jobname NightlySave $JobName
23 rm -f ${cwd}/tmp/log1.out ${cwd}/tmp/log2.out
27 # Write out bconsole commands
28 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
31 @$out ${cwd}/tmp/log1.out
32 @#setdebug level=200 storage=Dummy
33 label storage=Dummy volume=TestVolume001 slot=0 pool=Default
44 check_for_zombie_jobs storage=Dummy
48 # Now do a second backup after making a few changes
50 touch ${cwd}/build/src/dird/*.c
51 echo "test test" > ${cwd}/build/src/dird/xxx
53 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
56 @$out ${cwd}/tmp/log2.out
67 check_for_zombie_jobs storage=Dummy
70 grep "^ Termination: *Backup OK" ${cwd}/tmp/log1.out 2>&1 >/dev/null
72 grep "^ Termination: *Backup OK" ${cwd}/tmp/log2.out 2>&1 >/dev/null