Solved

How to synchronise files between 2 Centos 5 Servers

Posted on 2011-02-22
13
383 Views
Last Modified: 2012-05-11
Say, I use the machine to store my data e.g. xls, word, txt and other files and wish to synchronise the directories to a 2nd server at a remote location. The specific data files are to stay in sinc with each other.
There is also a MYSQL DB that I would like to synchronise across the two machines.
What can you suggest please?
0
Comment
Question by:shaunwingin
  • 7
  • 4
13 Comments
 

Accepted Solution

by:
jacw earned 250 total points
Comment Utility
o you want a manual or background/automatic solution?  If manual, Beyond Compare 3 by Scooter Software daes a good job i.m.o. with very customisable comparison criteria.  The Pro version has SFTP support.
0
 

Author Comment

by:shaunwingin
Comment Utility
Automatic solution please .
0
 
LVL 6

Assisted Solution

by:Ferrosti
Ferrosti earned 250 total points
Comment Utility
The most comfortable way to go would be 'rsync'. Use it via cron and everything should be fine.
0
 

Author Comment

by:shaunwingin
Comment Utility
Please give me details and example on how to use. Will it give me a status report of sinc status?
0
 
LVL 6

Expert Comment

by:Ferrosti
Comment Utility
A good start would be this tutorial, including its footnotes with further links.
rsync howto
0
 

Author Comment

by:shaunwingin
Comment Utility
I've browsed it. Pls can you help with what file is recommended for a Centos5.5 installation and method of installation.

What specific instructions are needed to execute a rsynch over ssh between 2 servers. 1 directory called "a1" to be kept in sync between the two machines. serv1 and serv2 . How do I get the machines to login to each others rsynch service and keep it up to date? IP addresses are host names a1.dyndns.org a2.dyndns.org

Tx
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 6

Expert Comment

by:Ferrosti
Comment Utility
Your CentOS repository should contain 'rsync'. So you should be able to install it right away using the common CentOS software manager. I am not familiar with this one, so I cannot help you with installing using its installer.

I never give away a single fish if I can show you how to fish. This would end up in a mess as soon as there is something going wrong.
Therefor also have a look at this tutorial: rsync tutorial II
0
 

Author Comment

by:shaunwingin
Comment Utility
A Question, How can one protect against corruption of the data due to rsync?
0
 
LVL 6

Expert Comment

by:Ferrosti
Comment Utility
rsync uses checksums internally, so you should be on the safe side with it.
0
 

Author Comment

by:shaunwingin
Comment Utility
say I've setup a vpn now so essentially servers on a LAN. How do I rsynch a directory called a1 to be kept in synch on two CENTOS servers ip 192.168.10.57 and 192.168.10.58 ? Please give instructions.
0
 

Author Comment

by:shaunwingin
Comment Utility
I wish to apply points...
0
 

Author Closing Comment

by:shaunwingin
Comment Utility
Still need to test
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Creating and Managing Databases with phpMyAdmin in cPanel.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now