]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/migration-volume-test.bscr
Fix compiler warnings in acl and xattr code
[bacula/bacula] / regress / win32 / tests / migration-volume-test.bscr
1 @output
2 messages
3 @@out@ @topdir@/tmp/log1.out
4 label storage=File volume=FileVolume001 Pool=Default
5 label storage=File volume=FileVolume002 Pool=Default
6 update Volume=FileVolume001 MaxVolBytes=3000000 pool=Default
7 label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0
8 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
9 @# 
10 run job=@JobName@ yes
11 wait
12 run job=@JobName@ yes
13 wait
14 update volume=FileVolume001 VolStatus=Used
15 update volume=FileVolume002 VolStatus=Used
16 @#list volumes
17 @#list jobs
18 @# should migrate two jobs
19 @# setdebug level=11 dir
20 @echo "Run migrate-volume Job"
21 @#setdebug level=100 dir
22 run job=migrate-volume yes
23 @sleep 5 
24 list jobs
25 llist jobid=1
26 llist jobid=2
27 llist jobid=3
28 llist jobid=4
29 llist jobid=5
30 status storage=DiskChanger
31 wait
32 list volumes
33 list jobs
34 llist jobid=1
35 llist jobid=2
36 llist jobid=3
37 llist jobid=4
38 llist jobid=5
39 sql
40 select * from JobMedia where JobId=1;
41
42 @# Now run a second Migration job, which should do nothing
43 run job=migrate-volume yes
44 wait
45 list jobs
46 @# ensure we don't pickup old backup by purging volume
47 @# purge volume=FileVolume001
48 @# purge volume=FileVolume002
49 @echo "Now do a restore"
50 messages
51 @# 
52 @# now do a restore
53 @#
54 @@out@ @topdir@/tmp/log2.out
55 restore where=@topdir@/tmp/bacula-restores select storage=DiskChanger
56 unmark *
57 mark *
58 done
59 yes
60 wait
61 messages
62 @output
63 quit
64