LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   update file in two server , how to sync it. (https://www.linuxquestions.org/questions/linux-newbie-8/update-file-in-two-server-how-to-sync-it-4175573289/)

sub320 02-26-2016 01:25 AM

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

cliffordw 02-26-2016 02:30 AM

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/).

ondoho 02-27-2016 02:25 AM

i have good experiences with unison. also has a graphical user interface.


All times are GMT -5. The time now is 09:23 AM.