<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Syncthing on Wimpy's World</title><link>https://blog.wimpys.world/tags/syncthing/</link><description>Recent content in Syncthing on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Sat, 21 Jun 2014 12:00:00 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/syncthing/rss.xml" rel="self" type="application/rss+xml"/><item><title>Setting up BitSync on Debian</title><link>https://blog.wimpys.world/posts/setting-up-bitsync-on-debian/</link><pubDate>Sat, 21 Jun 2014 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/setting-up-bitsync-on-debian/</guid><description>&lt;p&gt;I&amp;rsquo;ve replaced Dropbox with &lt;a href="http://www.bittorrent.com/sync"&gt;BitTorrent Sync&lt;/a&gt;.
In order to do this I&amp;rsquo;ve have &lt;code&gt;btsync&lt;/code&gt; running on a VPS (2CPU, 2GB, 400GB), my
home server and assorted Arch Linux workstations.&lt;/p&gt;
&lt;p&gt;I had a couple of reasons for migrating away from Dropbox.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dropbox was costing $100 per year.&lt;/li&gt;
&lt;li&gt;Dropbox encryption model is weak and I have data security/privacy.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The VPS I am running BitTorrent Sync on costs $50 per year and provides four
times the storage. I run &lt;code&gt;btsync&lt;/code&gt; on a VPS so that there is always a server
&lt;em&gt;&amp;ldquo;in the cloud&amp;rdquo;&lt;/em&gt; that is available to sync with so that my setup emulates what
Dropbox used to do.&lt;/p&gt;
&lt;p&gt;All my servers are running Debian and this is how I install &lt;code&gt;btsync&lt;/code&gt; on
Debian.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sh -c &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;curl -fsSL http://debian.yeasoft.net/add-btsync-repository.sh&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install btsync
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is how I respond to the prompts:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Do you want to define a default BitTorrent Sync instance? : YES
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Daemon Credentials: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Daemon Group: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Niceness of the BitTorrent Sync Daemon: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* On which portnumber should BitTorrent Sync listen? 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Listen Port: 12345
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Do you want BitTorrent Sync to request port mapping via UPNP? NO
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Download Bandwith Limit: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Upload Bandwith Limit: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Web Interface Bind IP Address: 0.0.0.0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Web Interface Listen Port: 8888
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* The username for accessing the web interface: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* The password for accessing the web interface: yourpassword
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;As you&amp;rsquo;ll see, I don&amp;rsquo;t use UPNP on my VPS. I elect a specific port (not
actually 12345 by the way) and open that port up with &lt;code&gt;ufw&lt;/code&gt;. I also only
allow access to the WebUI port from another server I own which reverse
proxies via &lt;code&gt;nginx&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;btsync&lt;/code&gt; works really well, I have it syncing hundreds of thousands of
files that amount to several hundred gigabytes of data. On my Arch Linux
workstations I use the brilliant &lt;a href="http://www.yeasoft.com/site/projects:btsync-deb:btsync-gui"&gt;btsync-gui&lt;/a&gt;
and &lt;a href="https://play.google.com/store/apps/details?id=com.bittorrent.sync"&gt;BitTorrent Sync is also available for Android&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;That said, I still use a free Dropbox account to sync photos from mine and my
wife&amp;rsquo;s Android phones. I have a Dropbox instance running on my home file server
and everyday it runs a script to automatically import these photos into Plex.&lt;/p&gt;
&lt;p&gt;Such a shame, that at the time of writing, &lt;code&gt;btsync&lt;/code&gt; is closed source :-(
Maybe that will change but if it doesn&amp;rsquo;t &lt;a href="http://syncthing.net/"&gt;syncthing&lt;/a&gt;
may well be the answer when it has matured a little.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.yeasoft.com/site/projects:btsync-deb:btsync-server"&gt;http://www.yeasoft.com/site/projects:btsync-deb:btsync-server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync/"&gt;http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Setting up BitTorrent Sync on Debian</summary></item></channel></rss>