How to get rsync command on windows?

I am using Flightplan to deploy a node.js application in production. Here is my flightplan.js file.

var plan = require('flightplan'); plan.target('default', { host: {{host}}, username: {{ username }}, port: '2222', agent: process.env.SSH_AUTH_SOCK }); plan.local(function(local) { local.log('Copy files to remote hosts'); var filesToCopy = local.exec('git ls-files', { silent: true }); // rsync files to all the destination hosts local.transfer(filesToCopy, '~/www/'); }); 

When I run the default checkbox, it stops and says

'rsync' is not recognized as an internal or external command

How can I get the rsync command? I am running windows 8.

+5
source share
1 answer

You can install the free version of cwRsync:

https://www.itefix.net/content/cwrsync-free-edition

Unzip all the files in c: \ rsync, and then add c: \ rsync to your path.

Here is a tutorial on adding a folder to your path on Windows: http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path

+5
source

All Articles