Solved

How to synchronise files between 2 Centos 5 Servers

Posted on 2011-02-22
13
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
13 Comments
 

Accepted Solution

by:
jacw earned 250 total points
ID: 34950636
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
ID: 34950734
Automatic solution please .
0
 
LVL 6

Assisted Solution

by:Ferrosti
Ferrosti earned 250 total points
ID: 34951343
The most comfortable way to go would be 'rsync'. Use it via cron and everything should be fine.
0
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 

Author Comment

by:shaunwingin
ID: 34951462
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
ID: 34952053
A good start would be this tutorial, including its footnotes with further links.
rsync howto
0
 

Author Comment

by:shaunwingin
ID: 34958309
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
 
LVL 6

Expert Comment

by:Ferrosti
ID: 34968424
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
ID: 35099402
A Question, How can one protect against corruption of the data due to rsync?
0
 
LVL 6

Expert Comment

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

Author Comment

by:shaunwingin
ID: 35325188
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
ID: 35503816
I wish to apply points...
0
 

Author Closing Comment

by:shaunwingin
ID: 35503819
Still need to test
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
A look at what happened in the Verizon cloud breach.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

627 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