Hi!

I am running a Bareos 18.2.5 server on Ubuntu 18.04.2LTS and at the moment I 
have a "normal" backup strategy. Means once a month a full backup, every 
weekend a differential backup and every day an incremental backup (all to 
disk). 

Now I want to use a copy job, every time the full backup has finished.
This copy job should copy all recently generated full backups to a 
month-specific pool of tapes.

I.e:

January: 
1) Full Backups (10 clients) to disk
2) Copy these backups to the "JanuaryTapePool"

February: 
1) Full Backups (10 clients) to disk
2) Copy these backups to the "FebruaryTapePool"

March: 
1) Full Backups (10 clients) to disk
2) Copy these backups to the "MarchTapePool"

[...]

Every "xxxTapePool" will contain at least one tape, named "<MONTH>-01" 
(January-01). In the future, a second tape (named "<MONTH>-02") may be added to 
these pools. But this will depend on the ammount of data to be backuped. 

Is this possible and how do I have to configure it?
In the appendix you will find a part of my configuration.

I hope someone can help me.

Thank you very much!

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/d0f79601-a7e1-4cea-acc2-b84733d0cfab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Job {
  Name = copy-to-tape
  Type = Copy
  Level = Full

  Pool = Full
  Storage = Tape 
  NextPool = FullLTO4

  FileSet = "EmptyCopyToTape"
  Messages = Standard
  Maximum Concurrent Jobs = 40
  Allow Duplicate Jobs = Yes
  Allow Higher Duplicates = No
  Cancel Queued Duplicates = No
  Cancel Running Duplicates = No
  SpoolData = no
  Selection Type = SQLQuery
  Priority = 100
  Schedule = "MonthlyTapeCycle"

  # Uncopied Full-Backups of the last 27 days
  Selection Pattern = "SELECT DISTINCT J.JobId, J.StartTime FROM Job J, Pool P 
WHERE P.Name IN ('Full') AND P.PoolId = J.PoolId AND J.Type = 'B' AND 
J.JobStatus IN ('T', 'W') AND J.JobBytes > 0 AND J.JobId NOT IN (SELECT 
PriorJobId FROM Job WHERE Type IN ('B','C') AND J.JobStatus IN ('T','W') AND  
PriorJobId != 0) AND J.RealEndTime > (CURRENT_TIMESTAMP - INTERVAL 27 day) 
ORDER BY J.StartTime"
}
Pool {
  Name = Full
  Pool Type = Backup
  Storage = File
  Recycle = yes                       # Bareos can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 6 months         # How long should the Full Backups be 
kept? (#06)
  Maximum Volume Bytes = 10G          # Limit Volume size to something 
reasonable
  Maximum Volumes = 500               # Limit number of Volumes in Pool
  Label Format = "Full-"
  #Next Pool = AprilTapePool # WHAT TO USE HERE?!
}
# ====== Tape Pool ====== #

# January
Pool {
  Name = JanuaryTapePool
  Pool Type = Backup
  Recycle = yes
  Storage = Tape
  AutoPrune = yes
  Volume Use Duration = 4 day
  Volume Retention = 1 year
  Label Format = "January-"
}

# February
Pool {
  Name = FebruaryTapePool
  Pool Type = Backup
  Recycle = yes
  Storage = Tape
  AutoPrune = yes
  Volume Use Duration = 4 day
  Volume Retention = 1 year
  Label Format = "February-"
}

# March
Pool {
  Name = MarchTapePool
  Pool Type = Backup
  Recycle = yes
  Storage = Tape
  AutoPrune = yes
  Volume Use Duration = 4 day
  Volume Retention = 1 year
  Label Format = "March-"
}

[...]
Schedule {
  Name = "MonthlyTapeCycle"
  Run = Level=Full Pool=JanuaryTapePool jan last sun at 10:00
  Run = Level=Full Pool=FebruaryTapePool feb last sun at 10:00
  Run = Level=Full Pool=MarchTapePool mar last sun at 10:00
  Run = Level=Full Pool=AprilTapePool apr last sun at 10:00
  Run = Level=Full Pool=MayTapePool may last sun at 10:00
  Run = Level=Full Pool=JuneTapePool jun last sun at 10:00
  Run = Level=Full Pool=JulyTapePool jul last sun at 10:00
  Run = Level=Full Pool=AugustTapePool aug last sun at 10:00
  Run = Level=Full Pool=SeptemberTapePool sep last sun at 10:00
  Run = Level=Full Pool=OctoberTapePool oct last sun at 10:00
  Run = Level=Full Pool=NovemberTapePool nov last sun at 10:00
  Run = Level=Full Pool=DecemberTapePool dec last sun at 10:00
}

Reply via email to