Bacula-users

Re: [Bacula-users] Backup Full and Incremental...

2014-03-14 09:11:40
Subject: Re: [Bacula-users] Backup Full and Incremental...
From: Gilberto Nunes <gilberto.nunes32 AT gmail DOT com>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Fri, 14 Mar 2014 10:09:02 -0300
That's what I do now...


Pool {
  Name = Samba-Full
  Pool Type = Backup
  Maximum Volume Jobs = 1
  Volume Retention = 30 days
  Recycle = yes
  AutoPrune = yes
  LabelFormat = FullMensal
}
Pool {
  Name = Samba-Incremental
  Pool Type = Backup
  Maximum Volume Jobs = 1
  Volume Retention = 365 days
  Recycle = yes
  AutoPrune = yes
  LabelFormat = Incremental
}
Schedule {
  Name = Samba-Incremental
  Run = Level=Incremental Pool=Samba-Incremental at 02:30
}
Schedule {
  Name = Samba-Full
  Run = Level=Full Pool=Samba-Full on 14 fri-sat at 18:15
}
JobDefs {
  Name = SambaDef
  Type = Backup
  Client = server-fd
  FileSet = DADOS
  Storage = File
  Messages = Standard
}
Job {
  Name = Backup-Samba-Completo
  JobDefs = SambaDef
  Type = Backup
  Level = Full
  Client = server-fd
  FileSet = DADOS
  Schedule = Samba-Full
  Storage = File
  Pool = Samba-Full
  Messages = Standard
}
Job {
  Name = Backup-Samba-Incremental
  JobDefs = SambaDef
  Type = Backup
  Level = Incremental
  Client = server-fd
  FileSet = DADOS
  Schedule = Samba-Incremental
  Storage = File
  Pool = Samba-Incremental
  Messages = Standard
}

What do you think?

Thanks




2014-03-14 10:00 GMT-03:00 Gilberto Nunes <gilberto.nunes32 AT gmail DOT com>:
Perhaps using JobDefs or something like that?


2014-03-14 9:59 GMT-03:00 Gilberto Nunes <gilberto.nunes32 AT gmail DOT com>:

Hi John

But how can I define multiple levels on the same Job... Sorry... Perhaps I'm missing something here...

Thanks...


2014-03-14 9:47 GMT-03:00 John Drescher <drescherjm AT gmail DOT com>:

On Fri, Mar 14, 2014 at 8:28 AM, Gilberto Nunes
<gilberto.nunes32 AT gmail DOT com> wrote:
> Hi guys
>
> I am a bit confused here.
>
> I'm trying create a rotine to use 2 different files... I want backup samba
> share folder, placed on /home/samba/shares.
> I try create two Pools, like Samba-Full and Samba-Incremental and create a
> schedule to run Full Backup at all first Saturday of each month, and at
> midnight, run a Incremental backup everyday at 22hs00.
>
> But, (and here where I feel myself lost) when Incremental backup is near to
> run, it create first a Full Backup, complain that no Full backup was
> previously created...
>
> Why this happen?? Is it normal behavior??
>
> Bellow heres the config...
>
> Thanks...
>
> Pool {
>   Name = Samba-Full
>   Pool Type = Backup
>   Maximum Volume Jobs = 1
>   Volume Retention = 30 days
>   Recycle = yes
>   AutoPrune = yes
>   LabelFormat = FullMensal
> }
> Pool {
>   Name = Samba-Incremental
>   Pool Type = Backup
>   Maximum Volume Jobs = 1
>   Volume Retention = 365 days
>   Recycle = yes
>   AutoPrune = yes
>   LabelFormat = Incremental
> }
> Schedule {
>   Name = Samba-Incremental
>   Run = Level=Incremental Pool=Samba-Incremental at 22:00
> }
> Schedule {
>   Name = Samba-Full
>   Run = Level=Full Pool=Samba-Full 1st sat at 00:00
> }
> Job {
>   Name = Samba-Full
>   Type = Backup
>   Level = Full
>   Client = server-fd
>   FileSet = DADOS
>   Schedule = Samba-Full
>   Storage = File
>   Pool = Samba-Full
>   Messages = Standard
> }
> Job {
>   Name = Samba-Inc
>   Type = Backup
>   Level = Incremental
>   Client = server-fd
>   FileSet = DADOS
>   Schedule = Samba-Incremental
>   Storage = File
>   Pool = Samba-Incremental
>   Messages = Standard
> }
>

You must use a single job for your Full and Incremental otherwise the
behavior you have witnessed will happen. Use the Schedule resource to
control when the Full and Incremental are scheduled.

John



--
Gilberto Ferreira



--
Gilberto Ferreira



--
Gilberto Ferreira
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users