CentOS 8
Sponsored Link

Bacula : インストール2020/02/14

 
マルチプラットフォーム、マルチクライアントをサポートする統合バックアップツール Bacula をインストールします。
[1]
[2] Bacula 関連コンポーネントをインストールします。
[root@dlp ~]#
dnf -y install bacula-director bacula-storage bacula-console bacula-client
[3] Bacula 用のユーザーとデータベースを MariaDB に登録しておきます。
# 参照するライブラリを MariaDB に変更

[root@dlp ~]#
alternatives --config libbaccats.so


There are 3 programs which provide 'libbaccats.so'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib64/libbaccats-mysql.so
   2           /usr/lib64/libbaccats-sqlite3.so
*+ 3           /usr/lib64/libbaccats-postgresql.so

Enter to keep the current selection[+], or type selection number: 1

# bacula ユーザーとデータベース作成

[root@dlp ~]#
mysql -u root -p

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 10.3.17-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database bacula; 
Query OK, 1 row affected (0.00 sec)

# [password] は任意のパスワードを設定
MariaDB [(none)]> grant all privileges on bacula.* to bacula@'localhost' identified by 'password'; 
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> grant all privileges on bacula.* to bacula@'%' identified by 'password'; 
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges; 
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit
Bye

# テーブル作成

[root@dlp ~]#
/usr/libexec/bacula/make_mysql_tables -p

Enter password:  
# MariaDB root パスワード

Creation of Bacula MySQL tables succeeded.
関連コンテンツ