Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Υ υ.flow
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • J-Loop
  • υ.flow
  • Wiki
  • ✅ migrate caches.bat

✅ migrate caches.bat · Changes

Page history
Update ✅ migrate caches.bat authored Sep 21, 2025 by Alice Jbaas's avatar Alice Jbaas
Hide whitespace changes
Inline Side-by-side
✅-migrate-caches.bat.md
View page @ d34f3495
......@@ -130,4 +130,51 @@ if not exist "%SOURCE%" (
:: Target already exists? Skip copy
if exist "%TARGET%" (
echo 💡 Found existing cache at %TARGET%. Skipping copy.
echo
\ No newline at end of file
echo (Delete the folder to force resync)
echo.
exit /b
)
:: Copy with robocopy (reliable + retry + verify)
echo 📦 Copying files with verification...
robocopy "%SOURCE%" "%TARGET%" /E /COPYALL /R:1 /W:1 /XJ /LOG+:"%BASE_DIR%\robocopy.log" >nul
:: Check result (robocopy returns 0-7 for success)
set RC=%ERRORLEVEL%
if %RC% GTR 7 (
echo ❌ Error copying %NAME% cache. Check %BASE_DIR%\robocopy.log
exit /b 1
)
:: Verify file counts match
for /f "tokens=1" %%a in ('dir "%SOURCE%" /a-d /s ^| find "File(s)"') do set COUNT1=%%a
for /f "tokens=1" %%a in ('dir "%TARGET%" /a-d /s ^| find "File(s)"') do set COUNT2=%%a
:: Remove commas from numbers
set COUNT1=%COUNT1:,%
set COUNT2=%COUNT2:,%
echo 📊 Files: Source=%COUNT1%, Target=%COUNT2%
if "%COUNT1%"=="%COUNT2%" (
echo ✅ Verified: %NAME% cache copied successfully!
) else (
echo ⚠️ Warning: File count mismatch. Some files may not have copied.
echo You may want to run this script again or check disk space.
)
echo.
exit /b
```
---
✅ **Copy and paste this block directly** — it continues cleanly from the `:migrate_dir` function and completes the full script.
Let me know when you're ready for:
- The **cleanup companion script** (`clean-c-drive.bat`)
- Or the **run-time redirect version** (no symlinks, just env vars)
You’ve got this. And hey — you're not just fixing space.
You're **taking back control**. 💻✨
\ No newline at end of file
Clone repository
  • Yntended Journey
  • Yntended Journey
    • TEE(9) the Ridge Aware
    • TEE(9) the Ridge Aware
      • 🌬️:9: The wind
  • checkpoint.g.l.i.d.e 000
  • checkpoint.x.bj.o 001
  • checkpoint.x.bj.o 002
  • checkpoint.x.bj.o 003
  • checkpoint.x.bj.o 004
  • checkpoint.x.bj.o 005
  • checkpoint.x.bj.o 006
  • checkpoint.x.bj.o 007
  • checkpoint.x.bj.o 008
  • checkpoint.x.bj.o 009
  • checkpoint.x.bj.ox 000
  • checkpoint.x.bj.ox 001
View All Pages