<?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 for Lennart&#039;s weblog</title>
	<atom:link href="http://blog.karssen.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.karssen.org</link>
	<description>Open source, computers, Africa and other more (or less) interesting stuff.</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:46:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>Comment on Overwriting selected text in Emacs by Olga Koteoglou</title>
		<link>http://blog.karssen.org/2011/08/04/159/comment-page-1/#comment-2002</link>
		<dc:creator>Olga Koteoglou</dc:creator>
		<pubDate>Thu, 02 Feb 2012 17:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=159#comment-2002</guid>
		<description>Thanks! I&#039;ve been looking for it!</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ve been looking for it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using rsync to backup to a remote Synology Diskstation by LCK</title>
		<link>http://blog.karssen.org/2011/02/06/using-rsync-to-backup-to-a-remote-synology-diskstation/comment-page-1/#comment-1725</link>
		<dc:creator>LCK</dc:creator>
		<pubDate>Sun, 08 Jan 2012 14:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=108#comment-1725</guid>
		<description>Dear Nick,

Thanks for the comments! The link to Phil&#039;s blog was an interesting read. I hadn&#039;t heard of lsyncd before and it offers some interesting prospects, like syncing some directories of my PC at work with my server at home. At the moment I&#039;m using &lt;a href=&quot;http://www.cis.upenn.edu/~bcpierce/unison/&quot; rel=&quot;nofollow&quot;&gt;unison&lt;/a&gt; for that, but since the computer and my server are always connected lsyncd seems easier as it does everything in the background (I guess I&#039;ll keep using unison on my laptop, because it&#039;s not always connected). 

Using lsyncd/lipsync for my backups to the NAS won&#039;t be a good idea, however, because that would mean that every change (including erroneous deletes etc.) will immediately be mirrored to the NAS. No real problem for a dropbox-like situation, but the idea of backups is that they change less fast than the data you&#039;re working on, so you can undo any mistakes you made. 

Going back to your problem of installing lipsync on your computer, I took a quick look at the install script and it seems to ask only a few questions: 
&lt;ul&gt;
&lt;li&gt;Server name or IP: this should be the domain name or IP address of your NAS&lt;/li&gt;
&lt;li&gt;Server SSH port: this is 22 on the NAS&lt;/li&gt;
&lt;li&gt;Server and client user name: up to you to decide, but it looks like they have to be the same on both your PC and the NAS&lt;/li&gt;
&lt;li&gt;The directory to be synced on the client&lt;/li&gt;
&lt;li&gt;The directory to be synced on the server (NAS)&lt;/li&gt;
&lt;/ul&gt;
After getting the answers to these questions lipsync will set up SSH key, copy it to the NAS and finish the configuration of lsyncd, a first synchronisation, etc.

If it isn&#039;t working for you, could you tell me where things go wrong (error messages, etc.)?

Good luck and thanks a lot!</description>
		<content:encoded><![CDATA[<p>Dear Nick,</p>
<p>Thanks for the comments! The link to Phil&#8217;s blog was an interesting read. I hadn&#8217;t heard of lsyncd before and it offers some interesting prospects, like syncing some directories of my PC at work with my server at home. At the moment I&#8217;m using <a href="http://www.cis.upenn.edu/~bcpierce/unison/" rel="nofollow">unison</a> for that, but since the computer and my server are always connected lsyncd seems easier as it does everything in the background (I guess I&#8217;ll keep using unison on my laptop, because it&#8217;s not always connected). </p>
<p>Using lsyncd/lipsync for my backups to the NAS won&#8217;t be a good idea, however, because that would mean that every change (including erroneous deletes etc.) will immediately be mirrored to the NAS. No real problem for a dropbox-like situation, but the idea of backups is that they change less fast than the data you&#8217;re working on, so you can undo any mistakes you made. </p>
<p>Going back to your problem of installing lipsync on your computer, I took a quick look at the install script and it seems to ask only a few questions: </p>
<ul>
<li>Server name or IP: this should be the domain name or IP address of your NAS</li>
<li>Server SSH port: this is 22 on the NAS</li>
<li>Server and client user name: up to you to decide, but it looks like they have to be the same on both your PC and the NAS</li>
<li>The directory to be synced on the client</li>
<li>The directory to be synced on the server (NAS)</li>
</ul>
<p>After getting the answers to these questions lipsync will set up SSH key, copy it to the NAS and finish the configuration of lsyncd, a first synchronisation, etc.</p>
<p>If it isn&#8217;t working for you, could you tell me where things go wrong (error messages, etc.)?</p>
<p>Good luck and thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using rsync to backup to a remote Synology Diskstation by LCK</title>
		<link>http://blog.karssen.org/2011/02/06/using-rsync-to-backup-to-a-remote-synology-diskstation/comment-page-1/#comment-1724</link>
		<dc:creator>LCK</dc:creator>
		<pubDate>Sun, 08 Jan 2012 14:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=108#comment-1724</guid>
		<description>Dear Summertea,

Both my provider and the provider of my sister (Where the NAS is located) don&#039;t force reconneting, so I don&#039;t have any real experiences with that. My guess would be that if an rsync transmission is disconnected it will end the transfer. If the disconnection and the reconnection happen fast enough (I&#039;d say on the order of a few seconds) everything might be OK, but I wouldn&#039;t count on that for my backups. 

Since rsync (with the -P option) can continue transferring partially transferred files, you could use that to run the interupted backup again so that it can complete. I guess that the return value of rsync will be non-zero it the transfer is interrupted (or if anything else happens). You could test for that return value in the script as you propose and keep rerunning the rsync command (with -P) until it finishes without problems. 
This is more or less what I propose (I didn&#039;t test it), replace the rsync line in the script with:

&lt;pre lang=&#039;bash&#039;&gt;
retval=1
while [ $retval -ne 0 ]; do
   rsync $OPTIONS $EXCLUSIONS $SRC $DEST
   retval=$0
done
&lt;/pre&gt;

Good luck!</description>
		<content:encoded><![CDATA[<p>Dear Summertea,</p>
<p>Both my provider and the provider of my sister (Where the NAS is located) don&#8217;t force reconneting, so I don&#8217;t have any real experiences with that. My guess would be that if an rsync transmission is disconnected it will end the transfer. If the disconnection and the reconnection happen fast enough (I&#8217;d say on the order of a few seconds) everything might be OK, but I wouldn&#8217;t count on that for my backups. </p>
<p>Since rsync (with the -P option) can continue transferring partially transferred files, you could use that to run the interupted backup again so that it can complete. I guess that the return value of rsync will be non-zero it the transfer is interrupted (or if anything else happens). You could test for that return value in the script as you propose and keep rerunning the rsync command (with -P) until it finishes without problems.<br />
This is more or less what I propose (I didn&#8217;t test it), replace the rsync line in the script with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">retval</span>=<span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$retval</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">do</span>
   rsync <span style="color: #007800;">$OPTIONS</span> <span style="color: #007800;">$EXCLUSIONS</span> <span style="color: #007800;">$SRC</span> <span style="color: #007800;">$DEST</span>
   <span style="color: #007800;">retval</span>=<span style="color: #007800;">$0</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using tikz to generate an abstract box in LaTeX by Madhu</title>
		<link>http://blog.karssen.org/2009/09/14/using-tikz-to-generate-an-abstract-box-in-latex/comment-page-1/#comment-1704</link>
		<dc:creator>Madhu</dc:creator>
		<pubDate>Sat, 07 Jan 2012 11:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=52#comment-1704</guid>
		<description>Thanks for the post.... Really great....</description>
		<content:encoded><![CDATA[<p>Thanks for the post&#8230;. Really great&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using rsync to backup to a remote Synology Diskstation by Nick</title>
		<link>http://blog.karssen.org/2011/02/06/using-rsync-to-backup-to-a-remote-synology-diskstation/comment-page-1/#comment-1624</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 01 Jan 2012 14:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=108#comment-1624</guid>
		<description>Lennart, thanks for sharing this and your knowledge.  I just set up a Linux Mint 12 PC and just got the DS211J NAS as well.  What I was hoping for was to create a DropBox-like solution between the Linux Mint PC (client) and the DS211J NAS (server).  Another brilliant individual named Phil has figured out how to create your own DropBox-like syncing solution.  I just have not been able to figure out how to make it work with the DS211J NAS.  You&#039;re obviously  smarter than I am and thought you may have an interest in what Phil has done (using rsync and lsyncd) and you may be able to relate his work to the DS211J.  If you have an interest and are able to figure it out, please post and share with the rest of us.

The two Phil links that would be of interest are:

1. His Blog that describes &quot;HOW TO build your own open source Dropbox clone&quot;
http://fak3r.com/howto-build-your-own-open-source-dropbox-clone/

2. His related lipsync open source project that creates an easy to use installer (here&#039;s where I don&#039;t know what values are relevant to DS211J when it is set up as an rsync server).
https://github.com/philcryer/lipsync

Thanks again for sharing your skill with the world.

From the U.S.,
Nick</description>
		<content:encoded><![CDATA[<p>Lennart, thanks for sharing this and your knowledge.  I just set up a Linux Mint 12 PC and just got the DS211J NAS as well.  What I was hoping for was to create a DropBox-like solution between the Linux Mint PC (client) and the DS211J NAS (server).  Another brilliant individual named Phil has figured out how to create your own DropBox-like syncing solution.  I just have not been able to figure out how to make it work with the DS211J NAS.  You&#8217;re obviously  smarter than I am and thought you may have an interest in what Phil has done (using rsync and lsyncd) and you may be able to relate his work to the DS211J.  If you have an interest and are able to figure it out, please post and share with the rest of us.</p>
<p>The two Phil links that would be of interest are:</p>
<p>1. His Blog that describes &#8220;HOW TO build your own open source Dropbox clone&#8221;<br />
<a href="http://fak3r.com/howto-build-your-own-open-source-dropbox-clone/" rel="nofollow">http://fak3r.com/howto-build-your-own-open-source-dropbox-clone/</a></p>
<p>2. His related lipsync open source project that creates an easy to use installer (here&#8217;s where I don&#8217;t know what values are relevant to DS211J when it is set up as an rsync server).<br />
<a href="https://github.com/philcryer/lipsync" rel="nofollow">https://github.com/philcryer/lipsync</a></p>
<p>Thanks again for sharing your skill with the world.</p>
<p>From the U.S.,<br />
Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using rsync to backup to a remote Synology Diskstation by Summertea</title>
		<link>http://blog.karssen.org/2011/02/06/using-rsync-to-backup-to-a-remote-synology-diskstation/comment-page-1/#comment-1419</link>
		<dc:creator>Summertea</dc:creator>
		<pubDate>Sat, 17 Dec 2011 11:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=108#comment-1419</guid>
		<description>Dear Lennart, that is really a great script. I will try to implement it myself. However, there is one thing I don&#039;t quite understand:

How does rsync handle interruptions of the internet connection between the two Diskstations?

At least in Germany, your router is forced to disconnect from the internet once every 24 h. So when I backup a bigger chunk of data, rsync won&#039;t be finished with the job before a forced disconnection takes place. Moreover, the router has to refresh its domain as its IP changes after each reconnection (via DynDNS in my case). Does this lead to additional trouble?

Can rsync handel this issue itself or do I have to add a loop into the script that restarts rsync after a specific error code is reported?

I would be very grateful for any comment on that!</description>
		<content:encoded><![CDATA[<p>Dear Lennart, that is really a great script. I will try to implement it myself. However, there is one thing I don&#8217;t quite understand:</p>
<p>How does rsync handle interruptions of the internet connection between the two Diskstations?</p>
<p>At least in Germany, your router is forced to disconnect from the internet once every 24 h. So when I backup a bigger chunk of data, rsync won&#8217;t be finished with the job before a forced disconnection takes place. Moreover, the router has to refresh its domain as its IP changes after each reconnection (via DynDNS in my case). Does this lead to additional trouble?</p>
<p>Can rsync handel this issue itself or do I have to add a loop into the script that restarts rsync after a specific error code is reported?</p>
<p>I would be very grateful for any comment on that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Loggerhead behind Apache on Ubuntu 11.04 by LCK</title>
		<link>http://blog.karssen.org/2011/08/22/installing-loggerhead-behind-apache-on-ubuntu-11-04/comment-page-1/#comment-1381</link>
		<dc:creator>LCK</dc:creator>
		<pubDate>Thu, 15 Dec 2011 11:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=163#comment-1381</guid>
		<description>Thanks, you are right. Updated the post accordingly.</description>
		<content:encoded><![CDATA[<p>Thanks, you are right. Updated the post accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Loggerhead behind Apache on Ubuntu 11.04 by LCK</title>
		<link>http://blog.karssen.org/2011/08/22/installing-loggerhead-behind-apache-on-ubuntu-11-04/comment-page-1/#comment-1380</link>
		<dc:creator>LCK</dc:creator>
		<pubDate>Thu, 15 Dec 2011 11:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=163#comment-1380</guid>
		<description>No idea :-). Some wordpress magic maybe...</description>
		<content:encoded><![CDATA[<p>No idea <img src='http://blog.karssen.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . Some wordpress magic maybe&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Loggerhead behind Apache on Ubuntu 11.04 by James</title>
		<link>http://blog.karssen.org/2011/08/22/installing-loggerhead-behind-apache-on-ubuntu-11-04/comment-page-1/#comment-1279</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 09 Dec 2011 04:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=163#comment-1279</guid>
		<description>WTF? how did your blog get my avatar pic??</description>
		<content:encoded><![CDATA[<p>WTF? how did your blog get my avatar pic??</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Loggerhead behind Apache on Ubuntu 11.04 by James</title>
		<link>http://blog.karssen.org/2011/08/22/installing-loggerhead-behind-apache-on-ubuntu-11-04/comment-page-1/#comment-1278</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 09 Dec 2011 04:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.karssen.org/?p=163#comment-1278</guid>
		<description>You rock. This guide made things so much easier. 
 One point though, on my system I had to run &quot;$ a2enmod proxy proxy_http&quot; (note the underscore, instead of the hyphen in the guide). Other than that, you couldn&#039;t have made it simpler.</description>
		<content:encoded><![CDATA[<p>You rock. This guide made things so much easier.<br />
 One point though, on my system I had to run &#8220;$ a2enmod proxy proxy_http&#8221; (note the underscore, instead of the hyphen in the guide). Other than that, you couldn&#8217;t have made it simpler.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

