LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2013, 05:58 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 485

Rep: Reputation: 29
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...
 
Old 11-17-2013, 09:16 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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.
 
Old 11-18-2013, 08:50 AM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 485

Original Poster
Rep: Reputation: 29
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
 
Old 11-18-2013, 02:35 PM   #4
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 485

Original Poster
Rep: Reputation: 29
is there more to configuring rsync using cygwin than meets the eye? am i missing something crucial?...
 
Old 11-19-2013, 04:59 AM   #5
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 485

Original Poster
Rep: Reputation: 29
is configuring rsync from cygwin any different to a normal linux terminal?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote connection with rsync countrydj Linux - Software 7 11-17-2011 11:53 AM
rsync - Remote to local gabriel01 Linux - Software 3 03-09-2011 09:40 AM
Trying to rsync from remote to local dooley28 Linux - Software 1 09-23-2010 02:03 AM
remote backup with rsync cattien Linux - Networking 1 09-15-2009 01:36 AM
rsync over two remote hosts Meson Linux - General 5 01-12-2008 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration