On 09/14/17 09:11, Jon SCHEWE wrote:
I've got the always incremental backup strategy working. It backs up to
the pool AI-Incremental and then the consolidate job goes to
AI-Consolidate.

Now I would like to add virtual full backup for offsite. Below is what I
have for configuration. I'm unsure about the setting of the pool in the
virtual full job defs and the next pool for the virtual full.

Yes, you want the name of your consolidated pool in the job defs for your offsite jobs. I also set Full Backup Pool and Incremental Backup Pool, along with Next Pool.

The Next Pool is, I believe, the key for the virtual full jobs to work, that is where the virtual job is written. I think, but am not sure, that setting the Full and Incremental pools tells the virtual job where to get the source backups.

Here is my setup for doing virtual full backups to tape from my on-disk always incrementals. We also have a host named gemini, so I'll include that as samples. (I wonder if using star names is the most popular naming scheme with computer geeks.)

Note that our pool names don't follow the samples in the docs:
* "consolidated" instead of "AI-Consolidated"
* "always-incr" instead of "AI-Incremental"


job {
  name     = "gemini-offsite"
  client   = "gemini"
  job defs = "ai-offsite"
}

job defs {
  name = "ai-offsite"
  type = backup
  level = virtual full
  schedule = "offsite"
  # Gotta turn "virtual full" jobs into Archive jobs so we don't try to use
  # the backup for the next "virtual full" job.
  run script {
    console = "update jobid=%i jobtype=A"
    runs when = After
    runs on client = No
  }
  file set = "standard"
  accurate = yes
  messages = "standard"
  write bootstrap = "/var/db/bareos/bootstrap/%c.bsr"
  pool = "consolidated"
  full backup pool = "consolidated"
  incremental backup pool = "always-incr"
  spool data = yes
  spool attributes = yes
  next pool = "offsite"
}

pool {
  # No "Label Format" disables automatic volume labeling
  name = offsite
  pool type = Backup     # Sigh, case sensitive
  storage = lto6-1
  file   retention = 30 days
  job    retention = 90 days
  volume retention = 90 days
  maximum volume bytes = 2500 GB
  volume use duration = 48 hours
  recycle oldest volume = yes
}

storage {
  name = lto6-1
  address = bareos-sd.meridian-enviro.com
  password = "******"
  device = lto6-1
  maximum concurrent jobs = 1
  media type = "lto-6"
}

Hope this helps.  When you get it working I think you'll really like the setup.

--
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