Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
|
 |
08-31-2010, 12:09 PM
|
#1
|
Member
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287
Rep:
|
Synchronizing 2 servers
The story?
I've got a server here that has a lot of data on it that will be constantly provided with new data. At home I'll have another "server" soon. The intention is that every sunday night or so the second server updates it's files from the first server over my LAN network.
My current server runs on Debian Squeeze. I'm planning to run the second server on Ubuntu.
Short readings on the internet thought me that rsync would be the tool to handle the job? Is this "the best" tool or are there others in the synchronizing-landscape?
Greetings.
Wannes
|
|
|
08-31-2010, 12:58 PM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
rsync is certainly the tool I would first think of for any kind of synchronization. Since it only transfers files that have changed since the last update it can be very good. However, if you were updating multiple database files it would transfer the entire file each time so you might go looking for something else that might do block level transfers instead of file level.
|
|
|
08-31-2010, 01:00 PM
|
#3
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852
|
|
|
|
09-03-2010, 09:38 PM
|
#4
|
LQ Newbie
Registered: Sep 2010
Posts: 18
Rep:
|
I can vouch for Unison too.
It is particularly good in comparison to rsync if you need changes to be synchronised in both directions. (rsync is a one way sync tool afaik)
I believe unison uses rsync technology to transfer files, and I believe that it will also only transfer the part of the file that has been modified - not the entire file.
Unison also keeps databases of the last known state on both machines which means it does not need to send a full list of files over the network for comparison each time making it much faster, and more suitable for use over slower WAN links with larger file systems.
|
|
|
09-07-2010, 05:20 AM
|
#5
|
Member
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287
Original Poster
Rep:
|
It'll be complete files in one direction in a LAN network with a bonded NIC devices. I think rsync will do the job fine after reading this and further readings on the internet.
|
|
|
All times are GMT -5. The time now is 08:00 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
|
|