Sure, here is my bacula-sd.conf and bacula-dir.conf. passwords and addresses edited for security reasons.
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 3.0.1 (30 April 2009) -- debian 5.0.1
#
# You may need to change the name of your tape drive
# on the "Archive Device" directive in the Device
# resource. If you change the Name and/or the
# "Media Type" in the Device resource, please ensure
# that dird.conf has corresponding changes.
#
Storage { # definition of myself
Name = backup02-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/etc/bacula/working"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
}
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = backup02-dir
Password = “PASSWORD"
}
## Restricted Director, used by tray-monitor to get the
# status of the storage daemon
##
Director {
Name = backup02-mon
Password = “PASSWORD"
Monitor = yes
}
Autochanger {
Name = Autochanger
Device = Drive-1, Drive-2, Drive-3, Drive-4, Drive-5, Drive-6, Drive-7, Drive-8, Drive-9, Drive-10
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg12
}
Device {
Name = Drive-1
Drive Index = 0
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-01-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-2
Drive Index = 1
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-02-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-3
Drive Index = 2
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-03-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-4
Drive Index = 3
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-04-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-5
Drive Index = 4
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-05-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-6
Drive Index = 5
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-06-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-7
Drive Index = 6
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-07-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-8
Drive Index = 7
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-08-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-9
Drive Index = 8
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-09-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
Device {
Name = Drive-10
Drive Index = 9
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-:3260-iscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-10-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = 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'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 20
Maximum Changer Wait = 10 minutes
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = backup02-dir = all, !skipped, !restored
}
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 3.0.1 (30 April 2009) -- debian 5.0.1
#
# 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.
#
###
### Source other config files
###
@/etc/bacula/clients.conf
@/etc/bacula/jobs.conf
###
### Basic director configuration
###
Director { # define myself
Name = backup02-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/etc/bacula/working"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
Password = “PASSWORD" # Console password
Messages = Daemon
DIRAddress = localhost
}
###
### Storage
###
# Storage device for tape
Storage {
Name = Tape1
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-1
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape2
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-2 # must be same Device in sd
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape3
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-3
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape4
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-4
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape5
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-5
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape6
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-6
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape7
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-7
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape8
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-8
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape9
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-9
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
Storage {
Name = Tape10
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-10
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
#Storage {
###
###
### Storage pools
###
# Default storage pool
Pool {
Name = Default
Pool Type = Backup
Storage = Tape7, Tape8, Tape9, Tape10
Recycle = no # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 2500G
}
###
# social service storage pool
Pool {
Name = svc
Pool Type = Backup
Storage = Tape1, Tape2
Recycle = no # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 2500G
}
# database service storage pool
Pool {
Name = database
Pool Type = Backup
Storage = Tape3, Tape4, Tape5, Tape6
Recycle = no # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 2500G
}
###
### Backup catalog
###
# Generic catalog service
Catalog {
Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport =
dbname = "bacula"; dbuser = “USER"; dbpassword = “HAHAHA"
}
###
### Logging
###
# 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.
# What this does is, it sets the email address that emails would display
# in the FROM field, which is by default the same email as they're being
# sent to. However, if you send email to more than one address, then
# you'll have to set the FROM address manually, to a single address.
# for example, a 'no-reply AT mydomain DOT com', is better since that tends to
# tell (most) people that its coming from an automated source.
#
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 on error = EMAILADDRESS = all, !skipped
operator = EMAILADDRESS= 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 = "/etc/bacula/working/log" = all, !skipped
catalog = all, !skipped, !saved
}
#
# 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 = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/etc/bacula/working/log" = all, !skipped
}
###
### Console
###
# Restricted console used by tray-monitor to get the status of the director
Console {
Name = backup02-mon
Password = “PASSWORD"
CommandACL = status, .status
}