]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/two-vol-test
Add Allow Duplicate Jobs to copy-uncopied-test regression test for bug #1751
[bacula/bacula] / regress / tests / two-vol-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory but 
4 #   split the archive into two volumes
5 #
6 TestName="two-vol-test"
7 JobName=TwoVol
8 . scripts/functions
9
10 cwd=`pwd`
11 scripts/cleanup
12 scripts/copy-test-confs
13 echo "${cwd}/build" >${cwd}/tmp/file-list
14
15 change_jobname NightlySave $JobName
16 start_test
17
18 cat <<END_OF_DATA >tmp/bconcmds
19 @$out /dev/null
20 messages
21 @$out tmp/log1.out
22 label storage=File1 volume=TestVolume002
23 label storage=File1 volume=TestVolume001
24 update Volume=TestVolume002 MaxVolBytes=3000000
25 run job=$JobName storage=File1 yes
26 wait
27 messages
28 @# 
29 @# now do a restore
30 @#
31 @$out tmp/log2.out
32 restore where=${cwd}/tmp/bacula-restores select all storage=File1 done
33 yes
34 wait
35 messages
36 quit
37 END_OF_DATA
38
39 run_bacula
40 check_for_zombie_jobs storage=File1
41 stop_bacula
42
43 check_two_logs
44 check_restore_diff
45 end_test