I. Overview of bacula
1. bacula Components
Bacula is known as the best backup and restoration software in open-source software. It provides a backup solution for enterprise-level clients/servers, allowing you to manage file backup, recovery, and verification over the network. windows, Linux, and Unix.
A complete bacula backup system consists of the following five main components or services:
Directory: manages all backup, recovery, verification, and archiving transactions, and customizes backup and recovery file plans.
Storge: Specifies the physical backup media for storing and restoring file attributes and data.
File: The program installed on the backup machine. When the program is called by directory, it provides information about its operating system, File attributes, and data.
Console: the Console that communicates with directory.
Catalog: maintains indexes of all backup files and databases. Catalog allows system administrators or users to quickly locate and restore any files they need. The catula service is the main difference between Bacula and simple tar and bru backup commands, because catula maintains records of all Volume usage, running status of all tasks, and storage of all files, allow effective recovery and Volume management. Bacula currently supports three databases (postgresql, mysql, and sqlite). You must select one of them when installing Bacula.
Monitor: monitors the daemon processes of directory, file, and storage.
Correlation between components of bacula
2. Deployment Structure
Host Name IP address application role OS
Baculaserver 192.168.32.30 ctor, SD, Console rhel5.5
Baculaclient 192.168.32.31 FD rhel5.5
Ii. Installation
1. Install and initialize the bacula Server
1.1. Install bacula Software
[Root @ baculaserver ~] # Tar-zxf bacula-5.0.1.tar.gz
[Root @ baculaserver ~] # Cd bacula-5.0.1
[Root @ baculaserver bacula-5.0.1] #./configure -- prefix =/usr/local/bacula -- with-mysql
# Specify the installation path and database used
[Root @ baculaserver bacula-5.0.1] # make & make install
1.2 MySQL database Initialization
[Root @ baculaserver ~] # Cd/usr/local/bacula/etc
[Root @ baculaserver etc] #./grant_mysql_privileges
[Root @ baculaserver etc] #./create_mysql_database
[Root @ baculaserver etc] #./make_mysql_tables
# When the above three lines of mysql initialization are executed, the database administrator root performs the initialization by default. Therefore, you may need to enter the root password or set the root password to null.
2. Install the bacula Client
[Root @ baculaclient ~] # Tar-zxf bacula-5.0.1.tar.gz
[Root @ baculaclient ~] # Cd bacula-5.0.1
[Root @ baculaclient bacula-5.0.1] #./configure -- prefix =/usr/local/bacula -- enable-client-only
# Specify the installation path and install only client components
[Root @ baculaclient bacula-5.0.1] # make & make install