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
16 scripts/copy-migration-confs
17 scripts/prepare-two-disks
18 echo "${cwd}/build" >/tmp/file-list
20 change_jobname NightlySave $JobName
24 # Note, we first backup into Pool Default,
25 # then Migrate into Pool Full.
26 # Pool Default uses Storage=File
27 # Pool Full uses Storage=DiskChanger
29 # Write out bconsole commands
30 cat <<END_OF_DATA >tmp/bconcmds
34 label storage=File volume=FileVolume001 Pool=Default
35 label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0
36 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
38 @# run two jobs (both will be migrated)
43 @# should migrate two jobs
44 run job=migrate-job yes
53 restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
65 check_for_zombie_jobs storage=File