User Tools

Site Tools


Action disabled: register
bacula_manual:running_a_job

Configuration Files

Test LAB Image

bacula-dir.conf
Job {
        Client = A12
        Name = "BackupA12Root"
        Type = Backup
        FileSet = "BackupRoot"
        Storage = 192.168.1.150
        Pool = File
        Messages = Standard
        Write Bootstrap = "/usr/local/bacula/var/bacula/working/A12-BackupA12Root.bsr"
}

JobDefs {
        Name = "BackupRoot"
        Type = Backup
        Level = Full
        FileSet = "BackupRoot"
        Storage = 192.168.1.150
        Messages = Standard
        Pool = File
        Priority = 10
        Write Bootstrap = "/usr/local/bacula/var/bacula/working/%c.bsr"
}

Client {
        Name = A12
        Address = 192.168.1.12
        FDPort = 9102
        Catalog = MyCatalog
        Password = "123456"
        File Retention = 30 days
        Job Retention = 6 months
        AutoPrune = yes
}

FileSet {
        Name = "BackupRoot"
        Include {
                Options {
                        signature = SHA1
                }
                File = "/";
        }
}

Storage {
        Name = 192.168.1.150
        Address = 192.168.1.150
        SDPort = 9103
        Password = "yAkXWABYVzh0CSKaR7WBaQ+LU/SJLZ85qku+PzKlFrhT"
        Device = FileStorage
        Media Type = File
}

Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
  #Maximum Volume Bytes = G          # Limit Volume size to something reasonable
  #Maximum Volumes = 100               # Limit number of Volumes in Pool
}


Catalog {
  Name = MyCatalog
# Uncomment the following line if you want the dbi driver
 dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport = 3306 
  dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}

Console {
  Name = L99Server-mon
  Password = "qjGmmMJVBxak4hwqNX6UiSgbzuIu6srUOmh3kuxOQZju"
  CommandACL = status, .status
}
bacula-sd.conf
Director {
  Name = A150
  Password = "yAkXWABYVzh0CSKaR7WBaQ+LU/SJLZ85qku+PzKlFrhT"
}

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /sdb1/
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}
bacula-fd.conf
Director {
  Name = A150
  Password = "123456"
}

FileDaemon {                          # this is me
  Name = A12
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /usr/local/bacula-5.2.6/var/bacula/working
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}
Run Job
  • At A150, bacula start
  • At A12, bacula start
  • At A150
    • bconsole
    • run
    • yes
bacula_manual/running_a_job.txt · Last modified: 2012/09/18 10:09 by zzlyzq