Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 414
  • 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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