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
1
vote
0answers
4 views

Unison ignore all files in path except for html files

I want to be able to ignore all files under any directory named build except for .html files. So for example: Ignored: MyProject/build/manifest.xml MyProject/Package1/build/code.java Not Ignored ...
1
vote
0answers
56 views

Make unison delay synchronization until file transfer is complete

I have two physical sites with a very slow link between them. Each site has a Linux (Debian 10) server and all clients on those sites are Windows. I'm using Samba for file sharing within the sites, ...
0
votes
1answer
34 views

unison: two computers, one external hard drive

I'd like to keep a common synchronized folder on two laptops. (With lots of media files and such, so can't use git, but on the other hand, very few changes needing reconciled.) The easiest way to do ...
0
votes
0answers
66 views

Uninstall newer version of Unison and install older version using OS X brew

Running Unison I get the following error: Fatal error: Received unexpected header from the server: expected "Unison 2.51 with OCaml>=4.01.2\n" but received "Unison 2.48\n\000\000\000\017", which ...
-1
votes
1answer
130 views

Has anyone tried to monitor kbfs with incrond?

While I am able to run unison -batch keybase and everything works fine, I tried this in incrontab: /run/user/1000/keybase/kbfs/ IN_ALL_EVENTS flock -n /tmp/synclock unison -batch keybase with the ...
1
vote
1answer
266 views

Linux file/directory ownership: I can cp a file but not backup via unison

I have a question on Linux file/directory ownership that is allowing me to copy a file using cp, but not back it up via the utility unison. The problem appears to be in the change of ownership for a ...
2
votes
2answers
110 views

Can Unison be made to ignore bind mounts or hard links?

I'm looking for the best way to sync my home directory to and from a 120GB USB drive. The catch is that I use bind mounts (which I don't want to be followed) and hard links (which I do want to be ...
1
vote
0answers
66 views

How do I keep two external drives synced in two ways?

I'm running MacOS High Sierra and just got a new 3TB external USB hard drive. On this drive, I have set up one 500GB encrypted MacOS Extended volume. I also have another 500GB portable external hard ...
4
votes
1answer
1k views

Unison not ignoring paths

I'm trying to ignore .git, .bundle and node_module directories from my sync. I've tried a heap of different combinations trying to get it to work but every time I sync I can see all of those ...
3
votes
1answer
177 views

How do you ignore all files but not subdirectories with Unison?

I want to sync the content of all subdirectories of a given root but only a few files in the root itself. To do so I would like to ignore all files using the ignore directive (keeping all ...
0
votes
1answer
108 views

Unison: don't treat root folder deletion as something that needs to sync?

I'm trying to get Unison to sync between two folders, but on one side, if I don't have the existing folder, it tries to delete the other side (the folder with everything in it). So if I have /...
1
vote
1answer
26 views

Prefer the other machine without having to set up a socket?

I use Unison to sync stuff between some Linux devices. I want to have a profile set up where, if I'm running unison from machine A to sync between A and B, I can override my prefer = newer setting and ...
1
vote
1answer
4k views

How do I ignore folders and its subdirectories in Unison sync

I use Unison to sync website projects across my machines, in one of my machines I would like to avoid sycning (both ways)some folders contained with in the folders I watch: /vendor /node_modules /...
2
votes
2answers
55 views

Mirror 2 linux machines

I have a notebook with Fedora 25 and a online server with Fedora 25 too. I want to mirror my notebook with my server in a such way that, if I connect direct on the server with NoMachine, it will be ...
2
votes
1answer
191 views

Using Unison to sync only folders named `src`

I have a laptop which is connected to a cloud workstation. All my compilation happens on the cloud workstation, but I modify files on my laptop. I want to sync files between the two, but I want only ...
0
votes
0answers
419 views

unison-fsmonitor fails on BashOnWindows

When running Unison on BashOnWindows, I receive the following error when trying to run in file watching mode: Fatal error: Filesystem watcher error: unexpected error 22 while adding a watcher The ...
1
vote
1answer
187 views

Unison with macOS and times set to true (times = true)

I am using Unison for a 2-way sync between a MacBook Pro (macOS Sierra) and an external drive (Firewire). I am using the GUI version, Unison 2.48. In the profile .prf I add times = true, however, ...
1
vote
0answers
367 views

Unison sync of sshfs mount - what can go wrong if the connection breaks?

I have a cloud storage server that I would like to sync with multiple computers. I have access via rsync, SFTP, or WebDAV, but no shell access. So I can't run Unison on the server. My first solution ...
2
votes
1answer
3k views

Making unison ignore file property differences

I use unison (the GUI) to synchronize two folders; unfortunately, one of them is a Windows drive mountpoint with properties set to 0777 - and unison shows that as a difference which requires ...
2
votes
0answers
595 views

Unison sync with WD NAS

I am trying to set up a (2-way) sync with a WD mycloud mirror NAS. The clients run Ubuntu, and I thought Unison would be a good way to do this. I mounted the NAS share on the client, using nfs sudo ...
1
vote
2answers
177 views

What happens if shutdown command kills my unison cron job?

I have an Arch linux box at home that I power off quite frequently (the power supply is noisy and it annoys my girlfriend...!). The box has a number of cron jobs running the unison utility, designed ...
2
votes
2answers
478 views

What is the easiest way to keep an Unison profile synchronized across machines that cannot communicate directly

I am using Unison to synchronize some files between my home computer and my work computer. However, the two computers cannot connect to each other directly via ssh so I synchronize via an USB thumb ...
0
votes
1answer
119 views

using unison with bitvise

I am trying to use unison to sync a Windows machine (via ssh, cygwin) with a Windows Server 2012R2 machine (via sshd, cygwin). I would like to switch fully over to using Bitvise Client and Server to ...
0
votes
1answer
88 views

Using unison between two hosts over differents networks

We want to synchronize a directory, called docs between two hosts, called server and laptop, using unison. So we have a unison profile docs.prf that defines the roots and gives a list of preferred ...
1
vote
1answer
495 views

How do I make Unison behave like rsync?

I have two roots, /sync and ssh://bob@remotehost//sync. These roots contain three subfolders: paul, bob and sam. I currently sync them using the following script: rsync -a --delete --delete-excluded -...
2
votes
1answer
2k views

Auto-resolving conflict with unison

I've set up a custom automated sync between 2 folders (in OSX) with unison with the following line: unison folder1 folder2 -batch -debug update+ Which worked fine until I encountered: ...
0
votes
1answer
949 views

Sync with remote encrypted storage

I'm trying to keep a folder tree in sync between several computers. Currently, I'm using unison in a star topology, with a central remote server. I want the data on the server to be encrypted, so on ...
0
votes
2answers
2k views

Can I synchronize Sublime Text?

I would like to synchronize my entire Sublime Text 3 between my desktop and laptop. I use Ubuntu on both machine. I think if I just sync the entire /home/<username>/.config/sublime-text-3 ...
1
vote
1answer
111 views

How to keep two directories on two unconnected machines in sync via emailing of delta-archives

My situation is that I have two directories on two different computers (one Windows machine, OSX machine) and I need to keep the two directories on the two machines in sync (= mirrored), so that they ...
3
votes
2answers
4k views

Sync multiple hosts using unison

I am trying to keep in sync three machines, on one of which I run unison to sync the other two. This 'star' architecture is advertised in the unison manual: Using Unison to Synchronize More Than ...
0
votes
1answer
127 views

How to back up a password database and to keep 15 older versions?

I mainly work on linux at home and on windows at work. I use the open source password manager KeePass and it works great. I back up my document files often using Unison file synchroniser. I use ...
0
votes
1answer
2k views

How can I run a non-service EXE on Windows XP as a service that will always run and automatically restart?

I have an executable (unison.exe in server mode) that I wish to run as automatically starting service on a Windows XP machine. I've installed it using the instsrv.exe and anysrv.exe method (tools ...
2
votes
1answer
210 views

Synchronizing folders, configurations, programs, local server and database on 2 debian machines

I am using debian both on a laptop and inside a virtual machine on another computer. I want to be able to synchronize those 2 systems in both ways so that I can do some work say on the VM, then ...
3
votes
0answers
195 views

Retaining creation date with unison

Is there a way to retain creation dates using unison? I can preserve the modification times, but I also need creation dates. Edit: OS in use are BusyBox (EXT4) and OS X (Extended Journal)
0
votes
1answer
2k views

Unison profiles root/path issues

I am trying to sync two folders with each other (one local, one remote) using unison. If I use a standard command like this.. unison -times /Volumes/My\ HD/Work ssh://myremoteserver//volume1/My\ ...
0
votes
1answer
3k views

ash: command not found

On my NAS I have installed Unison package, which works when ssh'd into the NAS with this $NAS unison -version. However when running the command locally without ssh'ing to the system first using ssh ...
1
vote
1answer
2k views

Errors installing ocaml using homebrew on OS X

I'm trying to install objective-ocaml on my Mac to compile another application (Unison) I would like to install however I'm getting errors doing so. imrans-mac:/ Imran$ brew doctor Warning: You ...
1
vote
1answer
913 views

Backup files from Linux client to Windows Server

I'm trying to backup my files from my Linux box to my Windows Server 2008 as a push, and when I delete them from my Linux box, they remain on my Windows Server. I've found lots of sources that are ...
0
votes
2answers
181 views

two-way sync between mac and unix

I would like to work on a directory on two different macs and have access to a unix server that I ssh into. I would like to just start a script at the end of the day that let's me upload all my new/...
2
votes
1answer
1k views

Will the option NOATIME in /etc/fstab ruin my Unison synchronizations?

I read here in ArchWiki that the option noatime can improve hard disk performance and durability: The use of noatime, nodiratime or relatime can improve drive performance. Linux by default uses ...
0
votes
1answer
489 views

Unison fails to synchronize some git repositories

I use Unison 2.40.65 on Kubuntu 13.04, both computer use ecryptfs to encrypt the home folder. I try to sync my complete home folder to my netbook, I get errors that the temp file disappeared, see ...
0
votes
1answer
2k views

How to use unison to sync files in ext4 filesystem with FAT filesystem? (permission bit)

My machine is linux ext4. I have an external hard drive with FAT. I can syn most of the files without any problem. However, there is always a few files having permission problems. I tried to use ...
10
votes
1answer
6k views

How to make unison ignore all files with .swp extension

How to make unison (file synchronization) to ignore files with .swp extensions? what should i add on the prf file?
0
votes
1answer
448 views

How do I ignore errors with Unison?

I'm trying to synchronize two directories using Unison, however if it encounters a file with an error, then it skips the entire directory! I don't believe it should skip the whole directory, and ...
1
vote
1answer
1k views

How to tell unison the local replica is just local (doesn't matter what hostname)?

I've been having this problem for a while. My unison profile says: root = /Users/mylogin root = ssh://mylogin@mydesktop//home/myloign I run Unison from everywhere in the world to sync against my ...
5
votes
1answer
550 views

Synchronize two directories on linux pc

I need a distributed filesystem (or a synchronization tool) that is capable of keeping a directory synchronized across 4 pc. My requirements are: offline access (data must be available offline on ...
2
votes
1answer
3k views

Unison -repeat watch will only sync when a change is made client side

I have 3 computers, two clients (A,B), and one central server (C), that they both connect to via Unison/ssh, folders are set to -repeat watch so that changes are sent to the server as soon as they are ...
6
votes
1answer
1k views

Stop Excel from changing file contents upon open

I use synchronization a lot on my machines. Excel changes the modification date right at the very moment it opens the file. Then, it changes the contents of the file (I guess to update the statistics ...
13
votes
3answers
6k views

How to use unison's path option with multiple paths?

I want to sync the following locations using unison: /home/user/Audiobooks with /shared/Audiobooks /home/user/Music with /shared/Music /home/user/Podcasts with /shared/Podcasts What would the unison ...
5
votes
1answer
2k views

How to sync only one file type with Unison?

Let's say that I want to sync a folder with unison, but I want to sync only .jpg files. How I could do that?