Sign inSign up

pwa666/bacula-server

By pwa666

Updated 5 days ago

Bacula Server with Baculum App

Image
Databases & storage
1

10K+

pwa666/bacula-server repository overview

Bacula Server with WEB UI

Version 9.6 is no longer developed
Version 9.6 allows to use the mysql or postgresql as well as sqlite3 database.
Version 11, 13 and 15 allows to use the postgresql or sqlite3 database.
For Bacula15 Postgresql13 or above is needed.
Sqlite3 version creates db locally, for mysql or postgresql need to have separate db server working.
For mysql or postgresql create db named "bacula" with coresponding user.
For postgresql use SQL_ASCII encoding to avoid application warnings.
With version 11 the Baculum web interface was used, but with version 13 and 15 NEW! Bacularis web interface is used,
so read the configuration instructions carefully, especially if you are upgrading.

TAG naming

bacula-server:[VERSION]-[DB]-[BUILD]
bacula-server:[VERSION]-latest corespond to sqlite3 version
and bacula-server:latest corespond to v11 sqlite3 version (some tests needed with v13)

Upgrading v11 to v13/15

If you upgrade from version 11 to version 13/15, you need to change two params:

  1. Web interface configuration folder mapping:
    In version 11 there was /etc/baculum inside container
    In version 13/15 there is /etc/bacularis
    Be careful, configurations vary! You cannot map the same host folder for /etc/bacularis that was used for /etc/baculum.
    At the same time, this change forces you to create any new users if you created any in version 11.
  2. The second necessary change is the Web interface port, for version 11 it was 9095, for version 13/15 it is 9097.

ENV

postgreSQL & mySQL versions:

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

common:

TZ - timezone
SD_Host - most cases host IP Address should be set
        (the IP address where the bacula will be reachable by clients/computers)
WEB_User - bacula app username (default: admin)
WEB_Password - bacula app password (default: difficult)
EMAIL_Recipient - email address where You want bacula send notifications
SMTP_Host - address of Your email provider's smtp server
SMTP_User - Email sender login (could be: user@domain or user, check Your email provider documentation)
SMTP_Password - Password for email sender account
SMTP_Port - smtp port for Your email provider smtp server (check provider documentation) - Yes this is ENV Variable not Docker Port

If You want to send email notification, You should set container hostname as Your Reverse DNS (Public). Some email providers could Reject email without propper hostname

Ports

9095 / 9097 - Bacula (v11) / Bacularis (v13/15)
9103 - Bacula Storage
9096 - Bacula API (could be omitted, local Web App use localhost)
9101 - Bacula Director (could be omitted if no remote management is needed)

Mounts

version 13/15:

/opt/bacula/etc - bacula configuration files
/etc/bacularis - bacularis app configuration
/mnt/bacula - storage for backups
/opt/bacula/working - bacula working directory (sqlite db, bacula db dump for backups)
/opt/bacula/log - bacula logs
/var/log/apache2 - baculum logs

version 11:

/opt/bacula/etc - bacula configuration files
/etc/baculum - baculum app configuration
/mnt/bacula - storage for backups
/opt/bacula/working - bacula working directory (sqlite db, bacula db dump for backups)
/opt/bacula/log - bacula logs
/var/log/apache2 - baculum logs

version 9.6:

/etc/bacula - bacula configuration
/etc/baculum - baculum app configuration
/mnt/bacula - storage for backups
/var/lib/bacula - bacula working directory
/var/log/bacula - bacula logs
/var/log/apache2 - baculum app logs

Exaple run command

docker run -d --name='Bacula Server' \
-e TZ="America/Los_Angeles" \
-e 'SD_Host'='192.168.1.101' \
-e 'DB_Host'='192.168.1.100' -e 'DB_User'='username' -e 'DB_Password'='password' \
-e 'WEB_User'='admin' -e 'WEB_Password'='difficult' \
-p '9103:9103' -p '9095:9095' \
-v '/mnt/docker/bacula-server/working':'/var/lib/bacula' \
-v '/mnt/docker/bacula-server/etc':'/etc/bacula' \
-v '/mnt/docker/bacula-server/storage':'/mnt/bacula' \
-v '/mnt/docker/bacula-server/log/bacula':'/var/log/bacula' \
-v '/mnt/docker/bacula-server/log/apache2':'/var/log/apache2' \
-v '/mnt/docker/bacula-server/baculum':'/etc/baculum' \
pwa666/bacula-server:9.6-pgsql-latest

Tag summary

Content type

Image

Digest

sha256:0a02ae891

Size

239.1 MB

Last updated

5 days ago

docker pull pwa666/bacula-server:15-postgresql-b39