LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-24-2009, 10:41 AM   #1
crontab
Member
 
Registered: Jun 2005
Distribution: Various
Posts: 72

Rep: Reputation: 15
Is there an advantage to running rsyncd vs. using ssh?


Hi, all

Just like the subject says. From what I've been able to tell by searching the forums, there's some (slight?) overhead when using ssh instead of running rsyncd? I'm looking to copy a few gigs worth a night (over gigabit ethernet), that's why I'm concerned enough to ask.

Thanks!
 
Old 03-24-2009, 12:22 PM   #2
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
From what I've noticed there is no difference. Not noticeable at least. Probably it differs when dealing with file differences and overwrites.

May be you could copy a smaller data-set and time it using:

Code:
time rsync ...
 
Old 03-24-2009, 12:33 PM   #3
vindoan
LQ Newbie
 
Registered: Mar 2009
Posts: 23

Rep: Reputation: 17
rsync's can copy differential files. If you have some have files that are replicated on two machines, then using rsync has advantages. Of course, if all the files exist only on the source machine, then rsync loses its advantage.

Check out the rsync tips and tricks http://sial.org/howto/rsync/

Cheers
 
Old 03-24-2009, 12:37 PM   #4
crontab
Member
 
Registered: Jun 2005
Distribution: Various
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vindoan View Post
rsync's can copy differential files. If you have some have files that are replicated on two machines, then using rsync has advantages. Of course, if all the files exist only on the source machine, then rsync loses its advantage.

Check out the rsync tips and tricks http://sial.org/howto/rsync/

Cheers
Sorry, I didn't realize the ambiguity in my post until just now. Specifically, what I mean is rsync to a server that is running the rsync daemon (on port 873) versus one that isn't (and it uses a listening ssh daemon instead).
 
Old 03-24-2009, 01:06 PM   #5
vindoan
LQ Newbie
 
Registered: Mar 2009
Posts: 23

Rep: Reputation: 17
The big advantage of running as a daemon comes when you want to constantly maintain a sync between two machines. The caching system of rsync is enabled while running as a daemon. For this reason, busy sites is recommended to run rsync as a daemon. Also, the daemon mode makes it easy to limit the number of concurrent connections.
 
Old 03-24-2009, 01:08 PM   #6
crontab
Member
 
Registered: Jun 2005
Distribution: Various
Posts: 72

Original Poster
Rep: Reputation: 15
Ah, I see. In this case, it's backups being copied once a night.

If you use the daemon will the connection be encrypted, or is it sent on the clear?
 
Old 03-24-2009, 01:18 PM   #7
vindoan
LQ Newbie
 
Registered: Mar 2009
Posts: 23

Rep: Reputation: 17
You can setup public keys to share between servers for encryption. The tips and tricks link in my previous posts gives you examples of how to do that.
 
Old 03-24-2009, 01:19 PM   #8
crontab
Member
 
Registered: Jun 2005
Distribution: Various
Posts: 72

Original Poster
Rep: Reputation: 15
Great, thanks!
 
  


Reply



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
Advantage in running a virtual machine satimis Linux - Software 10 05-14-2009 07:55 PM
Which is quicker - rsyncd or NFS? brooky9999 Slackware 3 02-11-2008 09:47 PM
rsyncd and ntpd in xubuntu 7.10 v8hadas Ubuntu 1 02-06-2008 09:21 AM
Where is rsyncd.conf klemen Slackware 2 03-08-2005 09:14 AM
rsyncd bind to a interface Greenpie Linux - Networking 1 10-22-2004 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration