3 # Run a simple backup of the Bacula build directory but
4 # split the archive into two volumes, then build a BSR with
5 # the restore command and use bextract to restore the files.
7 TestName="bextract-test"
12 scripts/copy-test-confs
14 echo "${cwd}/build" >/tmp/file-list
16 change_jobname NightlySave $JobName
19 cat <<END_OF_DATA >tmp/bconcmds
23 label storage=File1 volume=TestVolume001
24 label storage=File1 volume=TestVolume002
25 update Volume=TestVolume001 MaxVolBytes=3000000
26 run job=$JobName storage=File1 yes
30 @# now build the bsr file
33 restore bootstrap=${cwd}/working/restore.bsr where=${cwd}/tmp/bacula-restores select all storage=File1 done
42 check_for_zombie_jobs storage=File1
45 mkdir -p ${cwd}/tmp/bacula-restores
46 bin/bextract -b working/restore.bsr -c bin/bacula-sd.conf ${cwd}/tmp ${cwd}/tmp/bacula-restores 2>&1 >/dev/null
48 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null