/**
* How to make backup for Windows Subsystem for Linux?
*/
wsl --export distroName pathfileName.tar.gz
/**
* How to load Windows Subsystem for Linux from backup?
* - backup importing means a new install,
* so you need to an unused distroName and installPath
*/
wsl --import distroName installPath backupPathfileName.tar.gz
You first must export the WSL distribution you wish to clone.
1. wsl.exe --export OriginalDistributionName FileName.tar
You must now import the distribution you just cloned with the following command:
2. wsl.exe --import ClonedDistributionName InstallLocation FileName.tar
You can start the cloned distribution by running the following command:
3. wsl --distribution ClonedDistributionName