CentOS 7
Sponsored Link

Bacula : Configure Bacula Server#22015/07/21

 
This example is based on the environment like follows.
+----------------------+          |          +----------------------+
| [   Bacula Server  ] |10.0.0.30 | 10.0.0.51| [   Bacula Client  ] |
|    Bacula Director   +----------+----------+    (Backup Target)   |
|    Bacula Storage    |                     |  Bacula File Daemon  |
|       Maria DB       |                     |                      |
+----------------------+                     +----------------------+

[1] Configure Bacula Director.
[root@dlp ~]#
vi /etc/bacula/bacula-dir.conf
Director {
  Name = bacula-dir
  DIRport = 9101
  QueryFile = "/etc/bacula/query.sql"
  WorkingDirectory = "/var/spool/bacula"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 1
 
# line 22: set Director daemon's password

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

      
Compression = GZIP

    }
  
# line 110: backup target directory on Client Host

   File =
/home

  }
Client {
  Name = bacula-fd
 
# line 158: Backup target Hostname or IP address

  Address =
node01.srv.world

  FDPort = 9102
  Catalog = MyCatalog
 
# line 161: specify File daemon's password

  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 =
dlp.srv.world

  SDPort = 9103
 
# line 189: specify Storage daemon's password

  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: MariaDB Bacula user's password

  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: comment out

#
Console {
#
Name = bacula-mon
#
Password = "@@MON_DIR_PASSWORD@@"
#
CommandACL = status, .status
#
}
[root@dlp ~]#
vi /etc/bacula/bconsole.conf
Director {
  Name = bacula-dir
  DIRport = 9101
 
# Director daemon's Hostname or IP address

  address =
dlp.srv.world

 
# specify Director daemon's password

  Password = "
password
"
}
[root@dlp ~]#
vi /usr/libexec/bacula/make_catalog_backup.pl
# line 109: add

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

[root@dlp ~]#
systemctl enable bacula-dir

[2] Configure Bacula Storage.
[root@dlp ~]#
vi /etc/bacula/bacula-sd.conf
Director {
  Name = bacula-dir
 
# line 26: set Storage daemon's password

  Password = "
password
"
}
# line 33-37: comment out

#
Director {
#
Name = bacula-mon
#
Password = "@@MON_SD_PASSWORD@@"
#
Monitor = yes
#
}
[root@dlp ~]#
systemctl start bacula-sd

[root@dlp ~]#
systemctl enable bacula-sd

Matched Content