blogkeron.blogg.se

Unison synch
Unison synch











unison synch

# Optionally, you can sync specific sub directories only (under the root). # If you don't want to be prompted, and just accept Unison's recommendation: # If you want Unison to run without any user input, try "batch" mode. # If you want one-way mirroring from one replica to the other, specify the source replica using "force" as follows.

unison synch

The following snippet is a Unison profile example. If UNISON variable is not defined, Unison looks for profiles in $HOME/.unison directory by default. You can create a Unison profile anywhere in your system, in which case you must define UNISON environment variable pointing to the directory path to the profile. prf extension) that specifies file sync settings such as directory roots, include/ignore paths or patterns, etc. The first thing to do is to create a Unison profile on both servers which have replicas to sync. Install Unison on Linux For Ubuntu, Debian or Linux Mint: $ sudo apt-get install unisonįor Fedora, CentOS or RHEL: $ sudo yum install unison

#UNISON SYNCH HOW TO#

In this tutorial, I will describe how to synchronize files between two servers with Unison command-line utility. In Linux, Unison is available as a command-line tool as well as a GUI program with GTK+ interface. Unison is available on multiple platforms including Linux, FreeBSD, Windows and MacOS X. Unison is an open-source file synchronization tool that natively supports bi-directional file synchronization. However, these tools are meant for uni-directional file sync (i.e., pushing or pulling incremental updates in one direction), and so two-way sync would require running such tools twice, one for each direction. There are several file mirroring tools on Linux, such as rsync or duplicati. The two replicas are then modified independently, and you want whatever changes made in one replica to be propagated to the other, so that both replicas remain in sync. Suppose you have a collection of files which are replicated on two different servers. How to synchronize files between two servers bidirectionally













Unison synch