3 # Create a 60MB file with random bytes. Back it up to 6 Volumes
4 # each constrained to 10MB using the automatic labeling feature.
6 TestName="six-vol-test"
11 if test ! -c /dev/urandom ; then
12 echo "No random device. Test skipped.\n"
17 scripts/copy-testa-confs
18 echo "${cwd}/tmp/largefile" >/tmp/file-list
19 # Create 56MB file with random data
20 echo "Creating a 56MB file with random data ..."
21 dd if=/dev/urandom of=${cwd}/tmp/largefile bs=1024 count=55000
22 echo "largefile created"
24 change_jobname MultiVol $JobName
27 cat <<END_OF_DATA >tmp/bconcmds
31 run job=$JobName storage=File yes
38 restore where=${cwd}/tmp/bacula-restores select storage=File
50 check_for_zombie_jobs storage=File
54 diff tmp/largefile tmp/bacula-restores${cwd}/tmp/largefile 2>&1 >/dev/null