Installation

Normally, the Bacula REST API is installed from a package such as a .deb or .rpm. The package name is of the following form:

bacula-enterprise-rest-api-6.6.0.xxx.(rpm/deb)

where the 6.6.0 must correspond to the Bacula Enterprise version you installed, and the xxx depends on the package and the architecture of the machine on which you are installing the package.

The easiest way to do the installation is to use the Bacula Enterprise repository and select the package using yum on systems with rpm packages and apt-get on systems with deb packages.

For example, on systems using rpms:

yum install bacula-enterprise-rest-api-6.6.0-1.noarch.rpm

or if you are using the Bacula Enterprise Yum repository:

yum install bacula-enterprise-rest-api

Likewise on systems using debs:

dpkg -i bacula-enterprise-rest-api-6.6.0.deb
apt-get -f install

where the second command (apt-get) is only needed if you get unresolved package errors on the first (dpkg) command. And if you are using the Bacula Enterprise Debian repository:

apt-get install bacula-enterprise-rest-api

The installation process will create the directory /opt/bacula/rest-api. Under the rest-api directory, you will find the following additional directories:

  • bin
    where any binaries or start scripts are placed.
  • etc
    where configuration files are placed (e.g. lighttpd.conf).
  • log
    where you can find lighttpd log files.
  • scripts
    where you can find various useful scripts.
  • uploads
    where your app can upload files if necessary (not recommended).
  • www
    where the rest-api web files reside.

Go back to the REST API chapter.

Go back to the main Advanced Features Usage page.