Rsync files from another server

Discussion in 'Site & Server Administration' started by Talker, Jul 11, 2009.

  1. #1
    Hi,

    I have a task to copy a website from one server to another, this need to be done via Rsync.

    What is the command to copy all files under a folder from one server to another WITHOUT having to install Rsync Daemon on the source server?

    Any help would be highly appreciated.

    I do have this but its not working. I get a connection timed out error.
    rsync -av -e 'ssh -p 65200' 
    username@oldserverhost:/home/old_home/ /home/new_home/
    Code (markup):
    Thanks
    Talker.
     
    Talker, Jul 11, 2009 IP
  2. sahabcse

    sahabcse Well-Known Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Hi

    Try below example

    rsync -r :/home/sahab/ /home/test
     
    sahabcse, Jul 11, 2009 IP
  3. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #3
    I guess that is to restore a saved rsync backup from a rsync server..
    I only want rsync to connect to the source server (that does not have rsync daemon) and copy files under a folder to a folder on the target server.
     
    Talker, Jul 11, 2009 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    You can't connect to a server with rsync that doesn't have rsync installed.

    Sounds like secure copy is what you want instead...

    man scp
     
    digitalpoint, Jul 11, 2009 IP
  5. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #5
    Thanks for your reply shawn, never new you would reply to my thread!!

    I understand what you mean about Rsync.

    Ill check on example of SCP and try it out , thanks again !
     
    Talker, Jul 11, 2009 IP