LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-23-2006, 07:22 PM   #1
nazs
Member
 
Registered: Apr 2005
Posts: 57

Rep: Reputation: 15
rsync question


Hi All,
I need to use rysnc to transfer files. But I need to use port 2222 instead of port 22. In the following line, how and where would I put the port number?

rsync -az -e "/usr/bin/ssh" /usr/pa/inv/ username@xx.xxx.xx.xxx:/usr/pa/inv/

Thanks,
Nazs
 
Old 10-23-2006, 07:31 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Please have a look at man rsync. You can specify the port on the source or the destination in the URL:
Code:
rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST
rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
You can also specify the port separately:
Code:
       --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).  See also this option in the --daemon mode section.
 
  


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
Rsync Question stefaandk Linux - General 2 05-12-2006 11:12 PM
rsync question juanb Linux - General 10 01-28-2006 03:18 PM
rsync question kpachopoulos Linux - General 3 07-15-2005 03:33 PM
Another Rsync question phatboyz Linux - Networking 2 07-02-2004 08:46 AM
rsync question falco365 Programming 4 05-25-2003 09:24 AM


All times are GMT -5. The time now is 07:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration