3 # Create a 60MB file with random bytes. Back it up to 6 Volumes
4 # each constrained to 10MB using the automatic labeling feature.
7 scripts/copy-testa-confs
9 echo "${cwd}/tmp/largefile" >/tmp/file-list
10 # Create 56MB file with random data
11 echo "Creating a 56MB file with random data ..."
12 dd if=/dev/urandom of=${cwd}/tmp/largefile bs=1024 count=55000
13 echo "largefile created"
14 bin/bacula stop 2>&1 >/dev/null
15 bin/drop_sqlite_tables
16 bin/make_sqlite_tables
20 echo " === Starting two-vol-test ==="
21 echo " === Starting two-vol-test ===" >>working/log
25 bin/console -c bin/console.conf <<END_OF_DATA
28 run job=MultiVol storage=File
35 restore where=${cwd}/tmp/bacula-restores
44 diff tmp/largefile tmp/bacula-restores${cwd}/tmp/largefile
48 echo " ===== six-vol-test Bacula source failed!!! ===== "
49 echo " ===== six-vol-test failed!!! ===== " >>test.out
52 echo " ===== six-vol-test Bacula source OK ===== "
53 echo " ===== six-vol-test OK ===== " >>test.out