Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

How to synchronise files between 2 Centos 5 Servers

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
shaunwingin
Asked:
shaunwingin
  • 7
  • 4
2 Solutions
 
jacwCommented:
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
 
shaunwinginAuthor Commented:
Automatic solution please .
0
 
FerrostiCommented:
The most comfortable way to go would be 'rsync'. Use it via cron and everything should be fine.
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
shaunwinginAuthor Commented:
Please give me details and example on how to use. Will it give me a status report of sinc status?
0
 
FerrostiCommented:
A good start would be this tutorial, including its footnotes with further links.
rsync howto
0
 
shaunwinginAuthor Commented:
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
 
FerrostiCommented:
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
 
shaunwinginAuthor Commented:
A Question, How can one protect against corruption of the data due to rsync?
0
 
FerrostiCommented:
rsync uses checksums internally, so you should be on the safe side with it.
0
 
shaunwinginAuthor Commented:
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
 
shaunwinginAuthor Commented:
I wish to apply points...
0
 
shaunwinginAuthor Commented:
Still need to test
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now