3 # Run a backup of a small file, then do several other backups
4 # to expand the size of a volume. Then do a restore of the first
5 # file, and make sure it doesn't read to the end of the disk.
7 TestName="bsr-read-test"
12 scripts/copy-migration-confs
13 scripts/prepare-disk-changer
14 cp ${cwd}/build/configure ${cwd}/tmp
15 cat ${cwd}/build/configure >> ${cwd}/tmp/configure
16 echo "${cwd}/tmp/configure" >${cwd}/tmp/file-list
17 echo "${cwd}/build" >>${cwd}/tmp/file-list
20 change_jobname NightlySave $JobName
23 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
26 @$out ${cwd}/tmp/log1.out
27 label storage=File volume=TestVolume001 pool=Default
28 label storage=File volume=TestVolume002 pool=Default
29 label storage=File volume=TestVolume003 pool=Default
30 update Volume=TestVolume001 maxvolbytes=120000
31 update Volume=TestVolume002 maxvolbytes=120000
36 @# print the JobMedia records
38 select * from JobMedia;
44 check_for_zombie_jobs storage=File
47 echo "${cwd}/build" >${cwd}/tmp/file-list
49 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
52 @$out ${cwd}/tmp/log1.out
53 run job=$JobName level=Full yes
56 run job=$JobName level=Full yes
62 @$out ${cwd}/tmp/log2.out
63 setdebug level=30 trace=1 fd
64 setdebug level=500 trace=1 storage=File
66 @# print the JobMedia records
67 select * from JobMedia;
78 @# now do a restore of the second job (to compare offset)
80 @$out ${cwd}/tmp/log3.out
90 label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0
91 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
92 update volume=TestVolume003 volstatus=Used
93 run job=migrate-job jobid=1 yes
94 run job=migrate-job jobid=2 yes
101 check_for_zombie_jobs storage=File
105 # check_restore_tmp_build_diff