Hosting your own Dropbox clone
I decided to set up my own private file syncing service. Dropbox recently degraded their free level, limiting you to three devices. Fair enough but ugh. Also I’ve been doing a funky hack with FreeFileSync where I keep personal files on two Windows boxes in sync via an external hard drive I carry back and forth. That works and solves the bandwidth problem, but is kludgy.
So.. what’s out there for free Dropbox alternatives? A quick search turns up ownCloud, NextCloud, and Seafile as popular choices. NextCloud is a fork of ownCloud and seems to be doing well so I picked that one.
NextCloud requires you’re running a server on an always-on Linux box somewhere. Installing the server is either a complex mess or as simple as could be. If you go the old school manual route it’s a mess; the server requires MySQL and a web server and a bunch of PHP stuff. They have detailed docs on how to install it on Ubuntu, but ugh.
Happily they also have a containerized server, Nextcloud Snap. And I’ll be damned but it really is as easy as a couple of lines of shell to install and get running. The only wrinkle I ran into is they really want to be running a visible web server under the / URL, and I already have a web server. So I had to change the ports the web server uses
sudo snap set nextcloud ports.http=81 ports.https=444
So far it seems to be working, we’ll see how it does in a month. The product is probably overkill for personal use, it’s really set up for a whole small office with many users, fancy integrations with apps, etc. I just want a better rsync!
The one thing I didn’t evaluate is SyncThing, the outcome of the old BitTorrent company that is in fact a better rsync. I’d like to try that and see if it’s a lightweight alternative.
Update: a second wrinkle; all my user files are being stored in the Snap directory, which is on the small / fast SSD. I wanted to replace that data directory with a symlink to a slow hard drive, but of course the symlink goes outside the Snap container’s boundaries and doesn’t work. There’s various workarounds for this but for now I’ll just live with it.



