Duplicati Pre-Start-Script: scripts/start-webdav.cmd
Made-with: Cursor
This commit is contained in:
@@ -49,7 +49,7 @@ WebDAV erreichbar unter `http://localhost:3005`.
|
||||
|
||||
## Clients
|
||||
|
||||
- **Duplicati** – Backup-Destination
|
||||
- **Duplicati** – Backup-Destination (Pre-Start: `scripts/start-webdav.cmd`)
|
||||
- **rclone** – `rclone config` → WebDAV, URL `http://127.0.0.1:3005`
|
||||
- **Windows Explorer** – Netzlaufwerk verbinden
|
||||
|
||||
|
||||
@@ -58,6 +58,17 @@ CRYPTO_SECRET=6KYQBP847D4ATSFA
|
||||
# WEBDAV_PASS=geheim
|
||||
```
|
||||
|
||||
## Duplicati Pre-Start (optional)
|
||||
|
||||
Falls der WebDAV-Server nicht dauerhaft läuft, kann Duplicati ihn vor dem Backup starten:
|
||||
|
||||
**Einstellungen → Erweitert → Scripts → Vor dem Backup ausführen:**
|
||||
```
|
||||
C:\Pfad\zu\internxt-webdav\scripts\start-webdav.cmd
|
||||
```
|
||||
|
||||
Der Server startet im Hintergrund und ist nach ~5 Sekunden bereit.
|
||||
|
||||
## WebDAV-Credentials (für Duplicati, Explorer)
|
||||
|
||||
Der Server erwartet **Basic Auth**. Ohne `WEBDAV_USER`/`WEBDAV_PASS` in `.env` akzeptiert er **beliebige** Credentials – Sie können in Duplicati z.B. Benutzername `backup` und Passwort `geheim` eintragen. Mit `WEBDAV_USER` und `WEBDAV_PASS` werden nur diese Credentials akzeptiert.
|
||||
|
||||
21
scripts/start-webdav.cmd
Normal file
21
scripts/start-webdav.cmd
Normal file
@@ -0,0 +1,21 @@
|
||||
@echo off
|
||||
REM Duplicati Pre-Start: WebDAV-Server starten
|
||||
REM In Duplicati: Einstellungen -> Erweitert -> Scripts -> Vor dem Backup ausfuehren
|
||||
REM Pfad: C:\Pfad\zu\internxt-webdav\scripts\start-webdav.cmd
|
||||
|
||||
cd /d "%~dp0.."
|
||||
|
||||
REM Pruefen ob Server bereits laeuft (Port 3005)
|
||||
netstat -an | findstr ":3005.*LISTENING" > nul 2>&1
|
||||
if %errorlevel% equ 0 (
|
||||
echo WebDAV-Server laeuft bereits.
|
||||
exit /b 0
|
||||
)
|
||||
|
||||
echo Starte WebDAV-Server...
|
||||
start /B node src/server.js > nul 2>&1
|
||||
|
||||
REM Warten bis Server bereit ist
|
||||
timeout /t 5 /nobreak > nul
|
||||
echo WebDAV-Server gestartet.
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user