Thursday, May 19, 2016

How to install the Bareos Web UI

A bit of a background

Since Bareos is a descendant of the Bacula backup system, there are several ways to administer the system. There is a console-based bconsole, a character menu-driven system. For a GUI experience there is BAT (Bacula Admin Tool), which provides most of the features of bconsole. If you are using Webmin, there is Bacula Backup module which provides basic configuration and administration. A dedicated web interface was eventually developed, called Bacula-Web. However it is more of a monitoring tool than anything else. What drove a wedge between long time bacula users and the Bacula project is the web administration tool, which is available for the commercial version of Bacula but not the open source version. Other efforts at building a web administration tool have faltered with projects like Web-Bacula stalled and abandoned.
Bareos was committed from the get-go to a web administration tool. As more and more features were added, the Bareos WebUI finally moved out from a monitoring tool to an administration tool. However, it still does not support changing the Bareos configuration. The WebUI works through the Bareos Director to execute it's operation. Installing the WebUI can be done in three stages, installing configuring and finalising the setup.

Installing the Bareos WebUI

If you have followed the Bareos server setup post, the Bareos and EPEL repository should be already be set up. Installing it is very easy.

yum install bareos-webui

That will install the WebUI and the ZendFramework it runs on, plus it's dependencies. The process may take sometime as it installs over 100 packages automatically.

Configuring the Bareos WebUI

Configuration for the Bareos WebUI is tied closely to the Director. Most Bareos setups have one installation and one Bareos Director. However, the Bareos WebUI can support multiple directors, allowing for organisations using Bareos Backup to have multiple setups that are heavily customised for the purpose of the backup and backup strategy.
Again, the Bareos developers have provided an easy way to do this. Run the following commands as a privileged user or root user to add the WebUI configuration to a Director setup.

echo "@/etc/bareos/bareos-dir.d/webui-consoles.conf" >> /etc/bareos/bareos-dir.conf 
echo "@/etc/bareos/bareos-dir.d/webui-profiles.conf" >> /etc/bareos/bareos-dir.conf
The two commands add a line to the Director configuration. The top line is for the WebUI console configuration file. The file contains critical information such as the name of the profile, the username and password used to access the profile. This is the username and password used to log into Bareos WebUI. The default username is user1 and password is CHANGME. The bottom line is for the profile configuration. The configuration defines what the profile, and therefore the user, can do. The default profile name is webui and the default file allows full access. Restart the Bareos Director to load the new configuration.

service bareos-dir restart

If the server is a fresh installation, start the apache webserver and configure the firewall to allow connection to port 80.  The Bareos WebUI installation will setup the apache configuration in /etc/httpd/conf.d/bareos-webui.conf. Point your browser to the URL http://<Ip address of server>/bareos-webui and log in.
Once the Dashboard is shown, run a the sample job by going to Jobs, and the Run tab. Find the BackupClient1 line. Under the Action column, click the Run button. To check whether the job completed successfully, go back to the Dashboard or the Overview tab under Jobs.

Finalizing the setup

To complete the setup, make sure the apache server is set to start at book.

chckconfig httpd on

Make sure the firewall configuration is also saved.

Friday, May 13, 2016

Backing up a Windows PC with Bareos

This article will cover on how to install the Bareos Client for Windows to backup windows files. Although it is not necessary, the Bareos server should be installed first. This is to ensure that the some information, like the name of the Bareos Director has been set. In fact, that is the only information that is required from the server. The client is built specifically for windows and is smart enough to invoke the VSS service which allows it to backup files that are open by other applications.
Installation could not be easer.

  1. Get the installation files from
  2. Run the installation program, select FileDaemon.
  3. Give the PC a name to identify itself. This is the Client Name.  Also enter the name of the Bareos Server.  In the Network Address box, you can enter the PC's IP address or it's DNS name.
  4. The program will show the information that is required to be added to the Bareos Director. This will tell the Director where to find the client. Make note or save the client configuration information to be added to the Bareos Director.
  5. The program will install the Bareos Client and set it so that it will start up automatically after the next restart. You can do a test now but you have to start the program manually. 
 You can test the backup of the PC by adding the above information into the Bareos Director configuration on the server and creating a job for it. Don't forget to restart the director for it to recognise the new configuration. Bareos has a windows fileset that is geared to backup all files on  the Windows PC.

Wednesday, May 4, 2016

Creating workflows in Alfresco

The Alfresco Document Management system comes with two types of workflows, a basic workflow and the advanced workflow. This is a comprehensive tutorial on the workflows that Alfresco provides. It covers both theoretical as well as practical aspects of using a workflow within Alfresco. Most small businesses would be using the basic workflow internally. For complex workflows, it would be prudent to hire a professional to help build the workflow and deploy it.

The advanced workflow within Alfresco is an internal effort called Activiti. It is built by the key people behind JBoss. A background in programming is required to setup advanced workflows. Alfresco open sourced Activiti and is used by other projects. A comprehensive manual is available here. Some Java background is needed to understand it. However, it works both as a manual and a tutorial. If there isn't time, there is a 10 minute overview to get started.
Activiti has even been forked into a project called Camunda. More technical information on Camunda can be found here.