Setting up Rsync on Windows
Last updated
Was this helpful?
Last updated
Was this helpful?
At the time of writing this how-to, to use the feature we require the use of common Unix utility called to manage the local directories for each Sym which we refer to as "semi-virtual" workspaces.
Now, we're aware that most of the Symitar developers out there are on a Windows workstation and rsync
isn't something that's natively available. Sure there's technically a way to get it running using Windows binaries but fortunately for us Microsoft gave us the ability to install a Linux distribution of our choosing through something called .
Already have WSL working on your machine? Feel free to skip down to if you already have a Linux distribution created via WSL or if you're comfortable with handling the deps yourself.
We recommend you follow the latest installation guide, , by Microsoft. The distribution you choose shouldn't matter as long as it comes with rsync
already installed.
In order to not prompt you 1,000 times while we manage the synchronization between your Remote Sym and local directory, we use another popular utility called . The following steps walk you thought how to set this up on Ubuntu.
Using , make sure your sytem has been updated with the lastet packages via the following commands:
First make sure you're in your wsl
instance:
Next, from the $
prompt, go ahead and update your apt
packages:
After typing in your Ubutu user password, you should see something like the following:
Finally run sudo apt install sshpass
(if you've already installed, the output will look similar to the following)
After installation or if you have an existing WSL distribution you're working with, here are the simple commands to check if you meet the dependencies.
Run which rsync
to confirm it exists in your /bin
directory.
Run which sshpass
to confirm it exists in your /bin
directory.
wsl
command from a PowerShell prompt in Windows 11.sudo apt update
command within a WSL Ubuntu instance.sudo apt update
on WSL Ubuntu instance.sudo apt install sshpass
on WSL Ubuntu instance.which rsync
on a WSL Ubuntu instance.which sshpass
on a WSL Ubuntu instance.