Bareos Architektur
Bareos-Komponenten:
Director (bareos-dir):
Zentrale Steuerung, Job-Scheduling
Kommuniziert mit allen anderen Komponenten
Storage Daemon (bareos-sd):
Verwaltet Backup-Storage (Disk, Tape)
Kann auf separatem Server laufen
File Daemon (bareos-fd):
Auf jedem gesicherten Client
Liest Daten, sendet an Storage Daemon
WebUI:
Browser-basierte Verwaltungsoberflaeche
Nginx + PHP
Bareos DB:
PostgreSQL (empfohlen) oder MariaDB
Speichert Job-Catalogue
Installation (Debian/Ubuntu)
# Bareos-Repository hinzufuegen
curl https://download.bareos.org/current/Debian_12/Release.key |
gpg --dearmor > /etc/apt/trusted.gpg.d/bareos.gpg
echo "deb https://download.bareos.org/current/Debian_12/ /" > /etc/apt/sources.list.d/bareos.list
apt update
# Bareos-Server (Director + Storage + File Daemon)
apt install bareos bareos-database-postgresql bareos-webui
# Datenbank einrichten
su - postgres -c "psql -c "CREATE USER bareos PASSWORD 'bareos-db-password';""
su - postgres -c "psql -c "CREATE DATABASE bareos OWNER bareos;""
/usr/lib/bareos/scripts/create_bareos_database
/usr/lib/bareos/scripts/make_bareos_tables
/usr/lib/bareos/scripts/grant_bareos_privileges
systemctl enable --now bareos-dir bareos-sd bareos-fd
# WebUI starten
systemctl enable --now apache2
# https://bareos-server/bareos-webui
Basis-Konfiguration
# /etc/bareos/bareos-dir.d/client/linux-client.conf
cat << 'EOF' > /etc/bareos/bareos-dir.d/client/web-server.conf
Client {
Name = web-server-fd
Address = 192.168.1.20
Password = "client-password"
Maximum Concurrent Jobs = 5
}
EOF
# /etc/bareos/bareos-dir.d/job/backup-web-server.conf
cat << 'EOF' > /etc/bareos/bareos-dir.d/job/backup-web-server.conf
Job {
Name = "BackupWebServer"
JobDefs = "DefaultJob"
Client = web-server-fd
FileSet = "LinuxAll"
Schedule = "WeeklyCycle"
Storage = File1
Pool = Incremental
Priority = 10
}
EOF
# Konfiguration testen
bareos-dir -t -c /etc/bareos/bareos-dir.conf
systemctl restart bareos-dir
Client installieren (Linux)
# Auf dem zu sichernden Client:
apt install bareos-filedaemon
# /etc/bareos/bareos-fd.conf anpassen
cat << 'EOF' >> /etc/bareos/bareos-fd.d/client/myself.conf
Client {
Name = web-server-fd
Password = "client-password"
}
EOF
systemctl enable --now bareos-fd
FAQ
Wann ist Bareos besser als Restic/BorgBackup?
Bareos lohnt sich ab 10+ Clients mit heterogenen Systemen (Linux, Windows, macOS), Tape-Anforderungen oder Compliance-Reporting. Fuer homogene Linux-Umgebungen ist Restic/Borg einfacher.
Fazit
Bareos bietet Enterprise-Backup-Funktionalitaet als Open Source - ideal fuer KMU die professionelles Backup ohne Lizenzkosten benoetigen.
Backup-Loesung fuer KMU in Heidelberg, Mannheim und der Rhein-Neckar-Region. Beratung anfragen.