I have what I believe a fairly standard configuration, where a host is being backed up by an Incremental job that specifies an Incremental pool, but also separate pools for Full and Differential. The pool that is actually used is determined by the schedule.
I would like to duplicate this job to S3 storage when it is completed, for off site redundancy. I have been able to get that up and running with a Copy Job, and that works, except that I am required to specify the Pool the job used, so the Job is limited to just the most recent back from that Pool.
I'm not sure how to get around this. Am I required to also have 3 separate S3 copy jobs set up? How can I ensure the correct version of the S3 Copy Job is executed following the primary backup?
Is there a method of having the Copy Job pickup the last backup created by the primary Job, and choose the pool accordingly, as the primary Job does?
Here's a rundown on the config...
Job {
Name = "Snap-BW"
FileSet = "BW"
Messages = "Snap-Messages"
Type = Backup
Level = Incremental
Client = snap-bw-fd
Schedule = "WeeklyCycle-AM"
Storage = NAS-Storage
Messages = Standard
Pool = Incremental
Priority = 8
Write Bootstrap = "/var/lib/bareos/%c.bsr"
Full Backup Pool = Full-Pool
Differential Backup Pool = Differential-Pool
Incremental Backup Pool = Incremental-Pool
}
Pool {
Name = Full-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 1 month
Maximum Volume Bytes = 50G
Maximum Volumes = 100
Label Format = "Full-Pool-"
Next Pool = "S3-Copy-Pool"
}
Pool {
Name = Differential-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 2 weeks
Maximum Volume Bytes = 10G
Maximum Volumes = 100
Label Format = "Diff-Pool-"
Next Pool = "S3-Copy-Pool"
}
Pool {
Name = Incremental-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 1 week
Maximum Volume Bytes = 1G
Maximum Volumes = 100
Label Format = "Inc-Pool-"
Next Pool = "S3-Copy-Pool"
}
Job {
Name = "s3-copy"
Type = Copy
Messages = Standard
Selection Type = Job
Selection Pattern = "Snap-BW"
Pool = Full-Pool
}
Any advice or suggestions would be greatly appreciated. Thanks for your help!