LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   users etc on remote rsync (https://www.linuxquestions.org/questions/linux-newbie-8/users-etc-on-remote-rsync-4175484937/)

sigint-ninja 11-17-2013 04:58 PM

users etc on remote rsync
 
hi guys,

i have cygwin running on my windows server 2008r2 server, and im trying to copy directories to my centos server using rsync.

the problem is that on my cygwin terminal i am logged in as administrator@cp2008...and my user on the centos server is User@87.212.3.56...im pretty sure that i have a ssh tunnel setup using keys as if i type User@87.212.3.56 it doesnt prompt me for a password.

but when im trying to use rsync commands (not in a script yet, just trying to see if i can get a smaller directory over) i can see that its trying to create a folder with administrator@87.212.3.56...so how do i get around this?

do i have to specify in my script that the rsync commands are being run by User@87.212.3.56 or do i just create a user on my centos box called Administrator...

look i have no problem with sitting down and learning rsync commands etc...i dont expect to be spoon fed...i just want to know what direction i should be going

thanks guys...

evo2 11-17-2013 08:16 PM

Hi,

not sure what the problem is here. Are you aware that you can specify the remote username on the commandline with rsync? Eg
Code:

rsync -auv someuser@somhost:/path/to/remote/dir .
or
Code:

rsync -auv /some/localdir someuser@somehost:/path/to/remote/dir
Evo2.

sigint-ninja 11-18-2013 07:50 AM

ok so i tried:

rsync -auv cygdrive/d/adtdata User@121.5.23.1:home/user/companydata/adt

when i enter i get

rsync; change_dir /cygdrive/d//cygdrive/d failed: no such file or directory (2)
rsync; change_dir #3 /home/user/companydata failed: no such file or directory (2)

what have i got wrong???

any ideas, please

sigint-ninja 11-18-2013 01:35 PM

is there more to configuring rsync using cygwin than meets the eye? am i missing something crucial?...

sigint-ninja 11-19-2013 03:59 AM

is configuring rsync from cygwin any different to a normal linux terminal?


All times are GMT -5. The time now is 04:52 AM.