Duplicati Post-Backup-Script: scripts/stop-webdav.cmd
Made-with: Cursor
This commit is contained in:
14
scripts/stop-webdav.cmd
Normal file
14
scripts/stop-webdav.cmd
Normal 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
|
||||
Reference in New Issue
Block a user