From: Kern Sibbald Date: Wed, 19 Oct 2011 17:14:59 +0000 (+0200) Subject: Add pool to migration run command X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6575df25dff28f0251dc3f66c98e7a7a3679af7b;p=bacula%2Fbacula Add pool to migration run command --- diff --git a/bacula/src/dird/migrate.c b/bacula/src/dird/migrate.c index 43abf95258..0b4d8cda7e 100644 --- a/bacula/src/dird/migrate.c +++ b/bacula/src/dird/migrate.c @@ -917,8 +917,9 @@ static void start_migration_job(JCR *jcr) UAContext *ua = new_ua_context(jcr); char ed1[50]; ua->batch = true; - Mmsg(ua->cmd, "run job=\"%s\" jobid=%s ignoreduplicatecheck=yes", jcr->job->name(), - edit_uint64(jcr->MigrateJobId, ed1)); + Mmsg(ua->cmd, "run job=\"%s\" jobid=%s allowduplicates=yes pool=\"%s\"", + jcr->job->name(), edit_uint64(jcr->MigrateJobId, ed1), + jcr->pool->name()); Dmsg2(dbglevel, "=============== %s cmd=%s\n", jcr->get_OperationName(), ua->cmd); parse_ua_args(ua); /* parse command */ JobId_t jobid = run_cmd(ua, ua->cmd);