JOB *job = jcr->job;
JCR *djcr; /* possible duplicate job */
- if (job->AllowDuplicateJobs) {
+ if (jcr->no_check_duplicates || job->AllowDuplicateJobs) {
return true;
}
Dmsg0(800, "Enter allow_duplicate_job\n");
/* Don't let WatchDog checks Max*Time value on this Job */
mig_jcr->no_maxtime = true;
+ /* Don't check for duplicates on migration and copy jobs */
+ mig_jcr->no_check_duplicates = true;
+
Dmsg4(dbglevel, "mig_jcr: Name=%s JobId=%d Type=%c Level=%c\n",
mig_jcr->jr.Name, (int)mig_jcr->jr.JobId,
mig_jcr->jr.JobType, mig_jcr->jr.JobLevel);
bool Encrypt; /* Encryption used by FD */
bool stats_enabled; /* Keep all job records in a table for long term statistics */
bool no_maxtime; /* Don't check Max*Time for this JCR */
+ bool no_check_duplicates; /* Don't check duplicates for this JCR */
bool keep_sd_auth_key; /* Clear or not the SD auth key after connection*/
bool use_accurate_chksum; /* Use or not checksum option in accurate code */
bool run_pool_override;