Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.
Not only can Unison sync between Windows and Unix ( OSX, Solaris, Linux etc.) systems, it also unrestricted in terms of which system can be the host.
Common uses include syncing configuration files, photos, and other content.
# pacman -S unison
This provides the unsison GTK2 frontend.
In order to use unison you need to create an profile, you can do this with a GUI or by manually creating a profile in Template:Filename.
If you want to use the GUI, run:
Else edit the default config file:
# nano ~/.unison/default.perf
First we define the root of what you want to sync:
Then we define the root where we sync it too:
Optionaly, you can give arguments to ssh:
Now we are going to define with dirs and files we want to include in the sync
# dirs path=Documents path=Photos path=Study # files path=.bashrc path=.vimrc
You can also define which files to ignore:
ignore=Name temp.* ignore=Name .*~ ignore=Name *.tmp
For further references check the unison documentation.
When your profile is setup you can start syncing:
$ unsion <profilename>
And select the profile. Unison has a nice interface where you can view the progress and changes.