Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rsync command on windows? [closed]

I am using flightplan with to deploy my 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's hosts
    local.transfer(filesToCopy, '~/www/');
});

When I run fly default it stops and says

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

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

like image 699
user3151422 Avatar asked May 29 '15 10:05

user3151422


1 Answers

You can install free version of cwRsync :

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

Unzip all files to c:\rsync for example, then add c:\rsync to your path.

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

like image 104
bigben3333 Avatar answered Oct 21 '22 22:10

bigben3333