You need to add a storage resource to bacula-dir.conf.
This is the abstraction for a device controlled by a Storage Daemon.
You probably want something like
Storage {
Name = <name, this is what you put in the Job / JobDefs>
Address = <IP Address or Name of system running bacula-sd>
SDPort = 9103 <Must match the Storage resource in bacula-sd.conf>
Password = <password matching the one in the Director resource in
bacula-sd.conf>
Device = Drive-0
Media Type = LTO-2
}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Boris
Sent: Monday, April 17, 2006 9:07 AM
To: [email protected]
Subject: [Bacula-users] Newbie Configuration Question
I am new to bacula and I am trying to configure my setup. I am running
Fedora Core 3 and using a Dell 124T. From what I can see the Dell 124T has
passed all of the tests. So now I am trying to edit the configuration files.
In the bacula-sd.conf I have this defined:
Autochanger {
Name = Autochanger
Device = Drive-0
# Device = Drive-2
Changer Command = "/root/bacula/bin/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg2
}
Device {
Name = Drive-0 #
Drive Index = 0
Media Type = LTO-2
Archive Device = /dev/nst1
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}
In the bacula-dir.conf I have this defined:
JobDefs {
Name = "MainJob"
Type = Backup
Level = Incremental
Client = jerome-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = Drive-0
Messages = Standard
Pool = Default
Priority = 10
}
Job {
Name = "Client2"
Client = jerome-fd
JobDefs = "MainJob"
Write Bootstrap = "/root/bacula/bin/working/Client2.bsr"
}
Job {
Name = "BackupCatalog"
JobDefs = "MainJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
RunBeforeJob = "/root/bacula/bin/make_catalog_backup bacula bacula"
# This deletes the copy of the catalog
RunAfterJob = "/root/bacula/bin/delete_catalog_backup"
Write Bootstrap = "/root/bacula/bin/working/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /
}
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
Client {
Name = jerome-fd
Address = jerome
FDPort = 9102
Catalog = MyCatalog
Password = "f0/iy0aB0V0gK9YxE2M3BPzEp1IkW9sbcysZ69mSSC1f" #
password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
And in jerome-fd.conf I have this defined:
FileDaemon { # this is me
Name = jerome-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /root/bacula/bin/working
Pid Directory = /root/bacula/bin/working
Maximum Concurrent Jobs = 20
}
When I try and start bacula I get this error:
./bacula start
Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
17-Apr 12:06 bacula-dir: ERROR TERMINATION at parse_conf.c:508 Config error:
Could not find config Resource "storage" referenced on
line 32 : Storage = Drive-0
: line 32, col 19 of file /root/bacula/bin/bacula-dir.conf
Storage = Drive-0
Looking at that it says that the Storgae = Drive-0 is wrong. Should this be
set to Device = Autochanger? Looking at the configuration it looks like you
can have multiple Device {} sections but the names must be different?
Any help would be appreciated. If this is explained in the manual than
pointing to that section is fine.
Thanks in Advance.
John J. Boris, Sr.
JEN-A-SyS Administrator
Archdiocese of Philadelphia
"Remember! That light at the end of the tunnel Just might be the headlight
of an oncoming train!"
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users