Mutagen
Grab the latest binary from here
Make sure you've already set up your SSH config for your remote machine. Here's an example from my ~/.ssh/config
:
Host devbox
HostName 192.168.1.100
User jimbo
Sync files from remote to local:
mutagen sync create \
--name=music-localdev ./localdev \
jimbo@devbox:~/clones/music/localdev --ignore-vcs
Now you can open the local folder with any editor you like.
Port forwarding:
mutagen forward create --name=mysql tcp:localhost:3306 devbox:tcp:localhost:3306
This lets you connect to the remote MySQL server using your local MySQL client.
Using it along with WSL
My quick tips for WSL:
- Treat WSL and Windows as separate systems
- Access WSL files from Windows through the
/wsl
network drive - Avoid using the
/mnt
path in WSL for Windows files - it's slow! Use git or Mutagen instead for better performance