-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.bacula.on.almalinux.sh
29 lines (21 loc) · 1.06 KB
/
install.bacula.on.almalinux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Define Bacula version (adjust if needed)
BACULA_VERSION="11.0.1"
# Update package lists
sudo dnf update -y
# Install Bacula Server packages (Director, Storage Daemon, and File Daemon)
sudo dnf install bacula-server bacula-director bacula-console -y
# Install Bacula Client package (for backing up client machines)
sudo dnf install bacula-client -y
# Initialize the Bacula storage directories (adjust paths if needed)
sudo bacula-dir -i -c /etc/bacula/bacula-dir.conf
sudo bacula-sd -i -c /etc/bacula/bacula-sd.conf
# Enable and start Bacula services
sudo systemctl enable bacula-dir bacula-sd bacula-fd
sudo systemctl start bacula-dir bacula-sd bacula-fd
# (Optional) Open firewall ports for Bacula (Director web UI - 9001, Storage Daemon - 9101)
# sudo firewall-cmd --permanent --add-port=9001/tcp
# sudo firewall-cmd --permanent --add-port=9101/tcp
# sudo firewall-cmd --reload
echo "Bacula $BACULA_VERSION installation complete on AlmaLinux."
echo "** Please refer to Bacula documentation for configuration: https://www.bacula.org/documentation/documentation/**"