Transfer data between different WSL instances
Easily transfer data between Windows Subsystem for Linux (WSL) distros installed on a single machine.
The easiest method for transferring data is to create a new directory that sits outside of any distro, but is accessible to all:
mkdir /mnt/wsl/share
From that location, data can be shared between your installed distros.
Beware: The shared directory’s filesystem lives in memory. If you run the wsl.exe --shutdown command in Powershell, all of the data in /mnt/wsl/share will be lost, so only use this method as a temporary repository to facilitate data transfer.
Comments
No comments have yet been submitted. Be the first!