list before export

1
wsl -l  -v
1
2
3
PS C:\Users\mysel> wsl  -l  -v
  NAME            STATE           VERSION
* Ubuntu-22.04    Stopped         2

delete cache to reduce disk cost

1
rm  -rf /home/ia/.cache/*

export

1
2
wsl.exe --export Ubuntu-22.04  I:\wslback\Ubuntu-22.04.bak

import

1
wsl.exe --import U22 i:\wsl\u22\  d:\wslback\Ubuntu-22.04.bak

run

1
wsl.exe -d U22

list after import

1
wsl -l  -v
1
2
3
4
PS C:\Users\mysel> wsl  -l  -v
  NAME            STATE           VERSION
* Ubuntu-22.04    Stopped         2
  U22             Running         2

access from explorer

1
\\wsl.localhost\U22

add to Windows Terminal

1
2
3
4
5
6
7
8
9
{
	"commandline": "wsl.exe -d U22",
	"guid": "{e5a83caa-4c73-52b3-ae6b-bc438d721ef9}",
	"hidden": false,
	"name": "U22",
	"source": "CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc",
	"startingDirectory": "~"
},