This post mentions simply restoring the WSL directory partially restored WSL, but with some functionality issues. This post gives generic information for how to back up and recover a linux installation. This post says that %appdata% is in fact moved into your Windows.old folder, which is created after reset and contains your "old" files. ) What information might have gotten lost in the first posters experiment? Are there some registry settings or configuration files that would allow simply restoring the Linux root directory (%USERPROFILE%/AppData/Local/lxss) to work?


My question was marked as a duplicate of How to backup (WSL) Linux Subsystem for Windows 10, before system reset or reinstall?.

However that question was only about how to back up the installation--basically tar it and save it somewhere. I explicitly ask about how to restore it.

  • As a side note, I recommend using some configuration management tool like chef to store your WSL configuration as a code. This way you can always nuke your current installation and provision it again on a fresh linux image. – Poma Oct 21 '17 at 18:15
  • @Biswapriyo Please see my edit as to why it is not a duplicate. – abalter Mar 4 '18 at 19:12
  • 1
    You may look at this answer – Jaime Jul 29 '18 at 6:12
  • 1
    @fixer1234 -- can you please remove the flag. As now stated the question is explicitly about how to restore it. Also, the most recent comment links to another answer that is the first I have found that actually addresses that issue. – abalter Jul 30 '18 at 12:54
  • 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.