FreeBSD 14
Sponsored Link

Bacula : Install2024/09/19

 

Install Integrated Backup tool, Bacula.

[1]

Install PostgreSQL Server, refer to [1] of here.

[2] Install Bacula components.
root@dlp:~ #
pkg install -y bacula15-server postgresql15-contrib
[3] Add a User and Database on PostgreSQL for Bacula.
# change authentication method

root@dlp:~ #
cp -p /var/db/postgres/data15/pg_hba.conf /var/db/postgres/data15/pg_hba.conf.org

root@dlp:~ # cat > /var/db/postgres/data15/pg_hba.conf <<'EOF'
local   all             postgres                                peer
local   all             all                                     peer
host    all             all             127.0.0.1/32            scram-sha-256
host    all             all             ::1/128                 scram-sha-256
local   replication     all                                     peer
host    replication     all             127.0.0.1/32            scram-sha-256
host    replication     all             ::1/128                 scram-sha-256
EOF 

root@www:~ #
service postgresql restart

# replace [password] to your own password

root@dlp:~ #
su - postgres

$
createuser bacula

$
createdb bacula -O bacula --encoding=SQL_ASCII --template=template0

$
psql -c "alter user bacula with password 'password'"

ALTER ROLE
$
exit

logout
# create tables

root@dlp:~ #
/usr/local/share/bacula/make_postgresql_tables -d bacula -U bacula -h 127.0.0.1

Password for user bacula:

.....
.....

CREATE INDEX
INSERT 0 1
Creation of Bacula PostgreSQL tables succeeded.
Matched Content