der_angler
27.12.10, 03:28
Nabend,
ich kämpfe schon den ganzen Abend mit meiner Bacula Installation und irgendwie glaube ich die Kiste macht sich über mich lustig.
Ich habe meine bacula-dir.conf aufgeteilt und z. Bsp. die Jobs & Clients in extra Dateien ausgelagert.
Jetzt habe ich z.Bsp. für einen Rechner, 2 x verschiedene Jobs (wegen verschiedener Filesets). Die entsprechenden Configs unterscheiden sich wirklich nur in der "Files"-Angabe. Trotzdem startet Bacula nur mit einer von beiden.
Ich denke ein paar Beispiele verdeutlichen das ganze.
/etc/bacula/bacula-dir
...
...
...
Schedule {
Name = "WindowsWorkstations"
Run = Incremental daily at 20:00
}
# Include below all yours jobs configuration files (remember add '@' at beginning)
@/etc/bacula/conf.d/pc-backup.database.conf
@/etc/bacula/conf.d/pc-backup.full.conf
# @/etc/bacula/conf.d/pc-xxx_full.conf
@/etc/bacula/conf.d/pc-xxx_userdaten.conf
# @/etc/bacula/conf.d/pc-agenda_full.conf
@/etc/bacula/conf.d/pc-agenda_daten.conf
# Include Configs
@/etc/bacula/conf.d/clients.conf
@/etc/bacula/conf.d/filesets.conf
In dem Beispiel habe ich die 2 x Jobs auskommentiert die "Probleme" machen. Wenn ich Bacula mit dieser Config starte, dann kommt das folgende Ergebnis:
[root@pc-backup ~]# service bacula-dir start
Starting Bacula Director services: [ OK ]
Man sieht, alles okay.
Änder ich jetzt meine bacula-dir.conf so ab, das ich einen der beiden "Problem"-Jobs starte :
...
...
...
# Include below all yours jobs configuration files (remember add '@' at beginning)
@/etc/bacula/conf.d/pc-backup.database.conf
@/etc/bacula/conf.d/pc-backup.full.conf
# @/etc/bacula/conf.d/pc-xxx_full.conf
@/etc/bacula/conf.d/pc-xxx_userdaten.conf
@/etc/bacula/conf.d/pc-agenda_full.conf
@/etc/bacula/conf.d/pc-agenda_daten.conf
# Include Configs
@/etc/bacula/conf.d/clients.conf
@/etc/bacula/conf.d/filesets.confund starte ich jetzt das Ganze passiert folgendes:
[root@pc-backup ~]# service bacula-dir start
Starting Bacula Director services: 27-Dez 03:20 bacula-dir: ERROR TERMINATION at inc_conf.c:410
Config error: Keyword Name not permitted in this resource
: line 2, col 13 of file /etc/bacula/conf.d/pc-agenda_daten.conf
Name = "pc-agenda Daten"
[FEHLGESCHLAGEN]
Das ist schon extrem seltsam, weil er im Beispiel vorher noch genau diese Datei "pc-agenda_daten.conf" ohne Murren angenommen hat. Und nun soll es auf einmal falsch sein?
Aber okay, vielleicht liegt es an den Job-Dateien, deswegen hier der Job selbst und der Job davor.
pc-agenda_daten.conf
Job {
Name = "pc-agenda Daten"
Enabled = yes
Client = pc-agenda-fd
FileSet = "pc-agenda Daten"
Schedule = "WindowsWorkstations"
Write Bootstrap = "/var/lib/bacula/%ws.bsr"
Type = Backup
Level = Full
Storage = File
Pool = File
Priority = 11
Messages = Standard
Run After Job = "/usr/local/sbin/bacula2nagios \"%n\" 0 \"%e %l %v\""
Run After Failed Job = "/usr/local/sbin/bacula2nagios \"%n\" 1 \"%e %l %v\""
}
FileSet {
Name = "pc-agenda Daten"
Enable VSS = yes
Include {
Options {
signature = MD5
}
File = "C:\AGENDA"
}
}
pc-agenda_full.conf
Job {
Name = "pc-agenda Full"
Enabled = yes
Client = pc-agenda-fd
FileSet = "pc-agenda Full"
Schedule = "WindowsWorkstations"
Write Bootstrap = "/var/lib/bacula/%ws.bsr"
Type = Backup
Level = Full
Storage = File
Pool = File
Priority = 11
Messages = Standard
Run After Job = "/usr/local/sbin/bacula2nagios \"%n\" 0 \"%e %l %v\""
Run After Failed Job = "/usr/local/sbin/bacula2nagios \"%n\" 1 \"%e %l %v\""
}
FileSet {
Name = "pc-agenda Full"
Enable VSS = yes
Include {
Options {
signature = MD5
}
File = "C:\"
}
}
Also ich suche jetzt schon ein paar Stunden und kann kein Fehler finden.
Das schönste ist, das er vor ner halben Stunde bei den gleichen Configs noch diesen Fehler ausgegeben hat:
Starting Bacula Director services: 27-Dez 03:12 bacula-dir: ERROR TERMINATION at inc_conf.c:410
Config error: Keyword Name not permitted in this resource
: line 2, col 7 of file /etc/bacula/conf.d/clients.conf
Name = pc-backup-fd
[FEHLGESCHLAGEN]
Aber auch in meiner clients.conf kann ich keinen Fehler entdecken
Client {
Name = pc-backup-fd
Address = 192.168.xx.xx
FDPort = 9102
Catalog = MyCatalog
Password = "yx"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Client {
Name = pc-agenda-fd
Address = 192.168.xx.xx
FDPort = 9102
Catalog = MyCatalog
Password = "yx"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Client {
Name = pc-xxx-fd
Address = 192.168.xx.xx
FDPort = 9102
Catalog = MyCatalog
Password = "yx"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Ich bin wirklich komplett am verzweifeln. Ich habe das Gefühl das die Fehler sich ständig ändern, obwohl ich nicht wirklich etwas an der Config ändere.
Kann mir bitte irgendwer helfen?
ich kämpfe schon den ganzen Abend mit meiner Bacula Installation und irgendwie glaube ich die Kiste macht sich über mich lustig.
Ich habe meine bacula-dir.conf aufgeteilt und z. Bsp. die Jobs & Clients in extra Dateien ausgelagert.
Jetzt habe ich z.Bsp. für einen Rechner, 2 x verschiedene Jobs (wegen verschiedener Filesets). Die entsprechenden Configs unterscheiden sich wirklich nur in der "Files"-Angabe. Trotzdem startet Bacula nur mit einer von beiden.
Ich denke ein paar Beispiele verdeutlichen das ganze.
/etc/bacula/bacula-dir
...
...
...
Schedule {
Name = "WindowsWorkstations"
Run = Incremental daily at 20:00
}
# Include below all yours jobs configuration files (remember add '@' at beginning)
@/etc/bacula/conf.d/pc-backup.database.conf
@/etc/bacula/conf.d/pc-backup.full.conf
# @/etc/bacula/conf.d/pc-xxx_full.conf
@/etc/bacula/conf.d/pc-xxx_userdaten.conf
# @/etc/bacula/conf.d/pc-agenda_full.conf
@/etc/bacula/conf.d/pc-agenda_daten.conf
# Include Configs
@/etc/bacula/conf.d/clients.conf
@/etc/bacula/conf.d/filesets.conf
In dem Beispiel habe ich die 2 x Jobs auskommentiert die "Probleme" machen. Wenn ich Bacula mit dieser Config starte, dann kommt das folgende Ergebnis:
[root@pc-backup ~]# service bacula-dir start
Starting Bacula Director services: [ OK ]
Man sieht, alles okay.
Änder ich jetzt meine bacula-dir.conf so ab, das ich einen der beiden "Problem"-Jobs starte :
...
...
...
# Include below all yours jobs configuration files (remember add '@' at beginning)
@/etc/bacula/conf.d/pc-backup.database.conf
@/etc/bacula/conf.d/pc-backup.full.conf
# @/etc/bacula/conf.d/pc-xxx_full.conf
@/etc/bacula/conf.d/pc-xxx_userdaten.conf
@/etc/bacula/conf.d/pc-agenda_full.conf
@/etc/bacula/conf.d/pc-agenda_daten.conf
# Include Configs
@/etc/bacula/conf.d/clients.conf
@/etc/bacula/conf.d/filesets.confund starte ich jetzt das Ganze passiert folgendes:
[root@pc-backup ~]# service bacula-dir start
Starting Bacula Director services: 27-Dez 03:20 bacula-dir: ERROR TERMINATION at inc_conf.c:410
Config error: Keyword Name not permitted in this resource
: line 2, col 13 of file /etc/bacula/conf.d/pc-agenda_daten.conf
Name = "pc-agenda Daten"
[FEHLGESCHLAGEN]
Das ist schon extrem seltsam, weil er im Beispiel vorher noch genau diese Datei "pc-agenda_daten.conf" ohne Murren angenommen hat. Und nun soll es auf einmal falsch sein?
Aber okay, vielleicht liegt es an den Job-Dateien, deswegen hier der Job selbst und der Job davor.
pc-agenda_daten.conf
Job {
Name = "pc-agenda Daten"
Enabled = yes
Client = pc-agenda-fd
FileSet = "pc-agenda Daten"
Schedule = "WindowsWorkstations"
Write Bootstrap = "/var/lib/bacula/%ws.bsr"
Type = Backup
Level = Full
Storage = File
Pool = File
Priority = 11
Messages = Standard
Run After Job = "/usr/local/sbin/bacula2nagios \"%n\" 0 \"%e %l %v\""
Run After Failed Job = "/usr/local/sbin/bacula2nagios \"%n\" 1 \"%e %l %v\""
}
FileSet {
Name = "pc-agenda Daten"
Enable VSS = yes
Include {
Options {
signature = MD5
}
File = "C:\AGENDA"
}
}
pc-agenda_full.conf
Job {
Name = "pc-agenda Full"
Enabled = yes
Client = pc-agenda-fd
FileSet = "pc-agenda Full"
Schedule = "WindowsWorkstations"
Write Bootstrap = "/var/lib/bacula/%ws.bsr"
Type = Backup
Level = Full
Storage = File
Pool = File
Priority = 11
Messages = Standard
Run After Job = "/usr/local/sbin/bacula2nagios \"%n\" 0 \"%e %l %v\""
Run After Failed Job = "/usr/local/sbin/bacula2nagios \"%n\" 1 \"%e %l %v\""
}
FileSet {
Name = "pc-agenda Full"
Enable VSS = yes
Include {
Options {
signature = MD5
}
File = "C:\"
}
}
Also ich suche jetzt schon ein paar Stunden und kann kein Fehler finden.
Das schönste ist, das er vor ner halben Stunde bei den gleichen Configs noch diesen Fehler ausgegeben hat:
Starting Bacula Director services: 27-Dez 03:12 bacula-dir: ERROR TERMINATION at inc_conf.c:410
Config error: Keyword Name not permitted in this resource
: line 2, col 7 of file /etc/bacula/conf.d/clients.conf
Name = pc-backup-fd
[FEHLGESCHLAGEN]
Aber auch in meiner clients.conf kann ich keinen Fehler entdecken
Client {
Name = pc-backup-fd
Address = 192.168.xx.xx
FDPort = 9102
Catalog = MyCatalog
Password = "yx"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Client {
Name = pc-agenda-fd
Address = 192.168.xx.xx
FDPort = 9102
Catalog = MyCatalog
Password = "yx"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Client {
Name = pc-xxx-fd
Address = 192.168.xx.xx
FDPort = 9102
Catalog = MyCatalog
Password = "yx"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Ich bin wirklich komplett am verzweifeln. Ich habe das Gefühl das die Fehler sich ständig ändern, obwohl ich nicht wirklich etwas an der Config ändere.
Kann mir bitte irgendwer helfen?