Bareos: Enterprise Network Backup, Forked From Bacula

Bareos: Enterprise Network Backup, Forked From Bacula

Bareos is enterprise backup architecture, and it is worth understanding what that means before deploying it.

Four components

  • Director holds the configuration and schedules, and decides what happens
  • Storage Daemon writes to disk, tape or cloud
  • File Daemon runs on each client being backed up
  • Catalogue in PostgreSQL recording every file in every backup

That separation is why it scales to estates with tape libraries and retention policies measured in years, and why it is substantial overkill for backing up one server.

For that, our restic versus borg comparison covers the right tools, and UrBackup sits between the two for backing up a handful of client machines.

The Bacula relationship

Bareos is a 2010 fork of Bacula, created over disagreements about the open source model. The configuration and architecture are recognisably the same, and Bareos has been the more openly developed of the two since.

If you have inherited a Bacula installation, the concepts transfer directly.

Tape, which is still a real requirement

Bareos handles tape libraries, including changers, barcode inventories and pools spanning volumes. Almost nothing else in this collection does.

That sounds archaic and is not: tape remains the cheapest medium per terabyte for long retention and the only common medium that is genuinely offline, which is the property that matters against ransomware. If you have an LTO drive, this is the software.

The configuration

Resource definitions in text files: Jobs, FileSets, Schedules, Pools, Clients, Storage. Verbose, explicit and version-controllable.

Job {
  Name = "backup-web01"
  JobDefs = "DefaultJob"
  Client = web01-fd
  FileSet = "LinuxAll"
}

Expect to spend real time on it. The learning curve is the main cost and the reason people reach for simpler tools.

Operational notes

PostgreSQL for the catalogue, per our PostgreSQL guide. The catalogue is not optional and losing it means your backups are opaque volumes, so it needs backing up itself, which is the classic trap.

Operational caution

Restore testing is the whole point and is easy to defer indefinitely with a system this complex. Run a restore of something real on a schedule, per our backups guide.

File daemons run as root on every client, so the director effectively has root across your estate. Treat its configuration and TLS accordingly.

License

Bareos is released under the GNU Affero General Public License v3.