Skip to content

Instantly share code, notes, and snippets.

View avisek's full-sized avatar
👀
Observing

Avisek Das avisek

👀
Observing
  • Planet Earth
View GitHub Profile
@avisek
avisek / WSL Backup and Restore Guide.md
Last active August 23, 2026 07:41
How I saved my WSL from a bricked Windows with one robocopy

WSL backup and restore guide

Your whole WSL distro is one file: ext4.vhdx. Copy that file, and you have everything. Home dir, installed packages, configs, all of it.

Where the vhdx lives

Store-installed distros:

C:\Users\\AppData\Local\Packages\\LocalState\ext4.vhdx