LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 01:09 PM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian,Ubuntu,Finnix,LFS
Posts: 271

Rep: Reputation: 32
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, 01:58 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 790Reputation: 790Reputation: 790Reputation: 790Reputation: 790Reputation: 790Reputation: 790
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, 02:00 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

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

http://www.cis.upenn.edu/~bcpierce/unison/
 
Old 09-03-2010, 10: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, 06:20 AM   #5
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian,Ubuntu,Finnix,LFS
Posts: 271

Original Poster
Rep: Reputation: 32
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 11:58 AM
ntp not synchronizing with internet servers apachenew Debian 9 08-22-2007 10:54 AM
Synchronizing folders aenahel Linux - Server 4 06-15-2007 11:52 PM
Synchronizing Users Across Multiple Servers ghight Linux - Networking 4 08-22-2003 10:35 AM
Software for synchronizing files on web servers josephswagner Linux - Software 2 02-06-2003 01:13 AM


All times are GMT -5. The time now is 08:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration