]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/migration-occupancy-test.bscr
Add new Win32 files
[bacula/bacula] / regress / win32 / tests / migration-occupancy-test.bscr
1 @output
2 messages
3 @@out@ @topdir@/tmp/log1.out
4 label storage=File volume=FileVolume001 Pool=Default
5 label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0
6 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
7 list volumes
8 @# run two jobs (both will be migrated)
9 run job=@JobName@ yes
10 run job=@JobName@ yes
11 wait
12 update volume=FileVolume001 VolStatus=Used
13 list volumes
14 @# should migrate two jobs
15 run job=migrate-occupancy yes
16 list volumes
17 wait
18 messages
19 purge volume=FileVolume001
20 wait
21 @# 
22 @# now do a restore
23 @#
24 @@out@ @topdir@/tmp/log2.out
25 restore where=@topdir@/tmp/bacula-restores select storage=DiskChanger
26 unmark *
27 mark *
28 done
29 yes
30 wait
31 messages
32 @output
33 quit
34