{"prunejobs",   store_bool, ITEM(res_job.PruneJobs), 0, ITEM_DEFAULT, false},
    {"prunefiles",  store_bool, ITEM(res_job.PruneFiles), 0, ITEM_DEFAULT, false},
    {"prunevolumes",store_bool, ITEM(res_job.PruneVolumes), 0, ITEM_DEFAULT, false},
-   {"purgemigratejob",   store_bool, ITEM(res_job.PurgeMigrateJob), 0, ITEM_DEFAULT, false},
+   {"purgemigrationjob",  store_bool, ITEM(res_job.PurgeMigrateJob), 0, ITEM_DEFAULT, false},
    {"enabled",     store_bool, ITEM(res_job.enabled), 0, ITEM_DEFAULT, true},
    {"spoolattributes",store_bool, ITEM(res_job.SpoolAttributes), 0, ITEM_DEFAULT, false},
    {"spooldata",   store_bool, ITEM(res_job.spool_data), 0, ITEM_DEFAULT, false},
 
 #!/bin/sh
 #
 # Run a simple backup of the Bacula build directory then migrate it
-#   to another device, and see if PurgeMigrateJob works as expected.
+#   to another device, and see if PurgeMigrationJob works as expected.
 #
 # This script uses the virtual disk autochanger
 #
 
 change_jobname NightlySave $JobName
 
-$bperl -e 'add_attribute("$conf/bacula-dir.conf", "PurgeMigrateJob", "yes", "Job", "migrate-job")'
+$bperl -e 'add_attribute("$conf/bacula-dir.conf", "PurgeMigrationJob", "yes", "Job", "migrate-job")'
 
 start_test