gulp-rsync icon indicating copy to clipboard operation
gulp-rsync copied to clipboard

Doesn't work on windows error code 1

Open c-hris opened this issue 9 years ago • 2 comments
trafficstars

My configuration file is: var gulp = require('gulp'); rsync = require('gulp-rsync'); gulp.task('rsync', function() { return gulp.src('_site/**') .pipe(rsync({ root: '_site', hostname: 'ftp.domain.com', username: '[email protected]', destination: 'public_html', incremental: true, recursive: true, compress: true, times: true, progress: true, exclude: [] })); });

And this is when I run the task: [21:51:54] Starting 'rsync'... [21:51:57] gulp-rsync: Starting rsync to [email protected]@ftp.web.com:/pub lic_html... [21:51:57] gulp-rsync: 'rsync' is not recognized as an internal or external comm [21:51:57] gulp-rsync: [21:51:57] gulp-rsync: perable program or batch file. [21:51:57] 'rsync' errored after 2.99 s [21:51:57] Error in plugin 'gulp-rsync' Message: Error: rsync exited with code 1 at ChildProcess.<anonymous> (c:\Users\chris\desktop\fido\node_modules\gu lp-rsync\rsync.js:110:17) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:818:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) [21:51:57] gulp-rsync: Completed rsync.

c-hris avatar Nov 24 '15 03:11 c-hris

Any suggestions?

c-hris avatar Dec 01 '15 20:12 c-hris

Do you have rsync installed? It is not a native windows command.

You can use Cygwin to get unix commands for windows. Dont forget to update your PATH.

dkesberg avatar Dec 16 '15 11:12 dkesberg