Questions tagged [unison]

Unison is a bidirectional, conflict detecting file-synchronization tool for OSX, 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.

Filter by
Sorted by
Tagged with
0
votes
1answer
100 views

Unison: always use 'copyprog' for updates

I am using Unison to synchronize files between several clients. Each client is identical, meaning that whenever one client updates a certain file, all other clients must be updated consequently. The ...
0
votes
1answer
123 views

How to *install* two specific versions of Unison without installing unison-all or any other version than those two specific versions

Please do not mark as duplicate because somewhere else someone says that installing unison-all will achieve the same. I am not asking "How can I use several versions of Unison in the same machine?". ...
1
vote
1answer
226 views

Can unison be made to preserve file creation dates?

unison is a very useful tool to synchronize filesystems, for instance between different machines. It detects conflicts and asks the user about them before actually copying anything (user then decides ...
2
votes
1answer
546 views

How to move missing files only from source to target folder

It's been many hours reading and reading everywhwere.. testing rsync, Grsync, and Unison.. with no hope! The normal way of rsync copying/synchronizing files between two local folders is to "copy the ...
1
vote
1answer
2k views

How to exclude a sub folder from ignore

I have a build folder that I want to ignore and inside that build folder, I have a generated-src that I don't want to ignore root | - build | - lib | - bin ` - generated-src | - src ...
2
votes
2answers
2k views

How to sync bidirectionaly 2 folders between a Synology Nas and a Debian computer?

I found two starting solutions: use Unison, but I found no way to install this package on a Nas Synology via DSM. use Cloud Station Drive, but Synology only propose packages for Fedora and Ubuntu and ...
0
votes
1answer
537 views

Unable to synchronize files

I am trying to synchronize files between two servers: server1 and server2 I created user and gave him rights to RWX on /var/www then I added the following unison configuration file.. root=//var/www/...
2
votes
1answer
58 views

Pre-Cache unison

I'm using my desktop and a single board cpu (Raspberry Pi 2 - 900 MHz) to sync two very large directories with large files. Often, the files are the same but the filenames are changed. Unison is ...
2
votes
1answer
475 views

Syncing between machines with different versions of Unison

I have a small Debian ARM box with unison-2.40 installed. And a Ubuntu laptop which seems to have unison-2.48 I want to sync them with unison. But the the Ubuntu (which is newer) doesn't seem to ...
1
vote
4answers
2k views

Connection with server lost when using Unison over SSH

I have a file server running Raspbian and a workstation running Ubuntu MATE 16.04. I use Unison to keep my home directory in sync. I’ve set it up to use a SSH connection. The workstation runs Unison ...
3
votes
1answer
284 views

Unison is ignoring local config and overriding remote file permissions

If I modify a local file, unison syncs that file but it removes all permissions on the destination server, leaving only the following permissions: -rw------- My local config contains the switches ...
3
votes
1answer
968 views

unison -addversionno Received unexpected header from the server

Following instructions in How to use multiple versions of unison on one system? I have used unison -addversionno to sync a Debian and Raspbian system, but received this error Contacting server... ...
2
votes
0answers
543 views

Unison and Incron shell script

I have successfully installed unison and incron. I get unison to run just fine. I'm doing this all logged in as root by the way, I figure that's how this will be executed when i'm not logged in. I'm ...
3
votes
2answers
783 views

Unison “Fatal error during unmarshaling”

I have installed unison 2.48.4 on three machines, two running Linux Mint 17 and one Linux Mint 18. I sync via SSH. The two 17's sync with no problem. However the 18 cannot sync with either of the ...
5
votes
2answers
863 views

Unison and extended file attributes

I have two machines, one Debian, one Ubuntu, both on ext4 with extended file attributes enabled in fstab. getfattr and setfattr are installed and work perfectly on both machines locally. However, ...
0
votes
1answer
446 views

Error using Regex with Unison [duplicate]

Using unison for synchronization on mac, I would like to ignore files such as .DS_store in each directory. In my profile file, I put, as described in section "Ignored path" of the page. ignore = ...
1
vote
4answers
2k views

How to install Unison 2.40 on Ubuntu 16.04 xenial (to resolve “Fatal error: Received unexpected header”)

On my raspberry pi computers: pi@mizu:~ $ unison -version unison version 2.40.102 On my desktop ubuntu 16.04 xenial: kayd@Trunk:~$ unison -version unison version 2.48.3 When trying to synchronize: ...
1
vote
1answer
2k views

Ignore a given subdirectory in every directory when syncing with unison

I want to sync my workspace directory with my external backup HD. The thing is that I use ensime and it generates an .ensime_cache subdirectory for every project and I don't want to sync those ...
3
votes
1answer
1k views

Running Unison with incrond (inotify cron daemon)

We'd like to use unison to sync two servers. From the command line and in bash files the following command works fine: unison -batch /var/www/html/test ssh://host-2//var/www/html/test Files are ...
4
votes
1answer
2k views

Unison: Ignore all files with *.ext, except those in a specific subdirectory

I am trying to perform a sync using Unison (2.40.102) where I want to ignore all files with a specific extension, say *.ext, but not ignore the files with this extension if they are in a specific ...
3
votes
3answers
1k views

Unison - login over ssh with different username at remote server

I am trying to set up Unison and am testing the connection. I run this command from the documentation: unison /var/www ssh://192.168.1.102//var/www but it tries to log into the remote server using ...
5
votes
1answer
5k views

Running `unison -repeat watch` yields filesystem watcher error

I'm trying to sync a folder in my host OSX to a VM running Ubuntu. (laravel/homestead). This is the command I run on my host: $ unison ssh://vagrant@192.168.10.10//home/vagrant/www ~/unison/www -...
0
votes
1answer
2k views

Sync muliple PCs with Unison

I need to sync 3 computers between each other in same way as Dropbox does e.g. if file changed on one pc others reflect this change as well. So i have choosen Unison. And found that it works perfect ...
5
votes
1answer
4k views

How to use multiple versions of unison on one system?

I have two machines. One with unison v. 2.40 (Debian Jessie) and a new one (Debian Stretch) where I installed package unison-all, which brought in unison versions 2.32, 2.40 and 2.48. However, I was ...
2
votes
1answer
305 views

How to achieve a bi-directional sync of userN files by user1 while keeping mtimes?

user1 wants to do a bi-directional sync between 2 machines. user1 is a member of group2 and has a non-privileged ssh tunnel. There are lots of files and dirs such as: rwxrwx--- userN group2 enclair/...
2
votes
0answers
615 views

How to enable unison to login with ssh from systemd service unit?

I have a pdf-sync.path file for systemd runnin in user-space (systemctl --user enable pdf-sync.path). Whenever there is a change in the folder that I defined in the path file I want to synchronize ...
0
votes
1answer
428 views

Update Unison in the default Debian repositories

Unison is a cross-platform file synchronisation software. The latest version available on Debian is outdated: Debian has version 2.40.102-2 while other systems have version 2.48.3. The thing is, ...
2
votes
2answers
442 views

Separate bashrc file for ssh sessions to avoid Unison Errors

Recently my Unison started throwing up some strange error whenever I tried to sync between my laptop and my PC. I realized that I had added a line in bashrc that would print my pending tasks whenever ...
0
votes
1answer
532 views

Unison on Ubuntu 14.04

Very simple task at hand here: using unison in a star topology in order to synchronize /home folders across multiple servers. So, for ~/.unison/default.prf on each box... Hub: root = root = ssh://...
1
vote
2answers
1k views

one way file sync with unison or better alternative

I have been collecting a logs for user actions on the network using a program similar to tcpdumps; with every millisecond the file being written to. I am currently using unison to synchronize the logs ...
7
votes
1answer
4k views

unison “end of file exception”

the few last days I am getting this exception when running unison: "End_of_file exception raised in loading archive" (this indicates a bug!) it does not help a bit, I cannot find answer elsewhere on ...
3
votes
0answers
751 views

Unison replacing newer symlinks with older files using the option -force newer

I'm having a problem with Unison and symlinks. I created a test case for making it easier to understand and try this for yourself. First, we create the two directories that will be synced. And some ...
0
votes
1answer
113 views

Sync Pi with local directory

I have setup a Pi with ArchLinux. Now I want to sync one directory called Pi on my local machine with the directory Pi on my Pi. At first I have written a little script that uses rsync but I've run ...
0
votes
1answer
227 views

USB-HDD connected to router “disconnects” automatically

I have a USB-HDD, formatted as ext3 connected to my router, so I can use it as a home-network storage. It works quite well, however, when sending a lot of files to the harddrive (I tried to do a ...
2
votes
1answer
231 views

How do I get the information I need in order to use unison and ssh to synchronise files

I have a desktop at home, and a laptop that I take with me to places away from home, both have Fedora 20 installed. I edit the same files on either machine, and would like to be able to synchronise ...
3
votes
2answers
500 views

How to configure Unison for real peer-to-peer?

I have a handful of devices, and am considering keeping them in sync with Unison. The devices are not running all the time, they are switched off a few hours per day, not necessarily at the same time....
10
votes
5answers
3k views

Rsync that handles moves sensibly

I've been successfully using rsync to synchronize my home directories between my laptop and my netbook (both using ext4 with Linux). My only problem with it is that every now and then I like to ...
2
votes
0answers
487 views

Using Unison with colordiff

I want Unison to show the diffs with colordiff. I’ve got diff = colordiff -u CURRENT2 CURRENT1 | less -R in my config file but it seems like Unison pipes the output to plain less nonetheless, so I ...
2
votes
1answer
525 views

Unison can't synchronize Dropbox configuration (socket files)

I'm using Unison to synchronize my home across several computers, and I've addressed everything but this. The Dropbox configuration is partially skipped, and as a result Dropbox thinks there is no ...
6
votes
1answer
3k views

How to fix unison failing with “Fatal error: Internal error: New archives are not identical” for identical paths?

When trying to sync two paths (one of which is remote) via ssh, unison fails with Fatal error: Internal error: New archives are not identical. while syncing via a network mount works just fine. ...
3
votes
3answers
579 views

Backup and synchronization

I want to synchronize my personal document repository between my different computers in my home. Today this folder is under a dedicated partition of the hard drive of a dual boot workstation. My ...
2
votes
1answer
1k views

Synchronize directory tree with deduplication?

I have two Linux servers that have a large amount of data (1TB+) that need to be synchronized over a slow connection (100 KB/s). A lot of the data overlaps, but are in different locations. I would ...
3
votes
3answers
4k views

Decreasing hard drive sync time with Unison

I'm using Unison to synchronize my music collection to a few different sources, namely a couple computers over SSH and a hard drive. One thing I've noticed is that SSH updates are incredibly fast in ...
3
votes
2answers
862 views

Syncing two computers with unison and ssh

I have two machines, one is a laptop and the other is a desktop computer located in my room at the university behind a firewall. Is there a way I can use unison to synchronize folders between these ...