This repository was archived by the owner on Jul 11, 2023. It is now read-only.
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
Custom port ? #66
Open
Description
Hi there,
I'm trying to use a custom port for my rsync script.
Here's what I use :
const rsyncArgs = new Rsync()
.flags('avz')
.set('e', `ssh -p 5000`)
.set('progress')
.set('no-motd')
.source(`${directory}/`)
.destination(`${stage.server.user}@${stage.server.host}:${stage.server.directory}`)
const rsync = spawn('rsync', rsyncArgs.args());
And here the command generated by calling rsyncArgs.command()
:
rsync -avz -e "ssh -p 5000" --progress --no-motd /private/var/www/dir user@host:public_html
But my script exits with:
rsync: Failed to exec ssh -p 5000: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(85) [sender=3.1.3]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]
When I run the command in the terminal, everything works smoothly. So the request is generating fine, but isn't running in with the spawn methods...
Metadata
Metadata
Assignees
Labels
No labels