Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This might be a silly question, but I wanted to keep some of my servers clean and prefer not to install any additional software.

But I always thought rsync would copy data over SSH and would not need rsync on the remote end?

/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded     --rsh=/usr/bin/ssh root@server01:/etc /.snapshot/hourly.0/server01
rsync: command not found
share|improve this question

1 Answer 1

up vote 8 down vote accepted

rsync works by doing quick calculations at both ends looking at the timestamps and existence of all the found files in a particular location. Once it does this, it communicates back to the origin rsync about the found list and the origin can then use that information to decide what files it needs to send. That way only the recently modified or new files get transmitted to the other side. The rsync binary on the remote side is responsible for getting the list together of what already exists and then receiving each of the files that need to be transmitted and putting them in place.

You should note that rsync works over more than just SSH. SSH is the default, but other forms of remote login (like insecure rlogin) will work as well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.