/**
* How to make backup for Windows Subsystem for Linux?
*/
wsl --export distroName pathfileName.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