15 lines
471 B
Batchfile
15 lines
471 B
Batchfile
@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
|