Mike Reinehr wrote:
On Thursday 14 July 2005 09:37 am, DAve wrote:

Good morning all,

I've read through the docs (doesn't mean I got it all) and successfully
installed and configured Bacula. Very nice program. I ran backups into a
single file for a while until we got an idea what we needed. I then
reread the docs section about Automatic_Volume_Recycling. I am certain I
missed something.

Once I got everything resetup and running Bacula appeared to be doing
exactly what I wanted except that my catalog backup is now failing.

I am at a oss as to understand why. Can someone please smack me with a
clue bat?

Thanks, details below.

DAve


Dave,

Your listing for Jobid 895, below, indicates a Backup Level of Catalog. I think this is your problem. The backup level should be Full. Catalog is a level used only by verify jobs. Unfortunately, I can't say for certain why this is happening. All of your configuration stanzas seem correct, to me.

Agreed, but I don't understand why it is trying to use that backup level? I don't have a backup level of Catalog anywhere.

The only clue that I see is in your listing of pools. In that list the pool type for your Catalog pool is indicated as Cat-. You might try deleting this pool and allowing it to be created again, from scratch.

I don't understand, delete what? The media?


Also, are you running this job with a bconsole run command, or is it running automatically? If from bconsole, make sure that you have selected the correct level, before saying yes to run.

When I run the job from bconsole it works fine, but I have to mod the pool to "Full" for it to work. Not seeing where the Pool is getting set to "Catalog".

Should I post the complete bacula-dir.conf?

Should I send any output from bconsole?

DAve


cmr


=============error message========================
14-Jul 01:10 web6-dir: Start Backup JobId 895,
Job=BackupCatalog.2005-07-14_01.10.00
14-Jul 01:10 web6-dir: BackupCatalog.2005-07-14_01.10.00 Fatal error:
fd_cmds.c:222 Unimplemented backup level 67 C
14-Jul 01:10 web6-dir: BackupCatalog.2005-07-14_01.10.00 Error: Bacula
1.36.1 (26Nov04): 14-Jul-2005 01:10:08
  JobId:                  895
  Job:                    BackupCatalog.2005-07-14_01.10.00
  Backup Level:           Catalog
  Client:                 web6-fd
  FileSet:                "Web6-Catalog" 2004-12-17 15:27:31
  Pool:                   "Default"
  Storage:                "File"
  Start time:             14-Jul-2005 01:10:02
  End time:               14-Jul-2005 01:10:08
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0
  SD Bytes Written:       0
  Rate:                   0.0 KB/s
  Software Compression:   None
  Volume name(s):
  Volume Session Id:      25
  Volume Session Time:    1120164017
  Last Volume Bytes:      0
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:
  SD termination status:  Waiting on FD
  Termination:            *** Backup Error ***


=============bacula-dir.conf==========================
Job {
  Name = "BackupCatalog"
  Type = Backup
  FileSet = "Web6-Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/usr/local/share/bacula/make_catalog_backup bacula
bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/usr/local/share/bacula/delete_catalog_backup"
  Write Bootstrap = "/usr/local/db/bacula/BackupCatalog.bsr"
  Level = Full
  Client = web6-fd
  Storage = File
  Messages = Standard
  Pool = Default
  Priority = 11                   # run after main backup
}

FileSet {
  Name = "Web6-Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /usr/local/db/bacula/bacula.sql
  }
}

Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Level=Full FullPool=Catalog sun-sat at 1:10
}

Pool {
  Name = Catalog
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 30 days
  Accept Any Volume = yes             # write on any volume in the pool
  LabelFormat = "Cat-"
  Maximum Volume Jobs = 6
  Maximum Volumes = 5
}

=================bconsole=======================
*list pools
+--------+-----------+---------+---------+----------+-------------+

| PoolId | Name      | NumVols | MaxVols | PoolType | LabelFormat |

+--------+-----------+---------+---------+----------+-------------+

|      1 | Default   |       4 |       4 | Backup   | BackUp      |
|      2 | Inc-Pool  |       6 |       6 | Backup   | Inc-        |
|      3 | Diff-Pool |       5 |       5 | Backup   | Diff-       |
|      4 | Full-Pool |       6 |       6 | Backup   | Full-       |
|      5 | Catalog   |       5 |       5 | Backup   | Cat-        |

+--------+-----------+---------+---------+----------+-------------+

*list media
Pool: Catalog
+---------+------------+-----------+------------+----------+--------------+
---------+------+-----------+-----------+---------------------+

| MediaId | VolumeName | VolStatus | VolBytes   | VolFiles |

VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten

+---------+------------+-----------+------------+----------+--------------+
---------+------+-----------+-----------+---------------------+

|      22 | Cat-0001   | Append    | 72,498,076 |        0 |

2,592,000 |       1 |    0 |         1 | File      | 2005-06-30 15:42:30 |

|      23 | Cat-0002   | Append    |          1 |        0 |

2,592,000 |       1 |    0 |         1 | File      | 0000-00-00 00:00:00 |

|      24 | Cat-0003   | Append    |          1 |        0 |

2,592,000 |       1 |    0 |         1 | File      | 0000-00-00 00:00:00 |

|      25 | Cat-0004   | Append    |          1 |        0 |

2,592,000 |       1 |    0 |         1 | File      | 0000-00-00 00:00:00 |

|      26 | Cat-0005   | Append    |          1 |        0 |

2,592,000 |       1 |    0 |         1 | File      | 0000-00-00 00:00:00 |
+---------+------------+-----------+------------+----------+--------------+
---------+------+-----------+-----------+---------------------+



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to