2014-10-14 18:46 GMT+01:00 Marco van Wieringen <
[email protected]>:

> On 10/14/14 06:58 PM, Franck Ratier wrote:
>
>> Hello all,
>>
>> I am trying to copy a job (from disk to tape) but i'm having a
>> little problem because the initial job is also running a clone and
>> therefore when i run the copy job, the clone is run a second time...
>>
>> I've tried several Selection Types and Selection Patterns, but
>> Bareos always ends up running the clone.
>>
>> I can't figure out where my mistake is, so if anyone has been
>> through this before, don't hesitate to get in touch :)
>>
> I think the whole clone stuff is something that has never been taken
> into consideration for migration and copy Jobs. So I don't think you are
> doing anything wrong but this never has and for now probably never
> will work. I must say I also never seen people using it I had to lookup
> how you even configure it. There have been quite some loose ends
> when it comes to copy/migration jobs and duplicate job suppression and
> probably also regarding this clone option. The whole design is kind of
> weird anyway see https://bugs.bareos.org/view.php?id=342 which I
> had a look into recently but changing it is not simple as you then trip
> over all kind of other code that assumes quite a bit.


​OK, thanks for the explanation, too bad it won't work, i'll have to find a
workaround then.

For information, here is what i'm doing:

pool {
  name = "k1002-FilePool"
  description = "Weekly File Pool Onsite"
  pooltype = "Backup"
  labelformat = "${Client:s/-fd//t}.${JobName}"
  labeltype = "bareos"
  maximumvolumejobs = 1
  volumeretention = 10 minutes
  migrationtime = 5 minutes
  nextpool = "25Weeks"
  storage = "k1002-FileStorage"
  fileretention = 10 minutes
  jobretention = 10 minutes
}

pool {
  name = "te1403-FilePool"
  description = "Weekly File Pool Offsite"
  pooltype = "Backup"
  labelformat = "${Client:s/-fd//t}.${Job}"
  labeltype = "bareos"
  volumeretention = 20 minutes
  volumeuseduration = 20 minutes
  storage = "te1403-FileStorage"
  fileretention = 20 minutes
  jobretention = 20 minutes
}

pool {
  name = "25Weeks"
  description = "6 Months Rotate Tape Pool"
  pooltype = "Backup"
  labeltype = "bareos"
  volumeretention = 5 months 3 weeks 4 days
  volumeuseduration = 5 months 3 weeks 4 days
  storage = "k1002-TapeLibrary"
  fileretention = 5 months 3 weeks 4 days
  jobretention = 5 months 3 weeks 4 days​
​}


JobDefs {
  Description = "DEFAULT JOB DEFINITIONS FOR IRDB BACKUP"
  Name = "IRDB"
  Level = Full
  Messages = Standard
  Priority = 10
  Write Bootstrap = "|/usr/sbin/bsmtp -h localhost -f \"Bareos \<%r\>\" -s
\"Bootstrap for Job %j\" [email protected]"
}


​job {
  name = "IRDB_D2D"
  description = "Indexed Resource DB Onsite & Offsite Backup"
  type = Backup
  level = Full
  messages = "Standard"
  pool = "te1403-FilePool"
  client = "te1400-fd"
  fileset = "IRDB"
  schedule = "IRDB"
  jobdefs = "IRDB"
  run = IRDB_D2D level=%l since="%S" pool=k1002-FilePool
  writebootstrap = "|/usr/sbin/bsmtp -h localhost -f "Bareos <%r>" -s
"Bootstrap for Job %j" [email protected]"
  writeverifylist = "|/usr/sbin/bsmtp -h localhost -f "Bareos <%r>" -s
"Bootstrap for Job %j" [email protected]"
  maximumconcurrentjobs = 2
}

job {
  name = "IRDB_D2T"
  description = "Indexed Resource DB Offline Migration Backup"
  type = Copy
  level = Full
  messages = "Standard"
  pool = "k1002-FilePool"
  schedule = "IRDB_migration"
  jobdefs = "IRDB"
  writebootstrap = "|/usr/sbin/bsmtp -h localhost -f "Bareos <%r>" -s
"Bootstrap for Job %j" [email protected]"
  writeverifylist = "|/usr/sbin/bsmtp -h localhost -f "Bareos <%r>" -s
"Bootstrap for Job %j" [email protected]"
  selectiontype = PoolTime
}


>
>  Thanks,
>>
>> Franck
>>
>> PS: i also noticed that trying to estimate the copy job crashes the
>> Director
>>
>>  Ok don't think an estimate makes any sense for a copy job that it
> crashes probably is also something it shouldn't but for that log a
> bug report in Mantis.


​Yes it doesn't make sense, i just noticed it when i chose the wrong job
number​.
Thanks for the bug report and fix (even before i had the chance to see your
reply it was already fixed!!!), i'll report these directly in the bug
tracker from now on.

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to