Skip to main content

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
0 answers
16 views

Unison - Ignore Path, File, Name

I have unsion installed on two servers, server1.local and server2.local. The config file is stored on server1.local. I can successfully sync the files between the two servers. However, I have a path ...
pallago's user avatar
  • 101
4 votes
4 answers
724 views

Unison via cron, how to deal with one job still running as the next one starts

I have a setup in which I sync files between two Linux servers using Unison over an SSH connection. This is implemented by running the following command via cron: unison -auto -batch PROFILE Changes ...
user149408's user avatar
  • 1,343
1 vote
0 answers
5k views

A fast way to sync local files with Proton Drive? (here exploring rclone)

I want to create a sync system between newly available Proton Drive and my local filesystem. However, since it's very new, it's only barely supported by rclone (I'm lucky to be on openSUSE Tumbleweed ...
Ul Tome's user avatar
  • 117
0 votes
0 answers
183 views

Best way to run unison with rclone: several configs in parallel or all in one?

I'm using rclone to mount my cloud (Proton Drive, new arrival) on openSUSE Tumbleweed. I want to sync my local files with the mounted files via unison. I've never used unison before, so I have two big ...
Ul Tome's user avatar
  • 117
0 votes
1 answer
164 views

Unison, systemd and logrotate

I have unison running under systemd to keep my local and remote NASs in sync. The systemd config is thus: [Unit] Description=NAS Unision service After=network.target StartLimitIntervalSec=0 [Service] ...
Dobbo's user avatar
  • 124
1 vote
0 answers
59 views

Merge two folders with conflict resolution strategy

When I merge two folders with rsync, if files of the same name exist in the "target" directory, those will be kept unconditionally. I can use unison which is a bit more advanced, but as far ...
a.ilchinger's user avatar
0 votes
1 answer
368 views

Best way to compare/diff two big directories that are backups (by `rsync -aAX`) of a boot partition from another computer?

[ EDIT: Answered my own question. Used unison and some hacky post-processing ( copy-pasted the log output of unison, tweaked it in my text-editor with multi-selection editing, then did some shell ...
dwawlyn's user avatar
  • 23
1 vote
1 answer
185 views

Using Unison to sync my desktop computer with a container in the cloud

I'd like to use Unison to sync a directory between my desktop computer and a container that lives in the cloud. I have this kind of working with Unison, but the problem I'm seeing is that every time I ...
Douglas's user avatar
  • 121
2 votes
1 answer
497 views

Unison over SSH, connection with server lost although SSH works

I have just rebuilt my file server after it suffered disk corruption. When I tried to re-sync data using Unison, I got the error message Lost connection with the server I retried from the command ...
user149408's user avatar
  • 1,343
1 vote
0 answers
545 views

How do you follow a symbolic link under a root?

I am syncing two machines using Unison: root = /home/luserface root = ssh://192.168.1.168/ I have a subdirectory "Foo" under that home, and it's a symbolic link. I have follow = Path Foo ...
user1698584's user avatar
7 votes
4 answers
2k views

Centralized $HOME for roaming devices - sync instead of NFS?

For over a decade now I have been working in a full Debian environment in my small office (currently 1 server, 7 users, 3 desktops, 4 laptops). Authentication is based on Kerberos, user profiles are ...
zenlord's user avatar
  • 728
2 votes
0 answers
229 views

How to use unison-jz inside a bash script?

unison-jz works well on a bash command-line but not inside a script. It seems that inside the script, it falls back to the regular unison command. Can someone tell me how to use unison-jz inside a ...
dani's user avatar
  • 21
0 votes
1 answer
236 views

Ubuntu Unison: filter everything except multiple files

I want to synchronize two computers that are similar and update just a few files. Therefore I would like to perform a Unison and ignore everything except a list of files in different paths. Something ...
Diewo Dasso's user avatar
1 vote
0 answers
521 views

How to sync specific files with unison?

I originally posted on SO but i realized this might be more suited here. I'm using unison on Linux (Manjaro) to keep some files synced between two local folders but I'm running into a problem. I have ...
Nathan Furnal's user avatar
1 vote
1 answer
281 views

Unison with Raspbian file server no longer works after upgrading my laptop to Ubuntu 20.04

I have a file server running Raspbian 9, and use Unison over SSH to sync my home dir between these two. This has worked well for the two years I was on Ubuntu 18.04, but after upgrading to Ubuntu 20....
user149408's user avatar
  • 1,343
1 vote
0 answers
111 views

Linux snap unison-jz package ssh connection always prompts for passphrase

In looking toward upgrading to Ubuntu 20.04.1, I think I will have some machines on 18.04 for a while. I decided to install the unison-jz snap to prevent a version mismatch. Even though I have an ...
Daniel Doherty's user avatar
0 votes
1 answer
459 views

How do you keep unison from syncing large files?

I am using unison file syncing software and I am aware of the config that ignores syncing files with specific regex or name. But is there a way to block syncing of large files e.g. larger than 10 MB? ...
mtk's user avatar
  • 27.8k
4 votes
2 answers
798 views

How do I run unison between Ubuntu and CentOS 7

I am trying to sync data between an Ubuntu instance and a CentOS 7 instance. It's like a bi-directional rsync so I thought unison would be the best tool. I installed it on both instances but when I ...
jss367's user avatar
  • 195
1 vote
0 answers
800 views

Unison and `prop` files

Sometimes, when one syncs between two machines in unison there are prop files appearing all over the place. This happens because the timestamps of the to-be-synched files, obviously don't match. A ...
hal's user avatar
  • 201
6 votes
5 answers
4k views

Unison and version/compiler conflicts

I have two machines that one runs Ubuntu 18.04 and the other one Ubuntu 20.04. I want to use Unison to sync files between them but there are some issues. Firstly, because I sync with another machine ...
hal's user avatar
  • 201
0 votes
1 answer
444 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 ...
pbillen's user avatar
  • 103
0 votes
1 answer
850 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?". ...
Mephisto's user avatar
  • 1,097
3 votes
1 answer
1k 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 ...
Dalker's user avatar
  • 1,662
2 votes
1 answer
3k 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 ...
OpenSourceMan's user avatar
1 vote
1 answer
4k 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 ...
Baptiste Pernet's user avatar
3 votes
3 answers
3k 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 ...
Klemart3D's user avatar
0 votes
1 answer
1k views

Unable to synchronize files

I am trying to synchronize files between two servers: server1 and server2.  I created a user and gave him permission to read, write and execute (rwx) on /var/www, and then I added the following Unison ...
Noel Alex Makumuli's user avatar
3 votes
1 answer
136 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 ...
Miati's user avatar
  • 3,150
2 votes
1 answer
1k 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 ...
interstar's user avatar
  • 1,077
1 vote
5 answers
7k 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 ...
user149408's user avatar
  • 1,343
3 votes
1 answer
626 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 ...
Jordan's user avatar
  • 141
3 votes
1 answer
2k 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... ...
Frank Breitling's user avatar
2 votes
0 answers
963 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 ...
aibarra's user avatar
  • 121
6 votes
3 answers
5k 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 ...
mathstranger's user avatar
5 votes
2 answers
2k 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, ...
zero gravitas's user avatar
0 votes
1 answer
1k 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 = ...
Smilia's user avatar
  • 310
1 vote
4 answers
3k 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: ...
kay_D's user avatar
  • 113
1 vote
1 answer
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 ...
Jeff's user avatar
  • 169
3 votes
1 answer
2k 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 ...
IT-Smart's user avatar
4 votes
1 answer
4k 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 ...
blsqr's user avatar
  • 43
3 votes
3 answers
3k 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 ...
pekasus's user avatar
  • 185
6 votes
1 answer
8k 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://[email protected]//home/vagrant/www ~/unison/www -...
Martín Peverelli's user avatar
2 votes
2 answers
5k 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 ...
Demontager's user avatar
7 votes
2 answers
6k 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 ...
Frigo's user avatar
  • 232
2 votes
1 answer
384 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/...
tuk0z's user avatar
  • 549
2 votes
0 answers
1k 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 ...
Cutú Chiqueño's user avatar
0 votes
1 answer
496 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, ...
LaX's user avatar
  • 437
2 votes
2 answers
808 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 ...
shivams's user avatar
  • 4,585
0 votes
1 answer
578 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://...
pdm's user avatar
  • 165
2 votes
2 answers
2k 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 ...
Muneer's user avatar
  • 142