Roll Your Own Dropbox with BitTorrent Sync on Amazon EC2

File sync is awesome. Without the ability to get at my files on all my computers (4, currently), I don’t know how I would function. That said, I’m not super-fired-up about Dropbox’s security and privacy practices (or Google Drive’s, for that matter), particularly in light of recent news.

So I got pretty excited when I learned about BitTorrent Sync, software that syncs your files without requiring you to give the key to those files to a company like Dropbox or Google. Like its namesake, BitTorrent Sync is decentralized. It syncs files between the computers you install it on, and does not rely on any central server.

Unfortunately, the lack of a central server is also a downside. If you have a desktop and laptop, for example, BitTorrent Sync will only sync up your files when both of your computers are turned on and connected to the Internet. That’s not a problem with Dropbox, because Dropbox’s servers keep your files synced up all the time, even if your computers are never connected to the Internet at the same time. But if you got BitTorrent Sync running on your own server, you could get this same functionality.

That’s why I figured out how to install BitTorrent Sync on an Amazon EC2 server. Here’s how I did it (with crucial help from the friendly folks on #ubuntu-server at freenode).

Continue reading “Roll Your Own Dropbox with BitTorrent Sync on Amazon EC2”