<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Keeping directories in sync with unison</title>
	<atom:link href="http://blog.melimato.com/keeping-directories-in-sync-with-unison/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.melimato.com/keeping-directories-in-sync-with-unison/</link>
	<description>Those things we do</description>
	<lastBuildDate>Sun, 22 Jan 2012 11:13:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Rob Staveley (Tom)</title>
		<link>http://blog.melimato.com/keeping-directories-in-sync-with-unison/comment-page-1/#comment-229</link>
		<dc:creator>Rob Staveley (Tom)</dc:creator>
		<pubDate>Wed, 09 Sep 2009 13:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.melimato.com/?p=104#comment-229</guid>
		<description>I also recommend considering having &quot;CONFLICT&quot; resolution in the profile.

e.g. When both ends have been modified, prefer the local copy.

[code]
# Resolve conflicts in favor of local root
prefer=/path/to/root/dir
[/code]

In particular this is good when you are sync-ing two directories which have already been duplicated. Unison makes a big song and dance of flagging all of the files as &quot;CONFLICTS&quot; in the log, which gets very large, if you don&#039;t start with a master at only one end. 

Alternatively, be sure to start with an empty directory at one end and then the conflicts will be genuine issues.

A big thanks for this article pablo, it is a great way to get started!</description>
		<content:encoded><![CDATA[<p>I also recommend considering having &#8220;CONFLICT&#8221; resolution in the profile.</p>
<p>e.g. When both ends have been modified, prefer the local copy.</p>
<p>[code]<br />
# Resolve conflicts in favor of local root<br />
prefer=/path/to/root/dir<br />
[/code]</p>
<p>In particular this is good when you are sync-ing two directories which have already been duplicated. Unison makes a big song and dance of flagging all of the files as &#8220;CONFLICTS&#8221; in the log, which gets very large, if you don&#8217;t start with a master at only one end. </p>
<p>Alternatively, be sure to start with an empty directory at one end and then the conflicts will be genuine issues.</p>
<p>A big thanks for this article pablo, it is a great way to get started!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Staveley (Tom)</title>
		<link>http://blog.melimato.com/keeping-directories-in-sync-with-unison/comment-page-1/#comment-228</link>
		<dc:creator>Rob Staveley (Tom)</dc:creator>
		<pubDate>Wed, 09 Sep 2009 12:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.melimato.com/?p=104#comment-228</guid>
		<description>I had this running nicely as it was from the command line, but saw /var/log/unison.log that it was bombing out when run from crontab with the following error:

Sys_error(&quot;Broken pipe&quot;) 

My fix was to use nohup in the crontab:

[code]
*/5 * * * * nohup /usr/local/bin/lockrun --lockfile=/tmp/hosting.lockrun -- /root/bin/my_unison_script.sh &gt; /dev/null 2&gt;&amp;1
[/code]

This seems to have done the trick.</description>
		<content:encoded><![CDATA[<p>I had this running nicely as it was from the command line, but saw /var/log/unison.log that it was bombing out when run from crontab with the following error:</p>
<p>Sys_error(&#8220;Broken pipe&#8221;) </p>
<p>My fix was to use nohup in the crontab:</p>
<p>[code]<br />
*/5 * * * * nohup /usr/local/bin/lockrun --lockfile=/tmp/hosting.lockrun -- /root/bin/my_unison_script.sh &gt; /dev/null 2&gt;&amp;1<br />
[/code]</p>
<p>This seems to have done the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SonyaSunny</title>
		<link>http://blog.melimato.com/keeping-directories-in-sync-with-unison/comment-page-1/#comment-2</link>
		<dc:creator>SonyaSunny</dc:creator>
		<pubDate>Sun, 10 May 2009 19:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.melimato.com/?p=104#comment-2</guid>
		<description>Thanks for article. Everytime like to read you.</description>
		<content:encoded><![CDATA[<p>Thanks for article. Everytime like to read you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

