Bacula Installation Step By Step

On
Bacula Installation Step By Step Rating: 4,9/5 5468 votes

How to install and configure Bacula. We will show you how to install and. Replace the existing password with the one you generated in the previous step. How To Install Bacula Server on. If you are using DigitalOcean. The last step in the installation is to update the permissions of a script that Bacula uses.

  1. Diy Shower Installation Step By Step
  2. Windows Server 2016 Installation Step By Step

Kind of overkill to have Bacula installed at my home but if you’ve read some of the other things I’ve got going on (which I will post when I get a chance), you will see that everything I do is a little overkill. I’m using it to backup my home automation server, iTunes server and a couple of laptops and desktops I have around the house as well as my LAMP server which is running a couple of websites.

I started by creating a new Virtual Machine on my ESXi server and installed as I usually do. I install the basic server and set the network to use a static IP and enable it so it’s active on boot. This makes it easy for me to find the server after the installation is complete so I can SSH into it and copy and paste easily. I use but you can use whatever you like. Getting Started The first thing to do after the installation is complete is update the CentOS using: yum update This goes through the update which takes a couple of minutes depending on how fast the network is.

You may be prompted to enter a “Y” at various stages of this process. Installing Nano Text Editor The next thing to do is install nano text editor so I can easily edit files. I find it much easier to use than vi so I prefer using nano. To install this, I use: yum -y install nano Installing wget Install wget because you will need it later in the installation process. Yum -y install wget Installing Webmin on CentOS 7 After nano is installed, you need to create a new file called webmin.repo and save it in /etc/yum.repos.d/.

To do this, you can type: nano /etc/yum.repos.d/webmin.repo This opens a blank file where you can type in (or copy and paste): Webmin name=Webmin Distribution Neutral #baseurl=mirrorlist=enabled=1 Once it’s pasted (by right clicking), hit Control+X and then Y then Enter to save the file. Now, install Webmin GPG key using this command: rpm -import Now lets check for any updates by typing: yum check-update Now it’s time to install Webmin and we do that by typing in: yum -y install webmin After a short period of time, Webmin will be installed and it’s time to set it to start automatically by typing the following lines: chkconfig webmin on service webmin start Webmin is now installed and running but we need to allow port 10000 through the firewall so we can access it from another computer. In order to do this, type the following command: firewall-cmd -add-port=10000/tcp If you want to make this rule permanent, you can also type in this which will add it to the rules: firewall-cmd -permanent -add-port=10000/tcp If you plan on running Webmin on a different port, you can skip adding 10000 as a permanent rule and set it later with the port of your choice. Now you should be able to access Webmin using the IP address you used to set up the server when you installed it by going to the browser and typing: (where 192.168.1.2 is the IP of your server) Installing Bacula 7 on CentOS 7 Now that I have Webmin installed and running, it’s time to install Bacula. The first thing that you need to do is install epel. To do this, go find the latest release for CentOS 7 and right click on it to copy the link: Once you have the link copied, type in wget and paste the link it should look like wget ftp://195.220.108.108/linux/centos/7.0.1406/extras/x8664/Packages/epel-release-7-5.noarch.rpm This will download the RPM and now you will need to install it by typing in the following: yum -y install epel-release-7-5.noarch.rpm NOTE: the latest version may be different than shown above so be sure to change it if that is the case. After the installation of the EPEL, Go ahead and do another update by typing in: yum update Now we need to create a file in the /etc/yum.repos.d/ directory like we did with Webmin above.

Diy Shower Installation Step By Step

To to that, we will use nano again and type in the following: nano /etc/yum.repos.d/epel-bacula7.repo Now you will need to copy and paste the following into the file we just created: epel-bacula7 name=Bacula backports from rawhide baseurl=enabled=1 skipifunavailable=1 gpgkey=gpgcheck=1 epel-bacula7-source name=Bacula backports from rawhide - Source baseurl=enabled=0 skipifunavailable=1 gpgkey=gpgcheck=1 Now hit Control + X to exit and hit Y and then Enter to save the new file. Once you have saved the file, verify that Bacula 7 shows up on the list by typing the following and hitting enter: yum list bacula. If you don’t see Bacula 7, verify that you did the steps above correctly. Now we are ready to Install MariaDB and Bacula Next you will install MariaDB and all of the Bacula files. To do that, type in the following: yum -y install mariadb mariadb-server bacula-director-mysql bacula-console yum -y install bacula-client bacula-storage-mysql mysql-server mysql-devel Once everything installs (takes about a minute or two), you will need to start the MariaDB database server by typing in: systemctl start mariadb.service chkconfig mariadb on Next you need to run through the secure installation process for MariaDB which will allow you to set the root password, remove test users etc. The prompts are easy to follow and everything should be Yes. Mysqlsecureinstallation The default root password is blank to just hit enter and set a new root password.

This isn’t the password you will use for Bacula, it’s the root mysql password. After you have completed this step, you will want to go to Webmin which you installed earlier so you can set up the database and a Bacula user for the database. If you look under Servers, you will probably not see MySql Database Server because you just installed it. You will need to go to Refresh Modules at the bottom of the menu and click it. Now you should see MySql Database Server in the list. Click it and you will be asked to enter the username and password for the database.

This will be root and the password you just entered when setting up the database. Now you will need to add a bacula database so click Create a New Database. Type in bacula as your database name for your bacula database and leave the rest of the fields default. Note, the name must be bacula!

Now you will need to create a bacula user for your database. To do this, go to User Permissions and Add User to add the user. Be sure to set the Hosts to localhost and don’t worry about setting permissions. Click Create.

Now you will click on Database Permissions and add all permissions except Grant for the user you created to the bacula database. Once again, be sure to have the hosts set as localhost. Now that your database is created and the user is setup, you will need to create the tables. You can do this by going back to your SSH terminal and typing (note: add the username you created): /usr/libexec/bacula/makemysqltables -u usernameyoucreated -p Enter the password you used for the user. Now we need to tell Bacula to use Mysql as the libary. To do this, lets first stop the services by typing in: systemctl stop bacula-dir systemctl stop bacula-fd systemctl stop bacula-sd Now lets set Bacula to use the Mysql library: su -c 'alternatives -config libbaccats.so' This should show you the following: There are 3 programs which provide ‘libbaccats.so’. Selection Command ———————————————– 1 /usr/lib64/libbaccats-mysql.so 2 /usr/lib64/libbaccats-sqlite3.so.+ 3 /usr/lib64/libbaccats-postgresql.so Hit 1 and press enter to select MySql.

Windows Server 2016 Installation Step By Step

Now lets start the services back by using the following commands: systemctl start bacula-dir systemctl start bacula-fd systemctl start bacula-sd Now you should be able to go to Webmin and look under System and you will need to click on Bacula Backup System. Don’t worry if it gives you an error. This is because you haven’t set up the config yet. You will need click on Module Configuration and set it up to use MySql and enter the login information you created previously for your Bacula user.

Click Save and you should be able to access the Bacula page where you can set up your Bacula System. Getting Everything Working Now that you have that part working, you still can not start any of the daemons yet since they are not set up. You will have to go into each file and modify them so that they will communicate with each other. If you try to start Bacula, you may receive the following message: The Bacula console command /sbin/bconsole could not communicate with the Bacula director. Make sure the password in /etc/bacula/bconsole.conf is correct.

Christine lakin

You can either use the File Manager within Webmin or connect to your server using sftp and look in the /etc/bacula directory and you will find the following files you need to edit. I just drag them back to my desktop and edit them in a text editor. Bacula-dir.conf bacula-fd.conf bacula-sd.conf bconsole.conf There are a lot of passwords and IP addresses that need to be changed in there files so pay attention to and @@PASSWORD@@ areas and change them accordingly. Be sure to catch the bottom of the bacula-dir.conf file and change the catalog database password to the one you assigned when you created the database user. Also, look for localhost and change this to your local IP address on your backup server. You don’t need to do this on the clients since you will be setting those up later on. In fact, you can delete most of the test clients that are in the default if you wish.

I will post a guide on setting up all the configuration files later on. Firewall Ports In order to allow clients and consoles to talk to your Bacula server, you need to open ports 9101, 9102 and 9103.

The following command in your SSH console with open these ports. Firewall-cmd -add-port=9101/tcp firewall-cmd -permanent -add-port=9101/tcp firewall-cmd -add-port=9102/tcp firewall-cmd -permanent -add-port=9102/tcp firewall-cmd -add-port=9103/tcp firewall-cmd -permanent -add-port=9103/tcp Now you should be able to start Bacula and see all of the Daemons are showing UP.

Bacula: – It comes by night and sucks the vital essence from your computers. Introduction: Bacula is an on-linebased back up tool. Which is used to backup files from different servers into back up server where the bacula is running. For setup this backup tool across network first you have to install bacula server package on backup server machine where you are storing your backup contents,and install bacula client daemon on all other servers from where we are going to backup data.

Bacula has five main components. 1.Director daemon This daemon co-ordinate all working of backup,and through its configuration file we can specify all these things. 2.File daemon This daemon works in all clients from that client we are backup data. Director daemon connect to this daemon after authentication and backup the files from this client. 3.Storage daemon This daemon is for store the backup data from client in to hard disk of backup server,usually this daemon and director daemon works in the same backup server. Director works as intermediate between the file daemon and storage daemon. 4.Console daemon This is a terminal to control all works.This console connect to director daemon and using its commands we can define all things related with backup.

5.Catalog Database The database used here is for store all information related to the backup, including the file indexing.Commonly used database for bacula is Mysql. This figure shows how the different bacula daemon configuration files were linked together. Install and Configure Bacula Server You can install bacula from rpm packages or from Source compilation. Here we are focusing on the source method,which is tested and is working fine. Download latest version of bacula from bacula.org site. Here we are using following versions 1. Bacula-3.0.3.tar.gz (2.

Depkgs-18Feb09.tar.gz or later versions (This two packages are used to setup a bacula,In which you have to install depkgs-18Feb09.tar.gz first to solve remaining dependency problems before starting bacula-3.0.3.tar.gz. You should not hesitate to install depkgs-18Feb09.tar.gz,it contains different packages,in which you can install “mtx and qwt”.

You need not install sqlite database because mysql is the default database. And then check ports where these daemons are listening. Default case: daemon port bacula-dir 9101 bacula-fd 9102 bacula-sd 9103 make sure that the above mentioned ports are added and opened in the csf.conf file of the server or in some other firewall settings After successful installation to start the sample backup from same system where you installed all three daemons. Follow this simple tutorial: To administrate bacula it provide a console or terminal named as bconsole. Using this console we can do all work from back end. NB: For installation from source package, after detar you should read the README and INSTALL files. Most of the time this will helps you to complete installation.