Bacula

From Alessandro's Wiki
Jump to: navigation, search

First Installation

  1. create databases
  2. configuration files


1: Databases

  • Bacula can work with MySQL, Postgres and SQLite:
cd /usr/libexec/bacula/
elwood bacula # ./create_bacula_database -p
Creating SQLite database
elwood bacula # ./make_bacula_tables 
Making SQLite tables
elwood bacula # ./grant_bacula_privileges
Granting SQLite privileges

2: Configuration files

  • four files in total,
/etc/bacula/bacula-dir.conf
/etc/bacula/bacula-fd.conf
/etc/bacula/bacula-sd.conf
/etc/bacula/bconsole.conf


database

[root@tapebackup bacula.blood]# /usr/libexec/bacula/grant_mysql_privileges -p
Enter password: 
Host   User     Password    Select_priv Insert_priv     Update_priv  Delete_priv        Create_priv   Drop_priv Reload_priv     Shutdown_priv   Process_priv       File_priv   Grant_priv  References_priv Index_priv   Alter_priv Show_db_priv    Super_priv      Create_tmp_table_priv   Lock_tables_priv  Execute_priv   Repl_slave_priv   Repl_client_priv        Create_view_priv        Show_view_priv  Create_routine_priv     Alter_routine_privCreate_user_priv Event_priv  Trigger_priv        ssl_type        ssl_cipher     x509_issuer      x509_subject    max_questions   max_updates     max_connections    max_user_connections
localhost       root  *80FB5154CBC8070FD3B13831364BE1E2E05CB5A2 Y    Y  Y      Y        Y       Y     Y Y       Y       Y       Y  Y    Y       Y 0
tapebackup      root    Y   Y   Y       Y       Y       Y       Y    Y  Y      Y        Y       Y     Y Y       Y       Y       Y  Y    Y       Y 0
127.0.0.1       root    Y   Y   Y       Y       Y       Y       Y    Y  Y      Y        Y       Y     Y Y       Y       Y       Y  Y    Y       Y 0
localhost               N   N   N       N       N       N       N    N  N      N        N       N     N N       N       N       N  N    N       N 0
tapebackup              N   N   N       N       N       N       N    N  N      N        N       N     N N       N       N       N  N    N       N 0
localhost       bacula      N   N       N       N       N       N    N  N      N        N       N     N N       N       N       N  N    N       N 0
%      bacula         N N   N   N       N       N       N       N    N  N      N        N       N     N N       N       N       N  N    N       N 0
Privileges for user bacula granted on database bacula.
[root@tapebackup bacula.blood]# /usr/libexec/bacula/create_mysql_database -p
Enter password: 
Creation of bacula database succeeded.
[root@tapebackup bacula.blood]# /usr/libexec/bacula/make_mysql_tables -p
Enter password: 
Creation of Bacula MySQL tables succeeded.
[root@tapebackup bacula.blood]#