[Support] Bacula-Server


VRx

Recommended Posts

Application: Bacula - https://www.bacula.org/
                  Baculum App - https://www.baculum.app/
Docker Hub: https://hub.docker.com/r/pwa666/bacula-server
GitHub: https://github.com/vrx-666/bacula-server

Bacula is a client / server backup application.
Baculum is a web application that allows you to easily manage the bacula application.
This container combines these applications to form a backup tool with a graphical interface.
This container can be run in 5 different versions.

Bacula server consists of several components:

  • storage daemon - responsible for saving backups to disk or removable media (tape)
  • bacula director - responsible for the entire backup process, contacts agents on client devices, indicates what resources should be backed up, how and where to send them (storage daemon)
  • file daemon - is a bacula client available for many operating systems, responds to requests from bacula director.


A relational database is necessary, where the bacula stores all information related to the performed backups.
During installation, you can choose Bacula version 9.6 or 11.
Version 9.6 allows you to use the mysql or postgresql database as well as sqlite3.
Version 11 allows you to use the postgresql or sqlite3 database.
The sqlite3-enabled version is not recommended for larger environments, but allows you to run this application without running mysql / postgresql as a separate container or server. If you already have postgresql or mysql running as your VM or docker application, I recommend choosing this version of the application.

If you plan to use the PostgreSQL or MySQL version you should first create an empty database named "bacula", create a password user for that database and grant full privileges to this database for the created user.For mySQL:

CREATE USER 'USERNAME' @ '%' IDENTIFIED BY 'PASSWORD';
CREATE DATABASE bacula;
GRANT ALL PRIVILEGES ON `bacula`. * TO 'USERNAME' @ '%';
flush privileges;

For postgreSQL:

create user USERNAME with password 'PASSWORD';
create database bacula encoding 'SQL_ASCII' owner "USERNAME" template = template0;


When running container there is some mandatory environment variables.
Most important is to set up:

  • SD_Host - should define the IP address at which the Bacula Server will be reachable for computers.
    If you are using a bridge network this parameter should be the ip of your UnRAID.
    If you set custom bridge, You shuld type in assigned IP.
    This variable is passed to the Bacula configuration and later during the backup it is passed to the clients so they can communicate with the Bacula server.

The following are necessary when using an external database (postgreSQL, mySQL)

  • DB_Host - database ip
  • DB_Port - database port (could be omitted if default)
  • DB_User - database user
  • DB_Password

In addition, there are two important ports that must be exposed:

  • 9095 - Bacula Web
  • 9103 - Bacula Storage

The first allows access to the webUI Baculum App.
The second is used to receive backups by the server from clients / computers.
It can be changed, but you have to change the configuration of Storage Daemon and Bacula Director e.g. via webUI.
I recommend that you leave these ports unchanged.

There are also necessary paths to folders where configuration files, logs and backups will be saved, these variables are transparent in the UnRaid's docker form, I think that they do not need to be described here.

If you have any questions, please ask below.

Link to comment
  • 3 weeks later...
  • 1 month later...
  • 3 weeks later...
On 1/22/2022 at 3:31 PM, trypowercycle said:

Are there any drivers built in the base install?

I'm sorry but no.
I try to build some new image drivers included for about 2 weeks (actually i have big reconfiguration in my lab environment)

Important!

Last week I build smaller image using debian-slim, but there is some problem on Unraid with this image:
1. "all texts has @@ at both the start and end" - https://github.com/vrx-666/bacula-server/issues/1

2. I noticed error when container is first time starting after base image change.
Today I published update resolving first issue, but this is simpla come back to standard debian image, so second problem may occur again with this update.
Simple resolution is to delete container, and install it again, with same paths, ports, ip, user, password. Nothing should disapear, any backups, settings and history.

I'm very sorry for my bad automated testing.

Link to comment
  • 1 month later...

Looking for a better solution for the following problem:

 

The JobDefs for DefaultJob is buried in really many resources, but it cannot be edited in Baculum.

I had to edit JobDefs in the bacula-dir.conf to be able to get rid of the default resources (schedules, jobs, pools, storage) coming with the container.

 

Is there a way to edit JobDefs in Baculum?

 

 

Link to comment
  • 1 month later...

Today I had this problem when Bacula was automatically started again after the daily tasks (incl. Mover):

 

2022-04-30 05:00:03,712 WARN received SIGTERM indicating exit request
2022-04-30 05:00:03,724 INFO waiting for baculum to die
2022-04-30 05:00:03,725 INFO stopped: baculum (terminated by SIGTERM)
==> Checking DB...
==> Starting...
==> .......Storage Daemon...
Starting Bacula Storage Daemon: bacula-sd
==> .......File Daemon...
Starting Bacula File Daemon: bacula-fd
==> .......Bacula Director...
Starting Bacula Director: bacula-dir
==> .......Bacula Web...
2022-04-30 07:07:46,348 INFO Set uid to user 0 succeeded
2022-04-30 07:07:46,383 INFO supervisord started with pid 1
2022-04-30 07:07:47,394 INFO spawned: 'baculum' with pid 149
2022-04-30 07:07:48,113 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:07:49,122 INFO spawned: 'baculum' with pid 152
2022-04-30 07:07:49,740 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:07:51,773 INFO spawned: 'baculum' with pid 155
2022-04-30 07:07:52,777 INFO success: baculum entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-04-30 07:07:53,132 INFO exited: baculum (exit status 0; expected)
2022-04-30 07:07:53,137 INFO spawned: 'baculum' with pid 158
2022-04-30 07:07:53,636 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:07:54,650 INFO spawned: 'baculum' with pid 161
2022-04-30 07:07:55,632 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:07:57,641 INFO spawned: 'baculum' with pid 164
2022-04-30 07:07:57,981 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:08:00,995 INFO spawned: 'baculum' with pid 167
2022-04-30 07:08:02,016 INFO success: baculum entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-04-30 07:08:02,291 INFO exited: baculum (exit status 0; expected)
2022-04-30 07:08:03,299 INFO spawned: 'baculum' with pid 170
2022-04-30 07:08:03,990 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:08:05,004 INFO spawned: 'baculum' with pid 173
2022-04-30 07:08:05,733 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:08:07,740 INFO spawned: 'baculum' with pid 176
2022-04-30 07:08:08,374 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:08:11,384 INFO spawned: 'baculum' with pid 179
2022-04-30 07:08:11,864 INFO exited: baculum (exit status 0; not expected)
2022-04-30 07:08:12,866 INFO gave up: baculum entered FATAL state, too many start retries too quickly

 

The baculum web UI wouldn't work, but the backup tasks ran fine.

 

Link to comment
On 4/30/2022 at 8:44 PM, b0m541 said:

Today I had this problem when Bacula was automatically started again after the daily tasks (incl. Mover

@b0m541Did Your mover touch Baculum config path or Apache log path?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.