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"
14 scripts/copy-test-confs
16 echo "${cwd}/build" >/tmp/file-list
17 change_jobname $JobName
21 cat <<END_OF_DATA >tmp/bconcmds
25 label storage=File1 volume=TestVolume001
26 label storage=File1 volume=TestVolume002
27 update Volume=TestVolume001 MaxVolBytes=3000000
28 run job=$JobName storage=File1 yes
32 @# now build the bsr file
35 restore bootstrap=${cwd}/working/restore.bsr where=${cwd}/tmp/bacula-restores select all storage=File1 done
44 check_for_zombie_jobs storage=File1
47 mkdir -p ${cwd}/tmp/bacula-restores
48 bin/bextract -b working/restore.bsr -c bin/bacula-sd.conf ${cwd}/tmp ${cwd}/tmp/bacula-restores 2>&1 >/dev/null
50 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null