B2 Synology



Early in 2016 I published a post on how I setup my Synology NAS to backup to CrashPlan from Code42. It certainly wasn't an out of the box process and involved a lot of behind the scenes hacking on both the Synology and my laptop in order to get it going. It did, however, work well.

Synology Backblaze B2 Backup

For a time.

I started to notice a pattern in that, with every iteration of the DSM platform or Java update, the CrashPlan service would just stop. I'd get it going again, but each time, it was not as simple as clicking the Start button next to the Service window. No, it was always far more detailed than that and I started to grow weary. I even went weeks at times without backing up my NAS, and this was not a situation I could tolerate any more.

At the time, when researching backup solutions, I felt disappointed that Backblaze weren't offering any kind of solution for this. I had been using Backblaze for several years on my Mac devices and always found it to be a solid, reliable and unobtrusive piece of software. I've only needed to restore a few items in that time, yet each time the process was quick and easy. This is what I ideally wanted on my NAS.

Synology’s Hyper Backup allows users to back up various kinds of data (system configurations, shared folders, and applications/packages) on your Synology NAS, manually or by schedule. You can store the backup data in local shared folders, remote servers, and public clouds, like Backblaze B2. An extra step is required to avoid P5 compressing data before it’s written to the Synology/Fireball device. Avoiding have the P5 host needing to compress everything written to the Synology, allowed best possible write performance. Visit ‘Standalone Tape Drive’ to edit the virtual tape drives. In here you’ll find two drives.

Well, now I do.

Backblaze now offer a B2 Cloud Storage which links directly to my Synology NAS. Rather than paying a fixed monthly fee, B2 works in a very similar mould to it's cloud storage competitors in that you will pay per GB (currently $0.005 per GB), so working out your appromiate monthly bill is simple.

The best part about this solution is, without question, the ease of setup and subsequent lack of worry. You can 'set it and forget it', just like on your laptop or desktop machine. Backblaze provide an intuitive guide which lays out the steps in a logical, well explained manner.

I'd say more, but once the guide was followed, I haven't had to carry out any more maintenance. It's important to note that this is a Cloud Storage solution for your NAS as opposed to a fully fledged Backup solution. I use this solely for duplicating all of my NAS content to cloud storage. I can then download on any device with an internet connection.

So quick, so simple, so hassle-free.

Synology

That's enough of a selling point for me.

I recently wrote a post about moving from Nextcloud to Synology, in that post I mention how I’m backing up to Backblaze B2. This post explains how I configured that.

So you want to backup a Synology to Backblaze B2? Well, so does my friend and Fosstodon co-founder, Mike Stone who asked for more detail around how I backup to Backblaze B2 storage. Fosstodon has a limit of 500 characters and that wasn’t going to cut it, so I decided to write a post instead.

Synology Cloud Sync

So to backup to B2, I’m using the Synology Cloud Sync application. This is easily installed with a single click via the Synology Package Manager.

Personally I backup all user home folders, as well as our Family Share folder to B2. I could backup all the media on my Synology, but that would be very expensive. I tend to make sure that my crucial data is still available, even if I lose all my local data. Multimedia files aren’t crucial and can be replaced, so I’m comfortable with just having local backups for that.

Adding a new backup

I’m not going to take you through the process step by step, as it’s pretty straightforward. What I will do though, is show you how I’ve configured my backups and what those settings mean.

Here is a screenshot of the configuration for one of my B2 backup routines:

Encryption

When setting up the B2 backup routine, it’s very important to ensure encryption is enabled. This means that all of your data is encrypted at rest, so nobody except you can access it.

You will be asked to configure and encryption passphrase. Once configured, Synology will download certificates so you can decrypt your data later.

Keep both the certificates and passphrase safe. If you lose either of these, you will not be able to retrieve your data!

Sync Direction Settings

Set this option to “Upload Local Changes Only” and check the box that says “Don’t remove files in the destination folder…” Using both of these settings means that files will only sync one way – up to Backblaze. And if you delete a file, that deletion will not be synced.

Duplicates

Let’s say you have a spreadsheet you use to manage your finances. You add your monthly finances for January, then again in February. Cloud Sync will not overwrite your finances file with the new revisions.

Synology Backblaze B2 Setup

Instead, Backblaze treats duplicated files as a new version. Now, this may result in you using more storage within your B2 bucket, but the cost probably won’t be significant. Plus it will allow you to roll back if you need to.

I personally set the Lifecycle Settings within my buckets to 14 days. This means that B2 will keep 14 days worth of versions for any file.

Cost

Backblaze B2 is really cheap. For example, I have 2 buckets – one for home folders and the other for our family share. Over the 2 buckets, I have approximately 150GB of data stored in B2.

My invoice for January 2020 was just $0.39! Backblaze have an online calculator that should give you an idea of what backing up to their service will cost you.

Conclusion

This post should give you a good idea of how to backup a Synology to Backblaze B2. To be honest, it’s easy to configure and once it’s done, you can pretty much set it and forget it. Just make sure you do a test restore!

If you have any questions about this process, please feel free to get in touch with me.