Professional Documents
Culture Documents
How To Configure Bacula Server Update
How To Configure Bacula Server Update
Director Port: File daemon Port: Storage daemon Port: Director User: Director
Group: Storage Daemon User: Storage DaemonGroup: File Daemon User: File Daemon
Group: SQL binaries Directory
/usr/bin
Large file support: yes Bacula conio support: no readline support: no TCP Wrappers
support: no TLS support: yes Encryption support: yes ZLIB support: yes enable-
smartalloc: yes enable-lockmgr: no bat support: no enable-gnome: no enable-bwx-
console: no enable-tray-monitor: no client-only: no build-dird: yes build-stored:
yes Plugin support: yes AFS support: no ACL support: no XATTR support: yes Python
support: no Batch insert enabled: yes ---------------------------------
# make # make install Step-6): Check mysql service status and start:
---------------------------------------------# service mysqld start OUTPUT:
---------------------[root@backups bacula-5.0.3]# service mysqld start Initializing
MySQL database: Installing MySQL system tables... OK Filling help tables... OK To
start mysqld at boot time you have to copy support-files/mysql.server to the right
place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands: /usr/bin/mysqladmin
-u root password 'new-password' /usr/bin/mysqladmin -u root -h backups.abc.net.pk
password 'new-password' Alternatively you can run:
/usr/bin/mysql_secure_installation which will also give you the option of removing
the test databases and anonymous user created by default. This is strongly
recommended for production servers. See the manual for more instructions. You can
start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the
MySQL daemon with mysql-test-run.pl cd mysql-test ; perl mysql-test-run.pl Please
report any problems with the /usr/bin/mysqlbug script! The latest information about
MySQL is available on the web at http://www.mysql.com Support MySQL by buying
support/licenses at http://shop.mysql.com [ OK ] Starting MySQL: [ OK ]
------------------------------------# chkconfig --level 235 mysqld on Step-7):
Create bacula database and tables: ------------------------------------------#
cd /etc/bacula # ./create_mysql_database if it gives error for root password using
NO. Then proceed with ./create_mysql_database -u root -p and now it will prompt you
for password.
# ./make_bacula_tables # ./grant_bacula_privileges step-8): Start bacula service:
-----------------------------# # # # /etc/bacula/bacula start /etc/bacula/bacula-
ctl-fd start /etc/bacula/bacula-ctl-sd start /etc/bacula/bacula-ctl-dir start
Note: following sets are required per client in bacula-dir.conf: 1-job 2-Fileset 3-
Client For example: we have client with name smtp.abc.net.pk [1]# vi
/etc/bacula/bacula-dir.conf ====================================
=============================================================================
----------- Athorization Setting b/w Bacula Server and client ---------------
============================================================================= Step-
1): Now access client Machine # vi /etc/bacula/bacula-fd.conf Rename Name =
smtp.abc.net.pk-dir to Name = backups-dir(this name is belong to b acula director)
and copy Password field value of client director to the server (director) bacula-
dir.conf Client portion . client machine 1st director zone:
--------------------------------Director { Name = backups-dir Password =
"eCFpyM3DJSVVtPWeObGJmgsrXeomEoFAGraAQSpo6gJ5" <---} Server machine Client protion
in bacula-fd.conf: -----------------------------------------------ld same at server
and client Client { Name = smtp-fd Address = smtp.abc.net.pk FDPort = 9102 Catalog
= MyCatalog Password = "eCFpyM3DJSVVtPWeObGJmgsrXeomEoFAGraAQSpo6gJ5" <---File
Retention = 30d # 30 days Job Retention = 180d # six months AutoPrune = yes # Prune
expired Jobs/Files } Step-2): Start the service of bacual at Client:
----------------------------------------------# /etc/bacula/bacula-fd.conf restart
------------------------------------------------------------------------- The En d
-------------------------------------
password shou