CentOS 6
Sponsored Link

Bacula - Configure Bacula Server#22011/07/18

 
This example shows to configure on the environment like follows.
(1)  director.srv.world  [10.0.0.60]   Bacula Management Server  -  Director, Storage, Database Daemon
(2)  file01.srv.world     [10.0.0.61]   Bacula Client  -  File Daemon  ( Backup Target )
[1] Configure Bacula Director
[root@director ~]#
vi /etc/bacula/bacula-dir.conf
Director {
  Name = bacula-dir
  DIRport = 9101
  QueryFile = "/usr/libexec/bacula/query.sql"
  WorkingDirectory = "/var/spool/bacula"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 1
 
# line 22: set password to connect to Director Daemon

  Password = "
password
"
  Messages = Daemon
}
FileSet {
  Name = "Full Set"
  Include {
   Options {
      signature = MD5
     
# line 94: compress

     
Compression = GZIP

   }
  
# line 110: backup target on Client

   File =
/home

  }
Client {
  Name = bacula-fd
 
# line 158: Client's (backup target) hostname or IP address

  Address =
file01.srv.world

  FDPort = 9102
  Catalog = MyCatalog
 
# line 161: specify password to connect to File Daemon

  Password = "
password
"
  File Retention = 30 days
  Job Retention = 6 months
  AutoPrune = yes
}
Storage {
  Name = File
 
# line 187: Storage Daemon's hostname or IP address

  Address =
director.srv.world

  SDPort = 9103
 
# line 189: specify password to connect to Storage Daemon

  Password = "
password
"
  Device = FileStorage
  Media Type = File
}
Catalog {
  Name = MyCatalog
  # Uncomment the following line if you want the dbi driver
  # dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
 
# line 236: specify password for Bacula on MySQL

  dbname = "bacula"; dbuser = "bacula"; dbpassword = "
password
"
}
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
 
# line 286: terms of keeping volumes

  Volume Retention =
180
days
 
# line 287: set 1 volume for 1 job

 
Maximum Volume Jobs = 1

 
# line 288: the header for volumes if no volumes to use and make new volume automatically

 
Label Format = Vol-

}
# line 312-316: make them comments

#
Console {
#
Name = bacula-mon
#
Password = "@@MON_DIR_PASSWORD@@"
#
CommandACL = status, .status
#
}
[root@director ~]#
vi /usr/libexec/bacula/make_catalog_backup.pl
# line 108: add ( because "MyCatalog" does not work )

exec("HOME='$wd' mysqldump -f
-u$args{db_user} -p$args{db_password}
--opt $args{db_name} > '$wd/$args{db_name}.sql'");
[root@director ~]#
/etc/rc.d/init.d/bacula-dir start

Starting bacula-dir: [ OK ]
[root@director ~]#
chkconfig bacula-dir on
[2] Configure Bacula Storage
[root@director ~]#
vi /etc/bacula/bacula-sd.conf
Director {
  Name = bacula-dir
 
# line 26: set password to connect to Storage Daemon

  Password = "
password
"
}
# line 33-37: make them comments

#
Director {
#
Name = bacula-mon
#
Password = "@@MON_SD_PASSWORD@@"
#
Monitor = yes
#
}
[root@director ~]#
/etc/rc.d/init.d/bacula-sd start

Starting bacula-sd: [ OK ]
[root@director ~]#
chkconfig bacula-sd on
[3] Configure Bacula bconsole
[root@director ~]#
vi /etc/bacula/bconsole.conf
Director {
  Name = bacula-dir
  DIRport = 9101
 
# Director Daemon's hostname or IP address

  address =
director.srv.world

 
# specify password to connect to Director Daemon

  Password = "
password
"
}
Matched Content