From 6575df25dff28f0251dc3f66c98e7a7a3679af7b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 19 Oct 2011 19:14:59 +0200 Subject: [PATCH] Add pool to migration run command --- bacula/src/dird/migrate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.5