

Imagine you have a folder /cygdrive/f/Documents/foo/bar that you want to synchronize, using the roots above. This can be achieved via the path variable. In this case, what works for me is to synchronize smaller subsets of files before synchronizing the full roots. One more thing that is wort mentioning, is that, even with ServerAliveInterval set to a large value, the synchronization may fail whenever there are many files or these a very large due to connection reset by peer. # to prevent the ssh connection from hanging prf file I use for synching my working directory with my server (via ssh): Note that since I store my data in an SD card using the FAT32 filesystem which does not support the same set of permissions as NTFS or EXT, I set “perms=0” (otherwise Unison will complain about permissions).Īnd here’s the. In this case, if by any chance the drive name changes, I am not mirroring things in the opposite direction! (an alternative is to completely disable mirroring)

Note how I name the directories in the two roots in a different way.

Here I am mirroring my /cygdrive/f/Documents directory. unison directory located in your home folder. Here’s an example of the file I use for mirroring my working directory in my SD card (FAT32) with my external hard drive (NTSF) in Windows (using Cygwin). If you want to sync two roots regularly, you should create a prefences file (.prf) file. It allows you to perform local syncronizations, for example between your main hard drive and an external hard drive, or with a remote host by using ssh.
UNISON SYNCH INSTALL
You can actually also install a GUI for Unison (which probably come by default with some pre-compiled binaries, such as the Windows version). There are official Unison releases for several platforms, including Linux and Windows, although in my Windows machine I use Linux’s version through Cygwin. Unison also allows you to syncronize files across different platforms and filesystems. Unlike rsync, Unison makes two-way file synchronization very simple. Unison is a file syncronization software, using the rsync algorithm.
