LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2016, 02:25 AM   #1
sub320
Member
 
Registered: Jan 2016
Posts: 40

Rep: Reputation: Disabled
update file in two server , how to sync it.


I have two linux server , there are some files under a path ( eg. /tmp/files ) in both server , everything are the same in this path .

The files always to be update , if I would like the files automatically sync to another server once it is updated , so that all files always are the same , would advise what can I do ?

thanks
 
Old 02-26-2016, 03:30 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 481

Rep: Reputation: 179Reputation: 179
Hi,

Are the files being updated on one server only, or on both?

If you need one way sync, look at the rsync command.

For two way sync you might be able to use csync (https://www.csync.org/) or Unison (https://www.cis.upenn.edu/~bcpierce/unison/).
 
Old 02-27-2016, 03:25 AM   #3
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
i have good experiences with unison. also has a graphical user interface.
 
  


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
Update-rc.d and Services not in Sync metallica1973 Ubuntu 2 11-19-2010 09:57 AM
Debian file sync from Win2000 FTP server twentyninehairs Linux - Networking 3 07-16-2007 09:56 AM
Changing file attributes automatically on update to a server madtinkerer Programming 3 11-16-2006 07:13 PM
emerge sync (update portage) flebber Linux - Software 10 03-20-2006 07:38 PM
Yum Update complains of missing file to do update, but file exists! davidas Linux - Newbie 0 03-28-2004 12:14 PM


All times are GMT -5. The time now is 11:00 AM.

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