I installed Ubuntu 22.04 in WSL2 and I want to transfer files from Ubuntu 20.04 that is installed in a same Windows.
At first I send files via mounted Windows files sysmtem.
Rsync in Ubuntu 20.04:
rsync ~/foo /mnt/c/tmp
Rsync in Ubuntu 22.04:
rsync /mnt/c/tmp ~/foo
But with this way permissions are collapsed.
Is there are recommended way to transfer files between two WSL systems?