3 # Run a simple backup of the Bacula build directory then migrate it
6 # This script uses the virtual disk autochanger
8 TestName="migration-job-test"
9 JobName=MigrationJobSave
14 scripts/copy-migration-confs
15 scripts/prepare-two-disks
16 echo "${cwd}/build" >/tmp/file-list
18 change_jobname NightlySave $JobName
22 # Note, we first backup into Pool Default,
23 # then Migrate into Pool Full.
24 # Pool Default uses Storage=File
25 # Pool Full uses Storage=DiskChanger
27 # Write out bconsole commands
28 cat <<END_OF_DATA >tmp/bconcmds
32 setdebug level=100 storage=File
33 label storage=File volume=FileVolume001 Pool=Default
34 label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0
35 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
36 @# run two jobs (both will be migrated)
42 @#setdebug level=100 dir
43 @# should migrate two jobs
44 @#setdebug level=51 storage=DiskChanger
45 run job=migrate-job yes
48 @# purge volume=FileVolume001
57 restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
69 check_for_zombie_jobs storage=File