LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 01:25 AM   #1
sub320
Member
 
Registered: Jan 2016
Posts: 116

Rep: Reputation: 3
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, 02:30 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
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, 02:25 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

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


Reply



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 08:57 AM
Debian file sync from Win2000 FTP server twentyninehairs Linux - Networking 3 07-16-2007 08:56 AM
Changing file attributes automatically on update to a server madtinkerer Programming 3 11-16-2006 06:13 PM
emerge sync (update portage) flebber Linux - Software 10 03-20-2006 06:38 PM
Yum Update complains of missing file to do update, but file exists! davidas Linux - Newbie 0 03-28-2004 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 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
Open Source Consulting | Domain Registration