How do I backup a WSL instance to a `*.tar` file?

Step 1

Find the name of your instance:

wsl -l -v

learn.microsoft.com/en-us/windows/wsl/basic-commands#list-installed-linux-distributions

Step 2

wsl --export <instance name> $(date '+%Y-%m-%d-%H-%M').tar

E.g.:

wsl --export Ubuntu-22.04 $(date '+%Y-%m-%d-%H-%M').tar

wsl --export stops the instance.
How to start a stopped WSL instance?