From 1cc801cb3cf0bd8b20b0bd1b1987b5d193335b9b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 6 Jul 2016 14:03:25 +0200 Subject: [PATCH] Fix #1926 about wrong duplicate job detection with Copy/Migration and Backup jobs --- bacula/src/dird/job.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bacula/src/dird/job.c b/bacula/src/dird/job.c index 3193741555..7558d362d7 100644 --- a/bacula/src/dird/job.c +++ b/bacula/src/dird/job.c @@ -1011,7 +1011,9 @@ bool allow_duplicate_job(JCR *jcr) if (djcr->IgnoreDuplicateJobChecking) { continue; } - if (strcmp(job->name(), djcr->job->name()) == 0) { + if ((strcmp(job->name(), djcr->job->name()) == 0) && + djcr->getJobType() == jcr->getJobType()) /* A duplicate is about the same name and the same type */ + { bool cancel_dup = false; bool cancel_me = false; if (job->DuplicateJobProximity > 0) { -- 2.39.5