Bacula : Install2021/06/22 |
Install Integrated Backup tool, Bacula.
|
|
[1] | |
[2] | Install Bacula components. |
[root@dlp ~]# dnf -y install bacula-director bacula-storage bacula-console bacula-client
|
[3] | Add a User and Database on MariaDB for Bacula. |
# change default to 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
# create database for 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.28-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) # replace [password] to your own 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 # create tables [root@dlp ~]# /usr/libexec/bacula/make_mysql_tables -p Enter password: # MariaDB root password Creation of Bacula MySQL tables succeeded. |
Sponsored Link |