Gap of time without backup?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Gap of time without backup?

Michael Munger

Assuming the specified schedule, volume retention, and job retention... is there a possibility that you can have a failed full backup on the 1st Sunday that leaves you without any backup for 24 hours? (Previous full one has expired in terms of retention, which kills all incremental and differentials for the previous month. So, doesn't it mean that there is no backup until the next one completes?)

Should retention periods be setup so that they are 1 month + 1 day?

Also, it seems that job and volume retention should be the same in most cases. It appears to not be useful to have one without the other. job without volume can tell you where the file used to be, and volume without job makes it near impossible to find a given file... correct?

Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}

## File Pool definition
Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 4 weeks          # same as everything else.
  Maximum Volume Bytes = 30G          # Limit Volume size to something reasonable
  Maximum Volumes = 185               # Limit number of Volumes in Pool
  Label Format = "Vol-"               # Auto label
  Action On Purge = Truncate
}

Client {
  Name = ns2-fd
  Address = 192.168.X.X
  FDPort = 9102
  Catalog = MyCatalog
  Password = "[REDACTED]"
  File Retention = 1 month           
  Job Retention = 1 month
  AutoPrune = yes
}

--
Michael Munger, dCAP, MCPS, MCNPS, MBSS
High Powered Help, Inc.
Microsoft Certified Professional
Microsoft Certified Small Business Specialist
Digium Certified Asterisk Professional
[hidden email]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Gap of time without backup?

Gary R. Schmidt-3
On 26/05/2017 21:03, Michael Munger wrote:
> Assuming the specified schedule, volume retention, and job retention...
> is there a possibility that you can have a failed full backup on the 1st
> Sunday that leaves you without /any /backup for 24 hours? (Previous full

Short answer - yes.

Longer answer - any backup regime that relies on everything happening
*exactly* some way is wrong.

To take you example, and make it worse: how do you compensate for a
longer than a forty-eight hour (i.e. weekend) power failure?

I am old fashioned[1], I have enough tapes for more than eighteen months
of the next five years projected use, with a requirement for twelve
months being live, and sending a full backup tape off site every month
for a three month holiday.  (And I can always, FSOV always, buy more
tapes.)  And I stash a full taken over the Christmas break as well, I
have copies going back a few years.

I would consider any short-rotation plan that did not have at least a
week of slack time as wasted effort.

        Cheers,
                Gary B-)

1 - Yes, Virginia, I did things with 9-track upright tape drives, and
DASD's the size of washing machines.  ;-)


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Gap of time without backup?

Kern Sibbald
In reply to this post by Michael Munger

Hello,

Bacula does its best not to prune the only good Full, but I am not 100% sure it always works, so in general the bad situation that you foresee should not happen.  However, Bacula has a number of techniques for resolving the problem.  See below:

1. Use the Reschedule On Error directive.

2. Use the Max Full Interval to make sure your next Incremental/Differential is upgraded to a Full. 

There are probably other techniques that will work too ...

Best regards,

Kern


On 05/26/2017 01:03 PM, Michael Munger wrote:

Assuming the specified schedule, volume retention, and job retention... is there a possibility that you can have a failed full backup on the 1st Sunday that leaves you without any backup for 24 hours? (Previous full one has expired in terms of retention, which kills all incremental and differentials for the previous month. So, doesn't it mean that there is no backup until the next one completes?)

Should retention periods be setup so that they are 1 month + 1 day?

Also, it seems that job and volume retention should be the same in most cases. It appears to not be useful to have one without the other. job without volume can tell you where the file used to be, and volume without job makes it near impossible to find a given file... correct?

Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}

## File Pool definition
Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 4 weeks          # same as everything else.
  Maximum Volume Bytes = 30G          # Limit Volume size to something reasonable
  Maximum Volumes = 185               # Limit number of Volumes in Pool
  Label Format = "Vol-"               # Auto label
  Action On Purge = Truncate
}

Client {
  Name = ns2-fd
  Address = 192.168.X.X
  FDPort = 9102
  Catalog = MyCatalog
  Password = "[REDACTED]"
  File Retention = 1 month           
  Job Retention = 1 month
  AutoPrune = yes
}

--
Michael Munger, dCAP, MCPS, MCNPS, MBSS
High Powered Help, Inc.
Microsoft Certified Professional
Microsoft Certified Small Business Specialist
Digium Certified Asterisk Professional
[hidden email]


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Gap of time without backup?

Heitor Faria
In reply to this post by Michael Munger
Hello, Michael,

Assuming the specified schedule, volume retention, and job retention... is there a possibility that you can have a failed full backup on the 1st Sunday that leaves you without any backup for 24 hours? (Previous full one has expired in terms of retention, which kills all incremental and differentials for the previous month. So, doesn't it mean that there is no backup until the next one completes?)

Should retention periods be setup so that they are 1 month + 1 day?

Any backup staggered rotation scheme (different pools & retentions) requires at least two version of the same backup level (IMHO). While the last job is resting, you run a new one. E.g. monthly backups should have at least 60 days retentions.
Btw: you can still restore expired backups, at least until they are recycled.

Also, it seems that job and volume retention should be the same in most cases. It appears to not be useful to have one without the other. job without volume can tell you where the file used to be, and volume without job makes it near impossible to find a given file... correct?

Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}


Regards,
--
===========================================================================
Heitor Medrado de Faria  | Bacula do Brasil
• Não seja tarifado pelo tamanho dos seus backups, conheça o Bacula Enterprise: http://www.bacula.com.br/enterprise/
 Ministro treinamento e implementação in-company do Bacula Community: http://www.bacula.com.br/in-company/
(61) 98268-4220 | www.bacula.com.br 
============================================================================
Indicamos também as capacitações complementares:
 Shell básico e Programação em Shell com Julio Neves.
 Zabbix com Adail Host.
============================================================================

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users