A little background is needed on that one.

Currently, I have a FreeBSD laptop, and a Windows 10 desktop. I’m not the only user in the house, so i had to make consessions. ๐Ÿ˜†

Anyway, i’m using VirtualBox to have a Linux useland on FreeBSD and I wanted to migrate this VM to the windows Host.

My first idea was, of course, to use rsync. Does rsync exists on windows ? well, nope. BUT W10 have a nice feature, WSL.

WSL is the linux subsystem which basicly is ubuntu, And it happens to be shipped with rsync ! ๐Ÿ˜Ž

Last thing to do is to understand how to access the Windows filesystem from WSL. C:\ is auto mounted to /mnt/c/ in WSL.

in the end, from the WSL commandline, you can run

rsync -azP user@192.168.x.x:~/path/to/files/* /mnt/c/Users/<user>/target/ 

and Voila !