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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-24-2009, 10:41 AM
|
#1
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Rep:
|
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!
|
|
|
03-24-2009, 12:22 PM
|
#2
|
Member
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147
Rep:
|
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:
|
|
|
03-24-2009, 12:33 PM
|
#3
|
LQ Newbie
Registered: Mar 2009
Posts: 23
Rep:
|
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
|
|
|
03-24-2009, 12:37 PM
|
#4
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Original Poster
Rep:
|
Quote:
Originally Posted by vindoan
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).
|
|
|
03-24-2009, 01:06 PM
|
#5
|
LQ Newbie
Registered: Mar 2009
Posts: 23
Rep:
|
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.
|
|
|
03-24-2009, 01:08 PM
|
#6
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Original Poster
Rep:
|
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?
|
|
|
03-24-2009, 01:18 PM
|
#7
|
LQ Newbie
Registered: Mar 2009
Posts: 23
Rep:
|
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.
|
|
|
03-24-2009, 01:19 PM
|
#8
|
Member
Registered: Jun 2005
Distribution: Various
Posts: 72
Original Poster
Rep:
|
Great, thanks!
|
|
|
All times are GMT -5. The time now is 01:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|