Skip to content

Installing Bareos on Ubuntu: the Bacula fork that kept moving

How to install Bareos on Ubuntu LTS, why operators pick it over Bacula in 2026, and the small migration surface between the two daemons.

Bareos forked from Bacula in 2010 and has accumulated most of the features that made operators look at Bacula and think “this looks like 2005”. The wire format is still Bacula’s, so migration is mostly mechanical, but the configuration directory layout, the package distribution, and the bundled WebUI are different enough that you should know what you’re installing. This article covers a clean Bareos install on Ubuntu 24.04 with a PostgreSQL catalog, the WebUI, and the operational notes we apply on the engagements where Bareos is the chosen tool.

How to verify

Confirm the packages, ports, and catalog DB after install:

systemctl status bareos-dir bareos-sd bareos-fd
ss -tlnp | grep -E ':(9101|9102|9103)\b'
sudo -u postgres psql -c "\l" | grep bareos
echo "list jobs" | bconsole | head
curl -sI http://localhost/bareos-webui/ | head -1

Ports 9101/9102/9103 are unchanged from Bacula. The bconsole is renamed bareos-bconsole in some distributions; on Ubuntu it stays bconsole. The WebUI is a separate PHP application that talks to the Director over the same protocol as the console.

What’s happening

Bareos is binary-incompatible with Bacula on the package level but largely compatible on the wire. The configuration moved from one monolithic file per daemon to a directory tree under /etc/bareos/bareos-dir.d/, /etc/bareos/bareos-sd.d/, /etc/bareos/bareos-fd.d/ with one resource per file under subdirectories like client/, job/, pool/, storage/, fileset/. Configuration management is dramatically easier — Ansible can drop files into job/ without parsing a 6000-line config.

The catalog backend defaults to PostgreSQL (Bacula’s MySQL support is essentially abandoned upstream). The WebUI is a separate Apache/PHP package that authenticates against the Director and gives non-CLI operators a job history, restore browser, and storage status view.

Migration from Bacula: the protocol is shared, so a Bareos Director can drive Bacula File Daemons (and vice versa) for a transition period; the catalog schema differs slightly and is migrated by update_bareos_tables. We have done several Bacula → Bareos migrations and the painful part is always config conversion — not the protocol.

The procedure

  1. Add the Bareos repository for Ubuntu 24.04. The upstream publishes a per-release repo; use the LTS line, not the master snapshot.

    . /etc/os-release
    wget -qO - "https://download.bareos.org/current/xUbuntu_${VERSION_ID}/Release.key" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/bareos.gpg
    echo "deb https://download.bareos.org/current/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/bareos.list
    apt update
  2. Install the Director, SD, FD, console, and WebUI packages. The bareos-database-postgresql package pulls in the schema scripts.

    apt install -y bareos bareos-database-postgresql bareos-webui apache2 php-fpm postgresql
  3. Initialize the catalog. The package ships a wrapper that handles role creation, schema, and grants in one shot.

    sudo su postgres -c "/usr/lib/bareos/scripts/create_bareos_database"
    sudo su postgres -c "/usr/lib/bareos/scripts/make_bareos_tables"
    sudo su postgres -c "/usr/lib/bareos/scripts/grant_bareos_privileges"
  4. Start the three daemons and the WebUI front end.

    systemctl enable --now bareos-dir bareos-sd bareos-fd
    systemctl enable --now apache2 php8.3-fpm
    a2enconf bareos-webui
    systemctl reload apache2
  5. Set the WebUI admin password and connect. The WebUI uses console accounts defined in /etc/bareos/bareos-dir.d/console/. Create an admin console with the matching profile, set its password, then log in at http://<host>/bareos-webui/.

    bconsole <<<'configure add console name=admin password="<from-vault>" profile=webui-admin tlsenable=false'
  6. Run the canned default job to prove the chain works end to end. The packages ship a BackupCatalog job that dumps the catalog to a local disk pool.

    bconsole <<<'run job=BackupCatalog yes'
    bconsole <<<'wait'
    bconsole <<<'list jobs'
  7. Replace the default backup-bareos-fd job with the real workload. Each resource file in /etc/bareos/bareos-dir.d/job/ is one job; add new clients via client/ files; reload with bconsole <<<'reload' after every change.

Common pitfalls

  • The bareos-database-postgresql package alone does not create the DB role — you must run the create_bareos_database script as the postgres user. Skipping that step leaves the Director unable to start with a confusing connection error.
  • The WebUI requires its own console accounts; logging in with a CLI console password silently fails because the WebUI profile is missing required ACLs.
  • The split configuration directory means a syntactically broken file anywhere under /etc/bareos/bareos-dir.d/ blocks the Director from starting. bareos-dir -t checks the full tree before you reload.
  • The Bacula upgrade path (drop the Bareos packages on top of Bacula) is not supported by Bacula’s upstream and not endorsed by Bareos either. Do a parallel install, migrate the catalog separately.
  • TLS is still off by default between daemons. Generate certs and switch on Tls Enable = yes in every pair before exposing the SD across networks.

In the engagements we run, Bareos is the choice when a client needs Bacula’s tape and long-retention story without the upstream stagnation. The configuration-as-directory layout fits naturally into Ansible or Salt, the WebUI gives the support desk a self-serve restore browser, and the migration story off Bacula is well-trodden. We treat the catalog DB and the bootstrap-file output as first-class production data, with their own replication and offsite copies. The pattern is detailed alongside other backup tooling in our knowledge base, and the operating model we wrap around it is at /en/services/managed-operations/.