LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-03-2009, 01:09 PM   #1
uhcafigdc
Member
 
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39

Rep: Reputation: 15
Unison file synchronization with safe, automatic conflict resolution?


A conflict happens between directories A and B when a user modifies a file in both A and B before the next unison synchronization.

I would like to set up unison to run automatically as a cron job, but I need to be able to have it resolve conflicts like these safely without my intervention. I don't know what the merge feature is capable of doing, but I don't want to overwrite or combine conflicting versions of files at all.

In the case of a conflict, I would like unison to copy the file over using a different name so that nothing is overwritten. The end result would be something like
A/file1
A/file1.001
B/file1
B/file1.001

However, I don't want copies of ALL files that are synchronized; I just want conflicts to be resolved this way.


If I use these lines in my .prf...
Code:
backuplocation = local
backupsuffix = .$VERSION
maxbackups = 5
...will I get 5 copies of EVERY file that is synchronized?

Or... will it behave as I described, handling conflicts by making copies of those up to 5 times, while updating/deleting non-conflicting files on either side without backing up?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unison setup - or other file sync software m_a_b Linux - Software 1 06-15-2008 10:29 AM
LXer: Unison - file synchronization tool LXer Syndicated Linux News 0 05-11-2008 11:40 AM
LXer: File Synchronization with Unison LXer Syndicated Linux News 0 04-16-2008 03:20 PM
LXer: File Synchronization with Unison LXer Syndicated Linux News 0 04-14-2008 06:12 PM
email synchronization (not file synchronization) Moebius Linux - Software 6 10-05-2004 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration