How to configure a copy job for different source pools

30 views
Skip to first unread message

Toni Burger

unread,
Aug 3, 2020, 8:51:56 AM8/3/20
to bareos-users
Hi, 
I try to understand the copy-job feature. I've a relativ simple setup. I use three pools. One for full-backups, one for differential-backups and one for incremental backups. These are configured like this: 

Pool {
  Name = Full-Pool
  Pool Type = Backup
  Next Pool = Extern-Full-Pool
  Recycle = yes                       
  AutoPrune = yes                     
  Volume Retention = 6 months         
  Maximum Volume Bytes = 50G          
  Maximum Volumes = 35                
  Storage = File
  Label Format = Full-
}

Pool {
  Name = Diff-Pool
  Pool Type = Backup
  Next Pool = Extern-Diff-Pool
  Recycle = yes                       
  AutoPrune = yes                     
  Volume Retention = 4 month          
  Storage = File
  Maximum Volume Bytes = 50G          
  Maximum Volumes = 2                 
  Storage = File
  Label Format = Diff-
}


Pool {
  Name = Inc-Pool
  Pool Type = Backup
  Next Pool = Extern-Inc-Pool
  Recycle = yes                       
  AutoPrune = yes                     
  Volume Retention = 20days           
  Storage = File
  Maximum Volume Bytes = 50G          
  Maximum Volumes = 3                 
  Storage = File
  Label Format = Inc-
}


Now, I want to define a copy job, which copies all uncopied jobs in the pools to the corresponding pools (you can see the Next Pool confiugration above) on an external usb drive. Therefore I setup my new external pools: 

Pool {
  Name = Extern-Full-Pool
  Pool Type = Backup
  Recycle = yes                       
  AutoPrune = yes                     
  Volume Retention = 2 years          
  Maximum Volume Bytes = 50G         
  Maximum Volumes = 35               
  Storage = ExternFile
  Label Format = Extern-Full-
}

Pool {
  Name = Extern-Diff-Pool
  Pool Type = Backup
  Recycle = yes                       
  AutoPrune = yes                     
  Volume Retention = 4 month          
  Maximum Volume Bytes = 50G          
  Maximum Volumes = 2                 
  Storage = ExternFile
  Label Format = Extern-Diff-
}


Pool {
  Name = Extern-Inc-Pool
  Pool Type = Backup
  Recycle = yes                       
  AutoPrune = yes                     
  Volume Retention = 20days           
  Maximum Volume Bytes = 50G          
  Maximum Volumes = 3                 
  Storage = ExternFile
  Label Format = Extern-Inc-
}


My problem is now to configure the copyJob :). My first approach was this one: 

Job {
  Name = "CopyToExtern"
  Type = Copy
  Selection Type = PoolUncopiedJobs
  Messages = Standard
  Pool = Full-Pool

  Full  Backup Pool = Full-Pool
  Differential Backup Pool = Diff-Pool
  Incremental Backup Pool = Inc-Pool
}


I think i got almost there. If I run this job, I get a copy of my Full-Pool in my External-Full-Pool. But how to trigger the Inc and Diff Pool copy action? 
Do I need to define 3 different copy jobs, which targets every pool? I tried to modify the Pool Parameter in this job, but this doesn't find jobs to copy. 

Thanks and best regards
Toni

Toni Burger

unread,
Aug 7, 2020, 6:17:55 AM8/7/20
to bareos-users
Hi, 
i think this post isn't relevant anymore. I had a look at the "Always incremental feature" ... which fits more to my backup strategy. 
Also one question came up with this configuraiton, but I will start a new thread about that. 

Thanks. 
Toni
Reply all
Reply to author
Forward
0 new messages