LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync over ssh (https://www.linuxquestions.org/questions/linux-software-2/rsync-over-ssh-450938/)

mattsoftnet 06-02-2006 11:33 AM

rsync over ssh
 
I need to copy 10gb of files from one server to another. this is what I've tried:

rsync -a -e ssh schfree:xxxxxxxxx@65.98.xxx.xxx:/home/schfree/private_html /home/schfree/private_html

but I can't get it to work. I get this error:

ssh: schfree: Name or service not known
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)

Aeiri 06-02-2006 01:43 PM

Why not just use SCP (SSH Copy)?

Code:

scp -r user@host:/home/schfree/private_html /home/schfree/private_html

mattsoftnet 06-02-2006 01:55 PM

thanks! looks like it's working good.

will that overwrite files that are already on the destination or will it skip those? I also noticed it doesn't show what directory it's in. but still, it's working :-D


Quote:

Originally Posted by Aeiri
Why not just use SCP (SSH Copy)?

Code:

scp -r user@host:/home/schfree/private_html /home/schfree/private_html



All times are GMT -5. The time now is 05:55 PM.