Bacula : Configure Componets2020/02/17 |
Configure Bacula Componets.
|
|
[1] | Configure Bacula Director. |
[root@dlp ~]#
vi /etc/bacula/bacula-dir.conf Director { # define myself Name = bacula-dir DIRport = 9101 # where we listen for UA connections QueryFile = "/etc/bacula/query.sql" WorkingDirectory = "/var/spool/bacula" PidDirectory = "/var/run" Maximum Concurrent Jobs = 20 # line 25: set password for Director daemon Password = "password" # Console password Messages = Daemon } ..... ..... FileSet { Name = "Full Set" Include { Options { signature = MD5 # line 110: add (enable GZIP compress) Compression = GZIP } ..... ..... # line 126: specify backup target directory File = /home } ..... ..... Client { Name = bacula-fd Address = localhost FDPort = 9102 Catalog = MyCatalog # line 178: password for File daemon Password = "password" # password for FileDaemon File Retention = 60 days # 60 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } ..... ..... Autochanger { Name = File1 # Do not use "localhost" here # line 204: change to FQDN of your host according to the note Address = dlp.srv.world # N.B. Use a fully qualified name here SDPort = 9103 # line 206: password for Storage daemon Password = "password" Device = FileChgr1 Media Type = File1 Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time Autochanger = File1 # point to ourself } ..... ..... Catalog { Name = MyCatalog # line 243: password of MariaDB bacula user dbname = "bacula"; dbuser = "bacula"; dbpassword = "password" } ..... ..... Pool { Name = File Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes # line 304: volume retenstion term Volume Retention = 365 days # one year # max volume size Maximum Volume Bytes = 50G # Limit Volume size to something reasonable # max volume number Maximum Volumes = 100 # Limit number of Volumes in Pool # prefix for volume files Label Format = "Vol-" # Auto label } ..... ..... # line 320: comment out now #Console { # Name = bacula-mon # Password = "@@MON_DIR_PASSWORD@@" # CommandACL = status, .status #}
[root@dlp ~]#
vi /etc/bacula/bconsole.conf Director { Name = bacula-dir DIRport = 9101 address = localhost # password for Director Password = "password" } ~[root@dlp ~]# systemctl enable --now bacula-dir |
[2] | Configure Bacula Storage. |
[root@dlp ~]#
vi /etc/bacula/bacula-sd.conf Director { Name = bacula-dir # line 31: set password for Storage daemon Password = "password" } ..... ..... # line 38: comment out now #Director { # Name = bacula-mon # Password = "@@MON_SD_PASSWORD@@" # Monitor = yes #}[root@dlp ~]# systemctl enable --now bacula-sd |
[3] | Configure Bacula File. |
[root@dlp ~]#
vi /etc/bacula/bacula-fd.conf Director { Name = bacula-dir # line 19: set password for File daemon Password = "password" } ..... ..... # line 26: comment out now #Director { # Name = bacula-mon # Password = "@@MON_FD_PASSWORD@@" # Monitor = yes #}[root@dlp ~]# systemctl enable --now bacula-fd |
Sponsored Link |