Import & export WSL distros on Windows 10
We will be looking at three aspects that deal with import and export of WSL distros on Windows 10. They are as follows: You need to have all your installed distros to be up to date via the Microsoft Store.
1] Import WSL distro
Open the Command Prompt with Admin level rights. Execute the following command in Command Prompt: It will list all the install WSL Distros on your computer. To import a WSL distro, execute the following command in Command Prompt:
For example: wsl –import Ubuntu-18.04 C:\Users\Ayush\Desktop\Ubuntu1804Backup.tar The command will restore the backup to the given WSL Distro.
2] Export WSL distro
Open Windows Command Prompt with Administrator permissions. Execute the following command in CMD: It will list all the install WSL Distros on your computer. To export a WSL distro, execute the following command in Command Prompt: For example: wsl –export Ubuntu-18.04 C:\Users\Ayush\Desktop\Ubuntu1804Backup.tar After that, you imported backup will be found in the location you entered in the command.
3] Uninstall imported WSL distros
Open CMD with Administrator permissions. Execute the following command: Next, execute the following command to uninstall the imported WSL distros: Once the process completes, close the Command Prompt. I hope this guide is useful.