Install VSCODE (Visual Studio Code) Sync-Rsync on Windows 10 Using WSL (Windows Subsystem for Linux)
Edited by Doug Collins, Patrick Murphy, Maria Quinney, Nathan eddings
First I tried using the vscode "Remote Workspace" extension but it has a fatal flaw. You cannot search local files!! I was warking on a Laravel Framework based app and it was a nightmare to find what I was looking for sometimes without the ability to search through all the files for what I was looking for. (Yes I lose track sometimes... getting too old).
Next I was synchronizing between windows 10 and my linux dev test environment using the SFTP extension but it kept missing files and making mistakes. I knew that rsync was completely reliable so I found an extension to do that but the setup WAS NOT STRAIGHT FORWARD at least for me. So I decided to document what I did for others ( YOU! ). I hope this helps.
First you will need to make sure you have Rsync installed on both Windows 10 and Linux.
Install Rsync on Linux
This is easy. If you are using a different Linux distro you will need to adapt.
- 1Type "rsync" on your command line and see if it is already installed
- 2If not, type either "yum install rsync" for Centos or "sudo apt-get install rsync" for Ubuntu.
Install Rsync on Windows 10 by Enabling WSL (Windows Subsystem for Linux)
If you haven't heard of WSL or used it you are in for a real treat! It opens a whole new world running in my base Unbuntu on my windows 10 laptop. I can run and code all kinds of things that were quite frankly very hard or messy before. Its not hard to install.
Instead of writing out the instructions again I will refer you to [these instructions for setting up WSL https://medium.com/hugo-ferreiras-blog/using-windows-subsystem-for-linux-for-data-science-9a8e68d7610c], BUT STOP WHEN IT STARTS ASKING YOU TO INSTALL ANACONDA. You won't need that for this application.
Recent edits by: Maria Quinney, Patrick Murphy, Doug Collins