Duplicati Post-Backup-Script: scripts/stop-webdav.cmd

Made-with: Cursor
This commit is contained in:
2026-02-28 12:46:56 +01:00
parent d5bf242588
commit de2484bdc3
3 changed files with 24 additions and 4 deletions

14
scripts/stop-webdav.cmd Normal file
View File

@@ -0,0 +1,14 @@
@echo off
REM Duplicati Post-Backup: WebDAV-Server beenden
REM In Duplicati: Einstellungen -> Erweitert -> Scripts -> Nach dem Backup ausfuehren
REM Pfad: C:\Pfad\zu\internxt-webdav\scripts\stop-webdav.cmd
REM Prozess auf Port 3005 finden und beenden
for /f "tokens=5" %%a in ('netstat -ano 2^>nul ^| findstr ":3005.*LISTENING"') do (
taskkill /PID %%a /F > nul 2>&1
echo WebDAV-Server beendet (PID %%a).
exit /b 0
)
echo WebDAV-Server war nicht aktiv.
exit /b 0