@echo off setlocal :: pull_translations.bat — Pull updated translation JSON files from the VPS :: :: Usage: :: pull_translations.bat :: :: Pulls translations\cards.json and translations\corps.json from: :: root@204.168.193.92:/opt/high-orbit-hu/translations/ :: :: Run from the project root: C:\progik\forditsunk set VPS=root@204.168.193.92 set REMOTE_DIR=/opt/high-orbit-hu/translations set LOCAL_DIR=translations echo [pull_translations] Pulling translation files from VPS... echo [pull_translations] Fetching cards.json... scp %VPS%:%REMOTE_DIR%/cards.json %LOCAL_DIR%\cards.json if errorlevel 1 ( echo [pull_translations] ERROR: Failed to pull cards.json from VPS. exit /b 1 ) echo [pull_translations] OK: translations\cards.json updated. echo [pull_translations] Fetching corps.json... scp %VPS%:%REMOTE_DIR%/corps.json %LOCAL_DIR%\corps.json if errorlevel 1 ( echo [pull_translations] ERROR: Failed to pull corps.json from VPS. exit /b 1 ) echo [pull_translations] OK: translations\corps.json updated. echo [pull_translations] Done. Both files pulled to translations\ endlocal