3 # Run a simple backup of the Bacula build directory then migrate it
6 # This script uses the virtual disk autochanger
8 TestName="migration-time-test"
9 JobName=MigrationJobSave
15 scripts/copy-migration-confs
16 scripts/prepare-two-disks
17 echo "${cwd}/build" >/tmp/file-list
19 change_jobname NightlySave $JobName
23 # Note, we first backup into Pool Default,
24 # then Migrate into Pool Full.
25 # 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
38 run job=$JobName level=Full yes
39 run job=$JobName level=Full yes
40 run job=$JobName level=Full yes
42 update volume=FileVolume001 VolStatus=Used
44 update Job SET RealEndTime='2004-01-01 12:01:01' WHERE JobId IN (2,3);
49 @# should migrate only jobid=2 and 3
50 run job=migrate-time yes
54 purge volume=FileVolume001
61 restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
73 check_for_zombie_jobs storage=File