]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/span-vol-test
ebl revert pool changes and correct the problem
[bacula/bacula] / regress / tests / span-vol-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory but 
4 #   split the archive into four volumes, two of which are
5 #   totally full. I.e. make sure that bsr selects all tapes 
6 #   including those fully spanned.
7 #
8 TestName="span-vol-test"
9 JobName=SpanVol
10 . scripts/functions
11
12 scripts/cleanup
13 scripts/copy-test-confs
14 echo "${cwd}/build" >${cwd}/tmp/file-list
15
16 change_jobname NightlySave $JobName
17 start_test
18
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
20 @output /dev/null
21 messages
22 @$out ${cwd}/tmp/log1.out
23 label storage=File1 volume=TestVolume004
24 label storage=File1 volume=TestVolume003
25 label storage=File1 volume=TestVolume002
26 label storage=File1 volume=TestVolume001
27 update Volume=TestVolume004 MaxVolBytes=3000000
28 update Volume=TestVolume003 MaxVolBytes=3000000
29 update Volume=TestVolume002 MaxVolBytes=3000000
30 run job=$JobName storage=File1 yes
31 wait
32 list volumes
33 messages
34 @# 
35 @# now do a restore
36 @#
37 @$out ${cwd}/tmp/log2.out
38 restore where=${cwd}/tmp/bacula-restores select storage=File1
39 unmark *
40 mark *
41 done
42 yes
43 wait
44 messages
45 @$out
46 quit
47 END_OF_DATA
48
49 run_bacula
50 check_for_zombie_jobs storage=File1
51 stop_bacula
52
53 check_two_logs
54 check_restore_diff
55 end_test