I used to run Bacula on a Fedora 3 system and recently migrated to
RedHat EL4. Bacula installed from source with no problems. I have
mtx-changer installed from source also. All this running on a Postgres
dbase. I did have to create a script using MAKEDEV sg0 to get /dev/sg0
to show up in the dev directory. My problem now is that when I try to
label my tapes I get the following message:Connecting to Storage daemon DDS-4 at aspen:9103 ... I have attached my bacula-dir.conf and bacula-sd.conf files. --
Jason Baker
|
# For Bacula release 1.38.8 (14 April 2006) -- redhat Enterprise release # Storage { Name = aspen-sd SDPort = 9103 WorkingDirectory = "/var/bacula/working" Pid Directory = "/var/run" Maximum Concurrent Jobs = 20 } # # List Directors who are permitted to contact Storage daemon # Director { Name = aspen-dir Password = "safecopy" }
# # Restricted Director, used by tray-monitor to get the # status of the storage daemon # Director { Name = aspen-mon Password = "safecopy" Monitor = yes } # # Devices supported by this Storage daemon # To connect, the Director's bacula-dir.conf must have the # same Name and MediaType. # Device { Name = FileStorage Media Type = File Archive Device = /backups LabelMedia = yes; Random Access = Yes; AutomaticMount = yes; RemovableMedia = no; AlwaysOpen = no; } # # An autochanger device with two drives # #Autochanger { # Name = Autochanger # Device = Drive-1 # Device = Drive-2 # Changer Command = "/home/kern/bacula/bin/mtx-changer %c %o %S %a %d" # Changer Device = /dev/sg0 #} #Device { # Name = Drive-1 # # Drive Index = 0 # Media Type = DLT-8000 # Archive Device = /dev/nst0 # 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'" #} #Device { # Name = Drive-2 # # Drive Index = 1 # Media Type = DLT-8000 # 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'" #} # # A Linux or Solaris tape drive # Device { Name = DDS-4 # Media Type = DDS-4 Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; Autoselect = yes RemovableMedia = yes; RandomAccess = no; Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg0 AutoChanger = yes # Enable the Alert command only if you have the mtx package loaded Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" } # # A FreeBSD tape drive # #Device { # Name = DDS-4 # Description = "DDS-4 for FreeBSD" # Media Type = DDS-4 # Archive Device = /dev/nsa1 # AutomaticMount = yes; # when device opened, read it # AlwaysOpen = yes # Offline On Unmount = no # Hardware End of Medium = no # BSF at EOM = yes # Backward Space Record = no # Fast Forward Space File = no # TWO EOF = yes #} # # A OnStream tape drive. # You need the kernel osst driver 0.9.14 or later, and # do "mt -f /dev/nosst0 defblksize 32768" once as root. # #Device { # Name = OnStream # Description = "OnStream drive on Linux" # Media Type = OnStream # Archive Device = /dev/nst0 # AutomaticMount = yes; # when device opened, read it # AlwaysOpen = yes # Offline On Unmount = no ## The min/max blocksizes of 32768 are *required* # Minimum Block Size = 32768 # Maximum Block Size = 32768 #} # # A DVD device # Device { Name = "DVD-Writer" Media Type = DVD Archive Device = /dev/hdc LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = yes; AlwaysOpen = no; MaximumPartSize = 800M; RequiresMount = yes; MountPoint = /mnt/cdrom; MountCommand = "/bin/mount -t iso9660 -o ro %a %m"; UnmountCommand = "/bin/umount %m"; SpoolDirectory = /tmp/backup; WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v" FreeSpaceCommand = "/etc/bacula/dvd-handler %a free" } # # For OpenBSD OS >= 3.6 # #Device { # Name = DDS-3 # Media Type = DDS-3 # Archive Device = /dev/nrst0 # Use MTIOCGET= no # BSF at EOM = yes # TWO EOF = no # AutomaticMount = yes; # AlwaysOpen = yes; # RemovableMedia = yes; # RandomAccess = no; #} # # A very old Exabyte with no end of media detection # #Device { # Name = "Exabyte 8mm" # Media Type = "8mm" # Archive Device = /dev/nst0 # Hardware end of medium = No; # AutomaticMount = yes; # when device opened, read it # AlwaysOpen = Yes; # RemovableMedia = yes; # RandomAccess = no; #} # # Send all messages to the Director, # mount messages also are sent to the email address # Messages { Name = Standard director = aspen-dir = all }
# For Bacula release 1.38.8 (14 April 2006) -- redhat Enterprise release Director { Name = aspen-dir DIRport = 9101 QueryFile = "/etc/bacula/query.sql" WorkingDirectory = "/var/bacula/working" PidDirectory = "/var/run" Maximum Concurrent Jobs = 1 Password = "safecopy" Messages = Daemon } JobDefs { Name = "DefaultJob" Type = Backup Level = Incremental Client = aspen-fd FileSet = "Full Set" Schedule = "WeeklyCycle" Storage = DDS-4 Messages = Standard Pool = Default Priority = 10 } # Define the main nightly backups Job { Name = "Aspen" JobDefs = "DefaultJob" Write Bootstrap = "/var/bacula/working/Client1.bsr" } Job { Name = "Brazenberry" Client = brazenberry-fd JobDefs = "DefaultJob" Write Bootstrap = "/var/bacula/working/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/working/BackupCatalog.bsr" Priority = 11 # run after main backup } # Standard Restore template, to be changed by Console program Job { Name = "RestoreFiles" Type = Restore Client=aspen-fd FileSet="Full Set" Storage = File Pool = Default Messages = Standard Where = /backups/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 = /home File = /var/spool/mail File = /mnt/shares/bluejava/projects/classes File = /mnt/shares/bluejava/projects/history File = /mnt/shares/bluejava/projects/javabase File = /mnt/shares/bluejava/projects/javadict File = /mnt/shares/bluejava/projects/Reports File = /mnt/shares/bluejava/projects/tools File = /mnt/shares/bluejava/projects/run.bat File = /mnt/shares/gatekeeper File = /mnt/shares/laser/MAZAK File = /mnt/shares/laser/PRODUCTION File = /mnt/shares/salvagnini/syscon/data File = /mnt/shares/salvagnini/syscon/S4_529 File = /mnt/shares/salvagnini/syscon/TB_359 File = /mnt/shares/salvagnini/syscon/S4_729 File = /mnt/shares/radan/d File = /mnt/shares/radan/e/MAZAK_NESTS File = /mnt/shares/radan/e/MAZAK_PARTS File = /mnt/shares/radan/e/PART_PRINTS File = /mnt/shares/radan/e/Radan File = /mnt/shares/radan/e/RADAN_PARTS File = /mnt/shares/adp/Reports File = "/mnt/shares/adp/401k Reports" File = /mnt/shares/adp/commlink File = /mnt/shares/adp/SQLBASE/PAY4WIN File = /mnt/shares/adp/ETIME/DATA File = /mnt/shares/adp/ETIME/kactiv.kc8 File = /mnt/shares/adp/ETIME/kfile.kcs File = /mnt/shares/adp/Garnishment } # Exclude { File = /proc File = /tmp File = /.journal File = /.fsck File = /mnt/shares/radan/d/avgupdate File = /mnt/shares/radan/d/MSSQL7 File = "/mnt/shares/radan/d/Program Files" File = /mnt/shares/radan/d/ProjectCentral File = /mnt/shares/radan/d/Rwc80 } } # # 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 fri at 17:05 Run = Incremental sat-thu at 17:05 } # 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/working/bacula.sql } } # Local Client Client { Name = aspen-fd Address = aspen FDPort = 9102 Catalog = MyCatalog Password = "safecopy" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } # Brazenberry Client Client { Name = brazenberry-fd Address = brazenberry FDPort = 9102 Catalog = MyCatalog Password = "safecopy" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } # Definition of file storage device Storage { Name = File Address = aspen SDPort = 9103 Password = "safecopy" Device = FileStorage Media Type = File } # Definition of DDS tape storage device Storage { Name = DDS-4 Address = aspen SDPort = 9103 Password = "safecopy" 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 = aspen # N.B. Use a fully qualified name here # SDPort = 9103 # Password = "xJBDeyOmG5fpysg5QcdUu/QrFGNv/bCETWsre6GNeTAu" # Device = "Exabyte 8mm" # MediaType = "8mm" #} # Definition of DVD storage device Storage { Name = "DVD" Address = aspen SDPort = 9103 Password = "safecopy" Device = "DVD-Writer" MediaType = "DVD" } # Generic catalog service Catalog { Name = MyCatalog dbname = bacula; user = postgres; password = "postgres" } # 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 = "/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/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/working/log" = all, !skipped } # Message delivery for daemon messages (no job). Messages { Name = Daemon mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r" mail = [EMAIL PROTECTED] = all, !skipped console = all, !skipped, !saved append = "/var/bacula/working/log" = all, !skipped } # Default pool definition Pool { Name = Default Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 365 days Accept Any Volume = yes } # Restricted console used by tray-monitor to get the status of the director Console { Name = aspen-mon Password = "safecopy" CommandACL = status, .status }