3 # Run a simple backup of the Bacula build directory then create some
4 # new files, do an Incremental and restore those two files.
6 TestName="incremental-tape"
13 echo "${cwd}/tmp/build" >/tmp/file-list
14 if test ! -d ${cwd}/tmp/build ; then
15 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
23 change_jobname NightlySave $JobName
26 cat <<END_OF_DATA >tmp/bconcmds
30 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
38 check_for_zombie_jobs storage=DDS-4
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 run level=Incremental job=$JobName yes
54 restore where=${cwd}/tmp/bacula-restores storage=DDS-4
56 <${cwd}/tmp/restore-list
66 check_for_zombie_jobs storage=DDS-4
70 # Delete .c files because we will only restored the txt files
75 check_restore_tmp_build_diff