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
84 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/...
1
vote
0answers
114 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 ...
0
votes
1answer
156 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 (...
0
votes
2answers
686 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?
1
vote
1answer
253 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 ...
1
vote
1answer
920 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 ...
1
vote
0answers
193 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 ...
1
vote
0answers
203 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?
0
votes
0answers
301 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 ...
0
votes
2answers
412 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 ...
2
votes
0answers
453 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 /...
1
vote
1answer
1k 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 ...
0
votes
1answer
569 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 ...
0
votes
1answer
127 views

Restrict unison to work only on certain folder (on the remote server)

Considering the scenario where Server1 wants to keep folder /x synchronized between itself and Server2. So apparently one have to add a new (SSH) user to Server2 allowing for this. So we result in a ...
1
vote
2answers
3k 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 ...
2
votes
2answers
435 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 ...
0
votes
1answer
252 views

Unison sync getting copy of replaced files

I'm facing very serious issue. I have configured unison for synchronising file among servers. It takes copy of a file from server-1 and replace or copy file to other servers. I have added a folder ...
1
vote
1answer
287 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 ...
0
votes
1answer
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 ...
-1
votes
1answer
305 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://xxxx@wxxxx.cloudapp.net:7775//opt/bitnami/apache2/htdocs/test/wp-content/uploads -owner -group upon ...
0
votes
1answer
1k 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 ...
0
votes
2answers
2k 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 ...
0
votes
1answer
989 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 ...
3
votes
1answer
959 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 ...
1
vote
0answers
694 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 ...
1
vote
1answer
797 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 ...
0
votes
1answer
2k 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 ...
4
votes
1answer
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 ...
1
vote
1answer
3k 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 ...
0
votes
2answers
838 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 ...
1
vote
1answer
3k 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 ...
2
votes
1answer
520 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 ...
2
votes
2answers
191 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 ...
2
votes
2answers
3k 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 ...
2
votes
1answer
294 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 ...
0
votes
1answer
666 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 "\"
2
votes
3answers
566 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 ...
2
votes
2answers
1k 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 ...
2
votes
2answers
5k 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 ...
2
votes
4answers
704 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. ...
2
votes
2answers
3k 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 ...
0
votes
1answer
2k views

How i can use unison to sync. files of folder with the latest modification time?

I have to handle collisions (someone/something modified both files - How i can merge changes or just overwrite older version). In other word I want to sync folders with the latest modification time ...
1
vote
2answers
2k 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 ...
1
vote
2answers
490 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 ...
5
votes
3answers
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 ...
2
votes
1answer
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 ...
2
votes
0answers
2k 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 ...
14
votes
5answers
8k 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 ...