You are not logged in.
Pages: 1
What would be the command to sync from the source of an sftp server (port 2222) to a directory on my hard drive and vice versa?
Right now I just use sshfs first and then rsync, but I was wondering if there is an easier way.
Offline
what does:
rsync -a --port 2222 user@host:/src/dir /dst/dir
and
rsync -a /src/dir --port 2222 user@host:/dst/dir
do?
Offline
--port 2222 doesn't work so it tries 22 and times out.
Offline
Check the man page. The correct syntax is --port=PORT.
M*cr*s*ft: Who needs quality when you have marketing?
Offline
I read the manpage:
--port=PORT
This specifies an alternate TCP port number to use rather than
the default of 873. This is only needed if you are using the
double-colon (::) syntax to connect with an rsync daemon (since
the URL syntax has a way to specify the port as a part of the
URL).
Offline
my bad ... try:
rsync -a --rsh='ssh -p2222' user@host:/src/dir /dst/dir
Offline
Pages: 1