src/dird/backup.c
bool do_backup_init(JCR *jcr)
{
   /* Make local copy */
   jcr->RescheduleIncompleteJobs = jcr->job->RescheduleIncompleteJobs;

   if (jcr->is_JobLevel(L_VIRTUAL_FULL)) {
      return do_vbackup_init(jcr);
   }
   free_rstorage(jcr);                   /* we don't read so release */

   if (!get_or_create_fileset_record(jcr)) {
      return false;
   }

   /*
    * Get definitive Job level and since time
    */
   get_level_since_time(jcr, jcr->since, sizeof(jcr->since));

   apply_pool_overrides(jcr);

   if (!allow_duplicate_job(jcr)) {
      return false;
   }

   jcr->jr.PoolId = get_or_create_pool_record(jcr, jcr->pool->name());
   if (jcr->jr.PoolId == 0) {
      return false;
   }

   /* If pool storage specified, use it instead of job storage */
   copy_wstorage(jcr, jcr->pool->storage, _("Pool resource"));

   if (!jcr->wstorage) {
      Jmsg(jcr, M_FATAL, 0, _("No Storage specification found in Job or Pool.\n"));
      return false;
   }

   create_clones(jcr);                /* run any clone jobs */

   return true;
}
/*
 * Called here before the job is run to do the job
 *   specific setup.
 */
Called here before the job is run to do the job
specific setup.
Called here before the job is run to do the job specific setup .
bool do_backup_init(JCR *jcr)
{
   jcr->RescheduleIncompleteJobs = jcr->job->RescheduleIncompleteJobs;
   if (jcr->is_JobLevel(L_VIRTUAL_FULL)) {
      return do_vbackup_init(jcr);
   }
   free_rstorage(jcr);                   
   if (!get_or_create_fileset_record(jcr)) {
      return false;
   }
   get_level_since_time(jcr, jcr->since, sizeof(jcr->since));
   apply_pool_overrides(jcr);
   if (!allow_duplicate_job(jcr)) {
      return false;
   }
   jcr->jr.PoolId = get_or_create_pool_record(jcr, jcr->pool->name());
   if (jcr->jr.PoolId == 0) {
      return false;
   }
   copy_wstorage(jcr, jcr->pool->storage, _("Pool resource"));
   if (!jcr->wstorage) {
      Jmsg(jcr, M_FATAL, 0, _("No Storage specification found in Job or Pool.\n"));
      return false;
   }
   create_clones(jcr);                
   return true;
}
bool do_backup_init ( JCR * jcr ) { jcr -> RescheduleIncompleteJobs = jcr -> job -> RescheduleIncompleteJobs ; if ( jcr -> is_JobLevel ( L_VIRTUAL_FULL ) ) { return do_vbackup_init ( jcr ) ; } free_rstorage ( jcr ) ; if ( ! get_or_create_fileset_record ( jcr ) ) { return false ; } get_level_since_time ( jcr , jcr -> since , sizeof ( jcr -> since ) ) ; apply_pool_overrides ( jcr ) ; if ( ! allow_duplicate_job ( jcr ) ) { return false ; } jcr -> jr . PoolId = get_or_create_pool_record ( jcr , jcr -> pool -> name ( ) ) ; if ( jcr -> jr . PoolId == 0 ) { return false ; } copy_wstorage ( jcr , jcr -> pool -> storage , _ ( " " ) ) ; if ( ! jcr -> wstorage ) { Jmsg ( jcr , M_FATAL , 0 , _ ( " \n " ) ) ; return false ; } create_clones ( jcr ) ; return true ; }
Called here before the job is run to do the job
   specific setup.
Called here before the job is run to do the job specific setup .
/* Make local copy */ /* we don't read so release */ /*
    * Get definitive Job level and since time
    */ /* If pool storage specified, use it instead of job storage */ /* run any clone jobs */