Project

General

Profile

Actions

Bacula

Reference

Instructions

  • Install the database
    sudo apt-get install mysql-server
    • postfix: internet site
    • Set the root db password to: thirtysomethinglads
    • Because the database is not running yet, you will get an error if you try to install bacula first
  • Install bacula
     sudo apt-get install bacula

Config files

  • Edit /etc/bacula/bacula-sd.conf
    • Set this line in the Device entry
      Storage {                             # definition of myself
        Name = backup.dev.ru.is-sd
        SDPort = 9103                  # Director's port
        WorkingDirectory = "/var/lib/bacula" 
        Pid Directory = "/var/run/bacula" 
        Maximum Concurrent Jobs = 20
        SDAddress = 130.208.209.39
      }
      
  • Edit /etc/bacula/bacula-dir.conf
    • Set the Address line in the Storage
      Storage {
        Name = File
      # Do not use "localhost" here                                                             
        Address = backup.dev.ru.is                # N.B. Use a fully qualified name here        
        SDPort = 9103
        Password = "Igz3_-w2AWuatsrX6dwmLcvClzlBwsqd4" 
        Device = FileStorage
        Media Type = File
      }
      
    • Create a test fileset
      FileSet {
              Name = "LocalhostFiles" 
              Include {
              Options {
              signature = MD5
              compression = GZIP
      }
              File = /etc
              File = /home
      }
      }
      
    • Create a schedule for this job
      # LocalhostBackup Schedule -- Daily                                                       
      Schedule {
        Name = "LocalhostDaily" 
        Run = Full daily at 00:01
      }
      
    • Now create the job
      Job {
        Name = "BackupServer" 
        JobDefs = "DefaultJob" 
        Schedule = "LocalhostDaily" 
      }
      
  • Really, you should just go look at the files on stekkjarstaur (bacula-dir)

Errors and Issues

If you get permission denied when connecting to the storage server, you need to fix the SDAddress to be an IP address.
http://www.brandonking.net/blog/2006/08/31/bacula-failed-to-connect-to-storage-daemon/
This is true for both the sd and the fd

Updated by Joseph Foley over 9 years ago · 1 revisions