Rsyncing using cygwin rsync from windows command line

I am pushing a local file to a folder in a remote location using cygwin rsync from a windows command prompt.

Next command

D:\My Folder>C:/cygwin/bin/rsync.exe  -avh data.csv ec2-user@someserver.com::~"overhere/"

returns an error, " failed to connect to someserver.com : connection timed out"

When I try to execute the following command to put the file in the root folder of the remote location,

D:\My Folder>C:/cygwin/bin/rsync.exe  -avh data.csv ec2-user@someserver.com~

he says " sending incremental file list", but I can’t find the file in the root folder in the remote location.

What am I doing wrong?

+4
source share
1 answer

-, , , , someserver.com, rsync. :: rsync rsync, . : rsync .

rsync.exe , rsync.exe -avh data.csv c2-user@someserver.com~ data.csv ec2-user@someserver.com~.

, :: rsync , /etc/rsyncd.conf ::. , ec2-user@someserver.com: ~/overhere/ , ec2-user@someserver.com:: MODULE . , rsync, . SSH-.

, : D:\My Folder > C:/cygwin/bin/rsync.exe -avh data.csv ec2-user@someserver.com: overhere/ overhere ec2- someserver.com, data.csv .

+2

Source: https://habr.com/ru/post/1544882/


All Articles