3 # Run a simple backup of the Bacula build directory then migrate it
6 # This script uses the virtual disk autochanger
8 TestName="migration-test"
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, then Migrate into
25 # Pool Full. Pool Default uses Storage=File
26 # Pool Full uses Storage=DiskChanger
28 # Write out bconsole commands
29 cat <<END_OF_DATA >tmp/bconcmds
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
45 restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
57 check_for_zombie_jobs storage=File