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.
13 scripts/copy-test-confs
14 echo "${cwd}/tmp/build" >/tmp/file-list
15 mkdir ${cwd}/tmp/build
16 cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
18 echo "${cwd}/tmp/build/ficheriro1.txt" >restore-list
19 echo "${cwd}/tmp/build/ficheriro2.txt" >>restore-list
22 change_jobname CompressedTest $JobName
25 cat <<END_OF_DATA >tmp/bconcmds
29 label storage=File volume=TestVolume001
30 label storage=File volume=TestVolume002
38 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
58 echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
59 cat <<END_OF_DATA >tmp/bconcmds
63 run level=incremental job=$JobName yes
100 restore where=${cwd}/tmp/bacula-restores storage=File file=<${cwd}/tmp/restore-list
109 check_for_zombie_jobs storage=File
113 # Delete .c files because we will only restored the txt files
118 check_restore_tmp_build_diff