|
I wonder if one of you can help me? When I add a second
client to the dir.conf I receive a 28-Aug 18:58 bacula-dir: ERROR TERMINATION
at inc_conf.c:330 Config error: Keyword Catalog not permitted in this resource
: line 341, col 8 of file /etc/bacula/bacula-dir.conf Catalog { This only happens when I add the second client. I’ve
check all closing braces and they are all where they should be. When I comment
the FileSet directive out it moans about other things but as soon as uncomment
the the above mentioned I get the same error. I have gone throught the FileSet
with a hawk’s eye but can’t find anything. The strange thing is as
soon as I move the client up the client works but then the original specified
client gives the error (I hope that I’m making sense). I have attached a text format of my config file if someone
wants to have a look at it. P.S where Ceaser is the culprit Please any help will be appreciated Oh I’m running FC4 with Bacula v 1.38 Janco v.d Merwe ____________________________________________________________________________ This communication and any attachments are confidential and intended for the sole use of the intended recipient. Any form of copying or disclosure of this communication to any third parties without permission is prohibited. The contents of this communication and its attachments are not intended to be relied upon in law without subsequent written confirmation. As such, Dunns Stores (Pty) Ltd accept no responsibility or liability (including negligence) for the consequences of anyone acting, or not acting, on information contained therein. If you have received this communication in error please notify us immediately and destroy or delete it. ____________________________________________________________________________ |
# # Default Bacula Director Configuration file # # The only thing that MUST be changed is to add one or more # file or directory names in the Include directive of the # FileSet resource. # # For Bacula release 1.38.11 (28 June 2006) -- redhat (Stentz) # # You might also want to change the default email address # from root to your address. See the "mail" and "operator" # directives in the Messages resource. #
Director { # define myself
Name = dunnsbac-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 20
Password = "director" # Console password
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = dunnsbac-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Default
Priority = 10
}
JobDefs {
Name = "MIS02 Daily"
Type = Backup
Level = Full
Client = mis02-fd
FileSet = "MIS02_Daily"
Schedule = "Daily"
Storage = AIT
Messages = Standard
Pool = Daily
Priority = 1
}
JobDefs {
Name = "MIS02 Weekly"
Type = Backup
Level = Full
Client = mis02-fd
FileSet = "MIS02_Weekly"
Schedule = "Weekly"
Storage = AIT
Messages = Standard
Pool = Weekly
Priority = 2
}
JobDefs {
Name = "Ceaser"
Type = Backup
Level = Full
Client = ceaser-fd
FileSet = "Ceaser"
Schedule = "Daily"
Storage = AIT
Messages = Standard
Pool = Daily
Priority = 3
}
#
# Define the main nightly save backup job
# By default, this job will back up to disk in /tmp
Job {
Name = "Client1"
JobDefs = "DefaultJob"
Write Bootstrap = "/var/bacula/Client1.bsr"
}
Job {
Name = "MIS02Daily"
Client = mis02-fd
JobDefs = "MIS02 Daily"
Write Bootstrap = "/var/bacula/mis02.bsr"
}
Job {
Name = "MIS02Weekly"
JobDefs = "MIS02 Weekly"
Write Bootstrap = "/var/bacula/mis02weekly.bsr"
}
Job {
Name = "Ceaser"
JobDefs = "Ceaser"
Write Bootstrap = "/var/bacula/ceaser.bsr"
}
#Job {
# Name = "Client2"
# Client = dunnsbac2-fd
# JobDefs = "DefaultJob"
# Write Bootstrap = "/var/bacula/Client2.bsr"
#}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"
# This deletes the copy of the catalog
RunAfterJob = "/etc/bacula/delete_catalog_backup"
Write Bootstrap = "/var/bacula/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
#
# Standard Restore template, to be changed by Console program
# Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
Name = "RestoreFiles"
Type = Restore
Client=dunnsbac-fd
FileSet="Full Set"
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
#
# Put your list of files here, preceded by 'File =', one per line
# or include an external list with:
#
# File = <file-name
#
# Note: / backs up everything on the root partition.
# if you have other partitons such as /usr or /home
# you will probably want to add them too.
#
# By default this is defined to point to the Bacula build
# directory to give a reasonable FileSet to backup to
# disk storage during initial testing.
#
File = /root/bacula-1.38.11
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
FileSet {
Name = "MIS02_Daily"
Include {
Options {
signature=MD5
}
File = D:/"Comms_avish"
File = D:/"DBA Documentation"
File = D:/"MIS_Downloads"
File = D:/"MSSQL2000"/"Backups for Tape"/"Daily Backups"
File = D:/"MSSQL2000"/"MSSQL"/"BACKUP"
}
}
FileSet {
Name = "MIS02_Weekly"
Include {
Options {
signature=MD5
}
File = D:/"MSSQL2000"/"MSSQL"/"BACKUP"
}
}
FileSet {
Name = "Ceaser"
Include {
Options {
signature=MD5
}
File = D:/"Users"
File = E:/"Arthur Data"
File = E:/"Departments"
File = E:/"UCS"
}
}
# When to do the backups, full backup on first sunday of the month,
# differential (i.e. incremental since full) every other sunday,
# and incremental backups other days
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
}
Schedule {
Name = "Daily"
Run = Full mon-thu at 21:00
}
Schedule {
Name = "Weekly"
Run = Full fri at 21:00
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/bacula/bacula.sql
}
}
# Client (File Services) to backup
Client {
Name = dunnsbac-fd
Address = dunnsbac
FDPort = 9102
Catalog = MyCatalog
Password = "getafile" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = mis02-fd
Address = mis02
FDPort = 9102
Catalog = MyCatalog
Password = "getafile"
File Retention = 7 days
Job Retention = 1 month
AutoPrune = yes
}
Client {
Name = ceaser-fd
Address = ceaser
FDPort = 9102
Catalog = Dunns
Password = "getafile"
File Retention = 7 days
Job Retention = 1 month
AutoPrune = yes
}
# Definition of file storage device
Storage {
Name = File
# Do not use "localhost" here
Address = dunnsbac # N.B. Use a fully qualified name here
SDPort = 9103
Password = "getatape"
Device = FileStorage
Media Type = File
}
Storage {
Name = AIT
Address = dunnsbac
SDPort = 9103
Password = "getatape"
Device = AIT
Media Type = AIT3
}
# Definition of DDS tape storage device
#Storage {
# Name = DDS-4
# Do not use "localhost" here
# Address = dunnsbac # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "getatape" # password for Storage daemon
# Device = DDS-4 # must be same as Device in Storage
daemon
# Media Type = DDS-4 # must be same as MediaType in Storage
daemon
# Autochanger = yes # enable for autochanger device
#}
# Definition of 8mm tape storage device
#Storage {
# Name = "8mmDrive"
# Do not use "localhost" here
# Address = dunnsbac # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "getatape"
# Device = "Exabyte 8mm"
# MediaType = "8mm"
#}
# Definition of DVD storage device
#Storage {
# Name = "DVD"
# Do not use "localhost" here
# Address = dunnsbac # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "getatape"
# Device = "DVD Writer"
# MediaType = "DVD"
#}
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = bacula; user = bacula; password = ""
}
Catalog {
Name = Dunns
dbname = bacula; user = bacula; password = ""
}
# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
# to replace the %r in the from field (-f part) with a single valid
# email address in both the mailcommand and the operatorcommand.
#
mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula:
%t %e of %c %l\" %r"
operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s
\"Bacula: Intervention needed for %j\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
operator = [EMAIL PROTECTED] = mount
console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
append = "/var/bacula/log" = all, !skipped
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula
daemon message\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
console = all, !skipped, !saved
append = "/var/bacula/log" = all, !skipped
}
# Default pool definition
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Accept Any Volume = yes # write on any volume in the pool
}
Pool {
Name = Weekly
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 1 month
Accept Any Volume = yes
}
Pool {
Name = Daily
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 5 days
Accept Any Volume = yes
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = dunnsbac-mon
Password = "ZbjvKp7+fPj4zyHGrCqYo7+Bi7ubAzVCaQzIzBhRQvJE"
CommandACL = status, .status
}------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
