Bacula-users

Re: [Bacula-users] scheduling weirdness (No prior Full backup Job record found)

2008-08-08 10:35:18
Subject: Re: [Bacula-users] scheduling weirdness (No prior Full backup Job record found)
From: "Peggy Wilkins" <enlil65 AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 8 Aug 2008 09:35:11 -0500
On Thu, Aug 7, 2008 at 11:20 AM, Michael Hale <mhale AT transcomus DOT com> 
wrote:
>
> For some reason, even after performing a full backup, the next night,
> bacula reports:
>
> 05-Aug 23:05 bacula-dir JobId 37: No prior Full backup Job record found.
> 05-Aug 23:05 bacula-dir JobId 37: No prior or suitable Full backup
> found in catalog. Doing FULL backup.
>
> and then performs a full backup.  If I connect via bconsole and
> manually schedule a backup, it will do an incremental.
>
> Here's my various Defs:
>
> JobDefs {
>   Name = "DefaultJob"
>   Type = Backup
>   Level = Incremental
>   Client = bacula-fd
>   FileSet = "Full Set"
>   Schedule = "WeeklyCycle"
>   Storage = File
>   Messages = Standard
>   Pool = Default
>   Priority = 10
> }
>
> Job {
>         Name = "monitor-backup"
>         Client = monitor-fd
>         JobDefs = "DefaultJob"
>         Write Bootstrap = "/opt/csw/var/bacula/working/monitor.bsr"
>         Enabled = yes
>         FileSet = "generic linux fileset"
> }
>
> 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
> }
>
> This would seem to me to take a full backup on the 1st Sunday,
> Differentials for the remaining Sundays in the month, and Incrementals
> the rest of the time, but that doesn't seem to be happening.
>
> For instance, here's the backup that ran yesterday:
>
> 05-Aug 23:05 bacula-dir JobId 37: No prior Full backup Job record found.
> 05-Aug 23:05 bacula-dir JobId 37: No prior or suitable Full backup
> found in catalog. Doing FULL backup.
[snip]

I am having a similar problem, but only with one of the clients I back up.

I am running bacula version 2.4.2 on FreeBSD-7.0 (both client and
server).  Here are the relevant lines from my bacula-dir.conf:

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = capricorn-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = CapricornDisk1
  Messages = Standard
  Pool = Default
  Full Backup Pool = Full-Pool
  Incremental Backup Pool = Inc-Pool
  Differential Backup Pool = Diff-Pool
  Priority = 10
}

Job {
  Name = "grenache-all"
  Client = grenache-fd
  JobDefs = "DefaultJob"
  Schedule = WeeklyCycle1
  Storage = CapricornDisk2
  Write Bootstrap = "/var/db/bacula/grenache.bsr"
}

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

This ran a Full on Saturday, Aug 2 as expected from the schedule.

Incrementals ran successfully against the Aug 2 Full on Aug 3, Aug 4,
Aug 5, and Aug 6, also as expected.

Then last night (Thursday, Aug 7) the expected Incremental was upgraded to Full:

07-Aug 23:05 capricorn-dir JobId 1222: No prior Full backup Job record found.
07-Aug 23:05 capricorn-dir JobId 1222: No prior or suitable Full
backup found in catalog. Doing FULL backup.
08-Aug 00:01 capricorn-dir JobId 1222: Start Backup JobId 1222,
Job=grenache-all.2008-08-07_23.05.08

I've been looking for a reason and can't find one.  Am I missing something?

This happened last month also with this same client and the same
schedule.  I deleted one of the two Fulls (I don't recall which) and
it went on happily after that.  That was with the previous bacula
version (e.g., 2.4.2 was recently released so I wasn't running 2.4.2
yet  last month).

Here is the relevant output of "list jobs" for this client:

| 1,191 | grenache-all  | 2008-08-02 23:08:20 | B    | F     |
5,897,613 | 164,703,832,130 | T         |
| 1,197 | grenache-all  | 2008-08-04 00:00:49 | B    | I     |
734 |     363,185,366 | T         |
| 1,203 | grenache-all  | 2008-08-04 23:07:45 | B    | I     |
1,156 |     375,504,071 | T         |
| 1,209 | grenache-all  | 2008-08-06 01:12:42 | B    | I     |
954 |     351,292,823 | T         |
| 1,215 | grenache-all  | 2008-08-06 23:09:07 | B    | I     |
1,119 |     365,348,472 | T         |
| 1,222 | grenache-all  | 2008-08-08 00:01:43 | B    | F     |
4,522,362 |  99,451,702,777 | f         |

The Full last night failed because I just don't have the storage space
to acommodate two fulls during the same month.

I can provide more information if needed.

Peggy Wilkins
Sysadmin, the University of Chicago Library

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users