On 9/14/17 9:38 AM, Douglas K. Rand wrote:
> 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.
>
That didn't work. My offsite ran last night and wrote to the
Consolidated pool rather than the offsite Pool. Here's my job defs:
JobDefs {
  Name = "OffsiteJob"
  Type = Backup
  Level = VirtualFull
  Client = gemini-fd
  FileSet = "SelfTest"                     # selftest
fileset                            (#13)
  Schedule = "OffsiteSchedule"
  Storage = Offsite
  Messages = Standard
  Pool = AI-Consolidated
  Incremental Backup Pool = AI-Incremental
  Next Pool = Offsite
  Virtual Full Backup Pool = Offsite
  Priority = 10
  Accurate = yes
  Write Bootstrap = "/mnt/bareos-file/bootstrap/%c.bsr"

  RunScript {
    RunsOnClient = no
    RunsWhen = Before
    FailJobOnError = yes
    Command = "/etc/bareos/check-offsite-backup-disk.sh"
  }
  RunScript {
    console = "update jobid=%i jobtype=A"
    RunsOnClient = no
    RunsOnFailure = No
    RunsWhen = After
    FailJobOnError = yes
  }

}

And the jobs that ran:
Job {
  Name = "offsite-andromeda"
  JobDefs = "OffsiteJob"
  Client = "andromeda-fd"
  FileSet = "andromeda"
}
Job {
  Name = "offsite-gemini-fd"
  JobDefs = "OffsiteJob"
  Client = "gemini-fd"
  FileSet = "gemini-all"
}

It seems that the jobs ran at level "Full" rather than "Virtual Full"

-- 
Research Scientist
Raytheon BBN Technologies
5775 Wayzata Blvd, Ste 630
Saint Louis Park, MN, 55416
Office: 952-545-5720

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