3 # Run a simple backup of the Bacula build directory then create some
4 # new files, do a Differental then a bunch of query commands
5 # and finally restore the two files.
12 scripts/copy-test-confs
13 echo "${cwd}/tmp/build" >/tmp/file-list
14 mkdir ${cwd}/tmp/build
15 cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
17 echo "${cwd}/tmp/build/ficheriro1.txt" >restore-list
18 echo "${cwd}/tmp/build/ficheriro2.txt" >>restore-list
21 change_jobname CompressedTest $JobName
24 cat <<END_OF_DATA >tmp/bconcmds
28 label storage=File volume=TestVolume001
29 label storage=File volume=TestVolume002
37 check_for_zombie_jobs storage=File
40 echo "ficheriro1.txt" >${cwd}/tmp/build/ficheriro1.txt
41 echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
43 cat <<END_OF_DATA >tmp/bconcmds
47 @# Force differental on the second Volume
48 update volume=TestVolume001 VolStatus=Used
49 run level=differental job=$JobName yes
56 check_for_zombie_jobs storage=File
59 echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
60 cat <<END_OF_DATA >tmp/bconcmds
64 run level=incremental job=$JobName yes
101 restore where=${cwd}/tmp/bacula-restores storage=File file=<${cwd}/tmp/restore-list
110 check_for_zombie_jobs storage=File
114 # Delete .c files because we will only restored the txt files
119 check_restore_tmp_build_diff