Restic-Kompatibilität, POST, rekursives MKCOL, findstr /C: Fix

- Server: POST für Uploads, rekursives MKCOL/PUT, ensureFolderExists
- PUT: fehlende Elternordner werden erstellt
- Scripts: findstr /C: für Literalsuche (Punkt-Konflikt behoben)
- Docs: Restic + rclone Hinweis

Made-with: Cursor
This commit is contained in:
2026-02-28 15:18:57 +01:00
parent 378fb59912
commit bbf3b899f7
4 changed files with 56 additions and 12 deletions

View File

@@ -19,8 +19,8 @@ if %errorlevel% neq 0 (
exit /b 1
)
REM Pruefen ob Server bereits laeuft (0.0.0.0:0 = Listening, sprachunabhaengig)
netstat -an | findstr ":%PORT% " | findstr "0.0.0.0:0" > nul 2>&1
REM Pruefen ob Server bereits laeuft (0.0.0.0:0 = Listening)
netstat -an | findstr /C:":%PORT% " | findstr /C:"0.0.0.0:0" > nul 2>&1
if %errorlevel% equ 0 (
echo WebDAV-Server laeuft bereits.
exit /b 0

View File

@@ -8,9 +8,9 @@ if "%1"=="" (set PORT=3005) else (set PORT=%1)
REM Prozess auf Port finden und beenden
REM Filter: Port + "0.0.0.0:0" = Listening (sprachunabhaengig)
for /f "tokens=5" %%a in ('netstat -ano 2^>nul ^| findstr ":%PORT% " ^| findstr "0.0.0.0:0"') do (
for /f "tokens=5" %%a in ('netstat -ano 2^>nul ^| findstr /C:":%PORT% " ^| findstr /C:"0.0.0.0:0"') do (
taskkill /PID %%a /F > nul 2>&1
echo WebDAV-Server beendet (PID %%a).
echo WebDAV-Server beendet - PID %%a
exit /b 0
)