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"
13 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 @#setdebug level=400 dir
27 @#setdebug level=400 storage=File1
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