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
15 votes
5 answers
10k views

Synchronizing very large folder structures

We have a folder structure on our intranet which contains around 800,000 files divvied up into around 4,000 folders. We need to synchronize this to a small cluster of machines in our DMZs. The depth ...
MightyE's user avatar
  • 251
8 votes
1 answer
1k views

Is there a global config file for Unison synchronization tool?

I'd like all my unison profiles to have merge = Name * -> meld CURRENT1 CURRENT2 diff = /usr/bin/meld CURRENT1 CURRENT2 confirmmerge = true as options. I know I can add these options to each .prf ...
mp04's user avatar
  • 217
5 votes
4 answers
762 views

Solution for two-way file-system transparent solution

I need to implement some sort of HA setup where 2 servers need to be able to always be in sync, no matter on which one you write on. The DB part can be covered by a master-master replication setup. ...
cbaltatescu's user avatar
5 votes
3 answers
4k views

lsync, unison or some other inotify auto-syncing tool..?

I have an app farm which generates thumbnails and makes them available to a web server farm using nfs. However the performance is so poor so I am going to make a local copy of the files on each web ...
Tom's user avatar
  • 11.4k
4 votes
3 answers
6k views

Remotely use root over ssh for unison

I'm a little confused on how to run unison to sync files with group and owner attributes on an ubuntu system, as you need to be root. But I need to do this remotely and automated. I know I can set up ...
Elgoog's user avatar
  • 225
3 votes
3 answers
5k views

Run unison in background on startup?

I'm running Debian 6 64bit. What I'm trying to do is run Unison on startup to constantly monitor files on the LAMP server I have running on my VM and sync that with the VM Shared folder. while true ...
mawburn's user avatar
  • 187
3 votes
2 answers
838 views

Using Unison / rsync over SSH to synchronize sites where full file system access is required yet root login is disabled

Assume two sites A and B with file server at either end. The contents of /storage should be synchronized between the sites, preserving ownership and permissions. There's no all encompassing group that ...
datenwolf's user avatar
  • 299
3 votes
1 answer
2k views

Linux bidirectional file sync over a WAN with immediate/incremental syncing

Does anyone know of a solution that lets you sync files bidirectionally over a WAN, but also syncs immediately/incrementally? Basically Unison is perfect for the file syncing, but it doesn't sync ...
AndyC's user avatar
  • 233
3 votes
0 answers
969 views

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

I am syncing a local directory (say "/local") with a cloud storage server using Unison. The cloud storage is mounted to, say, "/mnt" via sshfs (with no-cache option), and I sync the two directories /...
André's user avatar
  • 131
2 votes
2 answers
5k views

how i can disable delete file option in unison sync tool?

i want to disable delete option of unison in other word i want unison tool always copy file [don't delete anything]. I read manual but i can not find what i need . for example we have two folder ...
Eng Al-Rawabdeh's user avatar
2 votes
3 answers
3k views

sync a directory between OSX and Ubuntu

I need a good way to sync a directory between my OSX 10.6 laptop and my Ubuntu Desktop. Dropbox would obviously be a great choice, however the directory I need to sync is owned by root on both ...
Erreth's user avatar
  • 71
2 votes
1 answer
3k views

Installing unison on Redhat

I can't seem to manage to install unison on red hat 7.2 tried multiple tutorials such as this one http://www.tecmint.com/file-synchronization-in-linux-using-unison/ I Have epel enabled But: sudo ...
Boaz's user avatar
  • 415
2 votes
2 answers
2k views

Watching for Unison errors

We've implemented a folder sync across two servers sitting in two different data centres using Unison. It's crucial for us that this folder sync work as expected as our SLAs depend on the data being ...
Mayuresh Walke's user avatar
2 votes
1 answer
467 views

Create SSH user for Unison with the fewest rights

I would like to share a directory on my server so that a colleague can synchronize it via Unison (two ways synchronization). I don't want him to be able to read files on the server via ssh access. It ...
br0ken.pipe's user avatar
2 votes
1 answer
1k views

Getting a simple list of changed files from unison

I have a filesystem that is changed on two servers and also needs to be replicated to Amazon S3. Until recently, syncing the filesystem between the two servers using Unison, and then copying to S3 ...
jaygooby's user avatar
  • 324
2 votes
1 answer
736 views

Unison File-Synchronizer

I currently have Unison installed as a one way sync (mirroring) between a CentOS/Win7 box. When configured as a one way sync what happens if I change a filename on the source box? Will unison delete ...
Nick M.'s user avatar
  • 371
2 votes
2 answers
280 views

Boot and/or synchronise linux image from network

I'm looking for a solution (or at least for some guide/pathway/manual) to boot AND SYNCHRONISE Linux images from network. I already understand how network boot (PXE, DHCP, TFTP) works. In my ...
Andrey Sapegin's user avatar
2 votes
3 answers
860 views

Recommended networked file system for web servers?

If I have two web servers, what would the best way to keep their files in sync? Unfortunately the sites themselves cannot be altered significantly. Most of them are Wordpress based, but there are ...
Nick's user avatar
  • 287
2 votes
1 answer
3k views

Is there a way to replicate a very large file shares in real-time?

I have an hourly cron job that copies about 40GB of data from a source folder into a new folder with the hour appended on the end. When it's done, the job prunes anything older than 24 hours. This ...
fsckin's user avatar
  • 583
2 votes
1 answer
1k views

Unison / file syncing between servers without using root account

I have setup 3 servers one with a load balancer and the other 2 will host the websites files and I have a replicated MySQL database on both too. I have installed ispconfig on both and it's set to ...
Kravitz's user avatar
  • 167
2 votes
1 answer
238 views

Graceful shutdown of unison file synchronizer

We have a process that runs nightly on multiple linux and Darwin (Macintosh) systems to backup filesystem objects. We are also running unity file synchronization with the -repeat=watch option, so ...
Dennis 's user avatar
  • 188
2 votes
0 answers
877 views

Delete my unison folder cant find how to sync again all

I run unison sync and it works perfect, but accidentally dropped the folder and now I cannot recover it. I tried to run unison again, but it returned Nothing to do: replicas have not changed since ...
Kross's user avatar
  • 21
2 votes
1 answer
647 views

How can I tell unison to first delete files and then to copy changed ones?

Unison sorts changes in order to first add new files and then to delete removed files. When I use it to synchronize 2 USB drives, I can have problems with that if there's no room enough in the drives ...
Luca Borrione's user avatar
2 votes
0 answers
3k views

Unison synchronization problem. Roots are not identical after synchronization [closed]

When I synchronize two folders using Unison, only one of the roots seems to be affected. Below are all the information I would think is necessary to figure out why it is working like it is. I'm using ...
Deleted's user avatar
  • 1,832
1 vote
1 answer
2k views

unison-fsmonitor doesn't detect any changes

I've just compiled unison 2.48.4 for my own. It works perfectly after normal call but unison-fsmonitor doesn't deect any filesystem changes and doesn't synchronize anything. Filesystem is EXT4. -debug ...
ardabro's user avatar
  • 187
1 vote
1 answer
5k views

Is there anything more than `fastcheck` to speed up Unison?

I routinely use Unison to sync users' home directories between workstations where the user is expected to work. Unfortunately, as the firm grows, the Unison become slower and slower in determining ...
Adam Ryczkowski's user avatar
1 vote
1 answer
378 views

How do I set up Unison to open the meld GUI when I choose to merge in the Unison GUI

I am using the Unison GUI in Fedora. What should I add to my profile to set up "meld" as my merge-tool? I would like to have a similar user experience as in Git Gui, when I add meld as my ...
Jakob's user avatar
  • 111
1 vote
1 answer
479 views

Root user takes unison profile from regular user?

I have two unison profiles with the same name as following: /root/.unison/theprofile.prf /home/users/itsme/.unison/theprofile.prf Both have different contents. They target the same remote server (...
itsme_now's user avatar
1 vote
1 answer
666 views

unison with inoify watch: how does it deal with frequent changes to the same file(s)?

Supposing I have one relatively large file synced by unison. And the file changes for some time more frequently than unison is able to sync it. Does it squash subsequent changes or tries to queue and ...
ardabro's user avatar
  • 187
1 vote
2 answers
5k views

Using Unison repeat = watch on CentOS7 "Fatal error: No file monitoring helper program found."

So after installing Unison on CentOS 7, i wanted to use the repeat=watch function. syncing by running unison manually works perfect. But for a auto-sync on change, repeat=watch could be used. But ...
Lars Behrens's user avatar
1 vote
1 answer
458 views

After cloud server rebuild, why does SSH give me an ssh_exchange_identification error?

We recently had to rebuild one of our cloud servers (we use Rackspace). All servers are almost identical, and a snapshot of another server was used. Once live again, I allowed a cron job to run which ...
Leonard Challis's user avatar
1 vote
1 answer
4k views

How do I setup unison to sync a folder one way

I have a 1tb NAS that has a 1tb usb external hard attached I have prepared the file system on the usb disk and mounted it I want to 100% sync my data from my nas to the usb disk - but I want it to ...
Rob's user avatar
  • 205
1 vote
2 answers
521 views

unison / rsync getting copies of changed files

So the place where I'm working at has a nifty little Red Hat Enterprise server and a tape backup system that they want me to get working backing up the large amounts of video content and resources ...
Russell C's user avatar
  • 115
1 vote
0 answers
386 views

Samba AD sysvol sync unison permissions issue

I'm having an issue with syncing the unix permissions and ownership on the sysvol between two Ubuntu Samba AD DCs using unison. I have copied the idmap.ldb file from DC1 to DC2 and the Windows ...
squidconspiracy's user avatar
1 vote
0 answers
825 views

Unison not syncing

I am using Unison to sync files between multiple servers. The exact command that I am running is: /bin/unison-text-2.40 /etc/asterisk/dynamic_configs ssh://filesync/opt/dynamic_configs -batch -...
Dovid Bender's user avatar
1 vote
0 answers
430 views

Is there a way to force unison to either split jobs or use less RAM?

I want to use Unison to sync 2 file systems of about 2.5TB, but every time I try to sync, the host on which I run the job kills it (OoM kill) because it uses a ridiculous amount of memory. (The host ...
Francesco Peeters's user avatar
1 vote
0 answers
322 views

Unison: should I use a remote shell (ssh) or VPN tunnel?

We have 2 office locations. Each LAN is connected via a site-to-site OpenVPN tunnel. Office1 has an Ubuntu Server; samba file shares; OpenSSH server; Unison File Synchronizer. Office2 has a Win ...
dan's user avatar
  • 279
1 vote
0 answers
454 views

Unison: skip any delete of files or folders

While synchronising directories using Unison I want to skip any delete of files or folders (both ways). I wonder how I can do it?
user avatar
1 vote
0 answers
988 views

Bash Script that connects to VPN server via openvpn, runs a program, and then disconnects from openvpn server [duplicate]

The operating system I am using is Ubuntu Server 10. I've been trying to cobble together a way to connect to a vpn server via openvpn using command line, run a unison profile, and then disconnect from ...
Alexo's user avatar
  • 11
1 vote
1 answer
3k 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 ...
Chloe's user avatar
  • 1,174
0 votes
1 answer
2k views

unison: -force only on conflict

According to Unison Manual, using -force <root>: Including the preference -force root causes Unison to resolve all differences (even non-conflicting changes) in favor of root. However, I ...
lepe's user avatar
  • 469
0 votes
2 answers
3k views

Why unison does not run in cronjob?

I want two way data sync between two CentOS based servers, so I installed Unison on both of my CentOS servers. I made a script file on root which runs unison and works fine, and syncs the files, when ...
Mujtaba Haider's user avatar
0 votes
1 answer
570 views

How can I make unison stop writing itself to root root when sshing from server to server?

I am using this command: sudo unison /opt/bitnami/apache2/htdocs/test/wp-content/uploads/ ssh://[email protected]:7775//opt/bitnami/apache2/htdocs/test/wp-content/uploads -owner -group upon ...
Christian Matthew's user avatar
0 votes
1 answer
1k views

using unison options in shell script?

I'm new to unison, and am trying to use its options in a simple shell script, but they seem to be ignored when the script is executed, causing no changes to be synced between the two servers. My ...
Elijah Paul's user avatar
0 votes
2 answers
1k views

Load Balancing + Folder sync

i've 2 servers. Server A : contains mysql apache nginx Server B : contains apache memcached rsync cron ( each 3 mins ) that pulls the /var/www/ content and update its own I'm using: nginx of ...
Andrea Baccega's user avatar
0 votes
2 answers
702 views

Synchronization over ssh with restricted access to the server file system

I want to synchronize (both directions) a certain folder between a server (S) and a local machine (L). On both S and L, I have the same system (Ubuntu) and a user jan, with sudo privileges (i.e. in ...
galapah's user avatar
  • 101
0 votes
1 answer
2k views

unison as non-root user

I want to use unison to sync the /home directories between two EL6 boxes. Most writeups assume that unison is run as root, and can ssh between the two boxes as root. However, we have disabled root ...
user52874's user avatar
  • 829
0 votes
1 answer
806 views

unison over ssh with white spaces in directories

I want to do something like this unison 192.168.1.1:/data/<example directory> /data/server_backup There is a space in the source directory. Is there some way I can do this with out using "\"
proy's user avatar
  • 1,239
0 votes
1 answer
662 views

Server cluster setup using UNISON to sync files bi-directionally line/star/fully connected?

I appreciate that I'm asking multiple questions on the same topic, but they are all related to the same purpose. Working a horizontal scaling cluster setup, and trying to setup unison to sync "var/...
Mecanik's user avatar
  • 103
0 votes
2 answers
2k views

unison set owner of files

I'm copying files from my workstation to a dev sandbox, locally I don't have the www-data user, which is needed by my web server. Is there a way to set up an user_id for files synced by unison?
astropanic's user avatar