It is quite easier then updating the config files manually. Alternatively you can use webmin to make the work more simple. ![]() You can now add clients, jobs and volumes by updating the bacula config files. Next restart all bacula daemons and make them to start automatically on every reboot.īacula has been successfully installed and configured. Now we finished all passwords and address modifications. So let me create a directory called “mybackup”. #Delete (do not uncomment) these lines if you only using CUI mode in Backup server #Īs i mentioned in the above configuration, my archive device path is “/mybackup”. # List Directors who are permitted to contact this File daemon Update the password and delete the lines shown in red colour. LabelMedia = yes # lets Bacula label unlabeled mediaĪutomaticMount = yes # when device opened, read it # Restricted Director, used by tray-monitor to get the As i installed centos minimal server, i don't have a GUI mode, so that i deleted the following section# #Delete the following lines (Do not uncomment). Update the password, Find the red lines and delete them, do not uncomment them. Vi /usr/libexec/bacula/make_catalog_Įxec("HOME='$wd' mysqldump -f -u$args(db_user) -p$args(db_password) -opt $args.sql'") Īddress = localhost or ip address of the server #comment this all lines if there is any problems appear # dbdriver = "dbi:sqlite3" dbaddress = 127.0.0.1 dbport =ĭbname = "bacula" dbuser = "bacula" dbpassword = "centos" # Uncomment the following line if you want the dbi driver Use a fully qualified name here(server ip) Password = "centos" # password for FileDaemonĪutoPrune = yes # Prune expired Jobs/FilesĪddress = 192.168.100.207 # N.B. įile = "c:/Backup" not "c:\Backup" or client is linux File = /BackupĪddress = 192.168.100.206 #client’s ip address # Only one such job is needed for all Jobs/Clients/Storage. # Standard Restore template, to be changed by Console program QueryFile = "/usr/libexec/bacula/query.sql" Be mindful that you should use a fully qualified domain name for adding clients or simply use the IP address instead.ĭIRport = 9101 # where we listen for UA connections Update Bacula server hostname, bacula mysql user password, Bacula console password, Bacula file daemon password etc. Now update all Bacula configuration files with new password and addresses as shown below. Mysql> UPDATE er SET password=PASSWORD("centos") WHERE user='bacula' To do that, log in to your MySQL server with command: # /usr/libexec/bacula/grant_bacula_privileges -u root -p ![]() # /usr/libexec/bacula/make_mysql_tables -u root -p # /usr/libexec/bacula/create_mysql_database -u root -p # /usr/libexec/bacula/grant_mysql_privileges -u root -p Here “-u root”means that login with root account and “-p” means prompt for mysql root password i.e “centos” in my case. Next run the following commands one by one to create database and necessary tables for Bacula. Systems -> Administration -> Firewall and disable Note: In this tutorial, i am using password as “centos” wherever i need to setup password. Start MySQL service and create root password for mysql. # yum install bacula-director-mysql bacula-console bacula-client bacula-storage-mysql mysql-server mysql-devel –y This how-to was tested on CentOS 6.5, although it should work with RHEL, Scientific Linux 6.x versions too.įirst let us install Bacual and mysql server using command: My Backup server hostname and IP Address are “” and “192.168.100.207/24″ respectively. Access your server on port 10000 using FQDN or IP, and login with username root and system root password.In this how-to i am using MySQL for database, you can use either PostgreSQL or MySQL. Before installing webmin import the PGP key. Also download GPG key for webminĪfter downloading webmin rpm, use following command to install or update it. Webmin provide noarch file, so i can be easily installed on any architecture system. ![]() Download it from there or use below command to download. Webmin rpms are available on its official site. This article will help you to install and configure Webmin on CentOS, RHEL and Fedora systems. All recent versions of webmin are under a Its provides options to setup user accounts, Apache, DNS, file Webmin is a web-based interface for managing Unix like
0 Comments
Leave a Reply. |