Nextpertise a journal of interesting technical ideas . . .

Linux Home Cloud Backup

by Brent Stewart on Tuesday, Aug 4, 2020

At one point, I was taught to divide tasks by priority A, B, C. As I’ve gotten older, I’ve converted that scale into “things that will immediately get me fired or divorced”, “things that will eventually get me fired or divorced”, and “things I’d like to do if I have time”. One of the “A” tasks on this scale is making sure that we don’t lose our family digital pictures!

Our home file server is an Ubuntu VM. Over the years, I’ve used a variety of strategies to maintain personal backups. Recently, I felt the time was right to move to cloud based backup - both for the convenience and the security of having things off-site. I considered AWS S3, but Backblaze offers a similar and less-expensive service. A former employer used Backblaze for laptop backups and I administered that system, and I always felt they did a good job and were reasonable to work with.

Backblaze Dashboard I settled on using Duplicati for the backkup software. Duplicati runs on everything (Linux + various less secure OS), has a DEB, and is FOSS. Duplicati has built in support for cloud backup, including Backblaze and S3. I have a friend that uses Duplicati and it’s discussed on Jupiter Broadcasting, so I wanted to give it a try.

Let’s start with Backblaze. I setup an account and configured it for 2FA. Then I created an ID and application key at the Backblaze dashboard and setup a bucket. You can specify the bucket policy, and I recommend keeping older copies to protect against crypto-locking malware. I setup my bucket to retain older copies for 180 days.

Setting up Duplicati is as easy as installing the DEB and enabling the app to autostart. My server runs Mate, so I opened the Control Center (alt–f2, “mate-control-center”) and added Duplicati to the autoruns (at the bottom of the control center window).

Mate Autorun Once running, Duplicati shows a menu-bar applet. The application is administered from a web page on port 8200. This webpage can be accessible from other machines and I usually manage the backups from my desktop. Duplicati has excellent documentation on their website, but I was able to get it up and running quickly without investing a lot of time.

From the initial Duplicati page choose “Add backup” and a wizard will walk you through specifying the details. Make sure you keep track of the passphrase used by the backup! Here’s a quick rundown on the selections I used:

Duplicati Wizard After all that, just let it run! My biggest knock on the combination of Duplicati and Backblaze is that there’s not an easy way to confirm backups are happening. Backblaze has a 10 day trial and I didn’t initially put in a credit card. To be clear, kudos to them for letting you try it and being easy to work with. But . . . I forgot and the trial ran out and my backups stopped for several days. Worse, I was clueless.

Duplicati has options to setup a confirmation email after backups, which I recommend. You’ll know there’s a problem when you don’t get an email. Unless you are more clever than me, that’s suboptimal but it is something. Backblaze doesn’t have an alerting option for things that don’t happen. I’m thinking that I could setup a Lambda to check via API, then send an SNS, but that’s for another day.

Overall, I’m please with the setup and the results I’m getting and would recommend either component to someone trying to solve a similar home problem. I don’t see a reason this wouldn’t be good for a work environment, but I’ll need to use it for a while before I feel comfortable making that a recommendation.


Recent articles related to these tags: Review Backup Linux
Share this article:    Tweet