Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-23-2006, 07:22 PM   #1
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/

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

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


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 AM.

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