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
15 echo "${cwd}/tmp/build" >/tmp/file-list
16 mkdir ${cwd}/tmp/build
17 cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
19 echo "${cwd}/tmp/build/ficheriro1.txt" >restore-list
20 echo "${cwd}/tmp/build/ficheriro2.txt" >>restore-list
25 cat <<END_OF_DATA >tmp/bconcmds
29 label storage=File volume=TestVolume001
30 label storage=File volume=TestVolume002
31 run job=CompressedTest yes
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=CompressedTest 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=CompressedTest 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