Duplicati unter debian ohne Gui
🔹 1. Voraussetzungen
Debian-Installation (z. B. Debian 12 "Bookworm")
Root-Zugang oder ein Benutzer mit sudo-Rechten
Netzwerkzugriff (für Webinterface)
---
🔹 2. Benötigte Pakete installieren
Zuerst sicherstellen, dass das System aktuell ist:
apt update && sudo apt upgrade -y
Duplicati braucht Mono (eine .NET-Implementierung). Installiere es:
apt install -y apt-transport-https dirmngr gnupg ca-certificates
Repository hinzufügen:
sh -c 'echo "deb https://download.mono-project.com/repo/debian stable-$(lsb_release -cs) main" > /etc/apt/sources.list.d/mono-official-stable.list'
wget https://download.mono-project.com/repo/xamarin.gpg -O- | apt-key add -
apt update
apt install -y mono-devel
---
🔹 3. Duplicati installieren
Das .deb-Paket von der offiziellen Seite holen:
wget https://updates.duplicati.com/beta/duplicati_2.0.7.1-1_all.deb
dpkg -i duplicati_2.0.7.1-1_all.deb
apt -f install -y
---
🔹 4. Duplicati als Dienst einrichten
Standardmäßig bringt Duplicati ein Systemd-Unit-File mit. Falls nicht, kannst du selbst eines erstellen:
nano /etc/systemd/system/duplicati.service
Inhalt:
[Unit]
Description=Duplicati Backup Service
After=network.target
[Service]
ExecStart=/usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe --webservice-interface=any --webservice-port=8200 --unencrypted-database=true
Restart=on-failure
User=duplicati
Group=duplicati
[Install]
WantedBy=multi-user.target
---
🔹 5. Systemd-Dienst aktivieren
Benutzer duplicati anlegen und Berechtigungen setzen:
adduser --system --home /var/lib/duplicati --group duplicati
chown -R duplicati:duplicati /var/lib/duplicati
Dann den Dienst aktivieren:
systemctl daemon-reexec
systemctl enable duplicati
systemctl start duplicati
---
🔹 6. Zugriff auf das Webinterface
Duplicati läuft jetzt standardmäßig auf Port 8200.
Im Browser aufrufen:
http://SERVER-IP:8200
Dort kannst du Backups einrichten (Ziel: SFTP, WebDAV, Cloud etc.).
No comments to display
No comments to display