LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2010, 12:09 PM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
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
 
Old 08-31-2010, 12:58 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
Old 08-31-2010, 01:00 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Unison is another good option.

http://www.cis.upenn.edu/~bcpierce/unison/
 
Old 09-03-2010, 09:38 PM   #4
James259
LQ Newbie
 
Registered: Sep 2010
Posts: 18

Rep: Reputation: 0
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.
 
Old 09-07-2010, 05:20 AM   #5
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Synchronizing DNS Servers - automatically create new zones assi Linux - Networking 3 03-21-2009 10:58 AM
ntp not synchronizing with internet servers apachenew Debian 9 08-22-2007 09:54 AM
Synchronizing folders aenahel Linux - Server 4 06-15-2007 10:52 PM
Synchronizing Users Across Multiple Servers ghight Linux - Networking 4 08-22-2003 09:35 AM
Software for synchronizing files on web servers josephswagner Linux - Software 2 02-06-2003 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:00 PM.

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