It’s late at night and Raul is frantic. He’s desperately searching for an important electronic document he needs for work. He knows it’s on his NAS somewhere, but he can’t remember where he saved it. His frown deepens as he opens folder after folder, not finding what he needs. Then his blood runs cold as he remembers deleting a swath of “unneeded” files last week as part of his annual Spring cleaning. And he has no recent backup. He’d been meaning to back up his NAS, but he kept telling himself he’d do it later.
Raul wakes in a cold sweat. It was all a bad dream. Whew! To reassure himself, and vowing to back up his data right now, Raul gets up and boots his computer. But he realizes all is not well as the computer finishes booting:
From Wikipedia (https://en.wikipedia.org/wiki/File:Wana_Decrypt0r_screenshot.png)
For Raul, the nightmare has just begun.
This is a long three-part article that outlines how to implement an effective 3-2-1-(1-0) backup plan for your Synology NAS. I recommend you read the entire article, but if you're just looking for something in particular, jump to the part your need:
Whether you’re a home user that only keeps family photos and videos on your NAS or a small business that uses it to store critical business data, you need an effective backup plan to protect your precious data. Fortunately, your Synology NAS has powerful built-in tools that you can use to set up and automate an effective backup plan with minimal technical knowledge or cost.
Unfortunately, though, information you can find in online forums, while often useful, is sometimes inappropriate or even dangerous when unknowledgeable users repeat outdated or incorrect information without context. For example, the simple “3-2-1” backup plan, often mentioned online by random internet strangers, is a good start, but it is considered outdated by today’s technology experts. This article will explain how you can implement an effective, modern plan to backup and secure the data on your Synology NAS.
“...the simple ‘3-2-1’ backup plan, often mentioned online by random internet strangers, is a good start, but it is considered outdated by today’s technology experts.”
Consider some of the reasons you might be out of luck if you don’t have a good backup plan. You might even recognize some of these from your own experiences!
Notice that different types of threats to your data need different types of backup strategy. A RAID mirror (which is not a backup at all) may protect against hard drive failure, but it won’t help with any of the other data disasters; a backup on an external drive you keep in a desk drawer will protect against accidental deletion, but it may not be of much use in the case of theft or natural disaster.
The 3-2-1 backup plan, which earned its catchy name in early-2010’s online forums, is pretty simple in principle. It suggests that you should, at a minimum, have:
With this plan, you keep a local backup handy (on an external drive or a second NAS, for example) for situations when you need to quickly restore files and you keep an “emergency” backup somewhere else for situations where the local backup is damaged, corrupted, stolen, or encrypted by malware.
Historically, if a home user kept an off-site backup at all, it would be stored on physical media (such as external hard drives, CD/DVD copies, or even tape archives) at a different location: in a storage locker, at work, at a friend’s house, etc. Today, though, it is far more common to use cloud storage or network mounts for off-site storage. And it is this change in the technology landscape that has weakened the 3-2-1 backup plan.
What has changed in just the past few years? Ransomware. Ransomware has changed our entire outlook about what constitutes a safe backup plan
Ransomware has been around since at least the late 1980’s, but it didn’t become common until the mid-2010’s, largely because of then-new Bitcoin. With the introduction of Bitcoin and other cryptocurrencies, cybercriminals had a brand new way of demanding anonymous payments from hapless victims. And ransomware flourished.
Ransomware is a type of malware that infects your computer and silently encrypts data on your storage devices. It doesn’t normally delete the data, it just makes it unreadable by you or anyone else without a decryption key. The villains then offer to decrypt your files for you, but only if you pay a ransom using Bitcoin or some other cryptocurrency. There is usually no way to recover from a successful ransomware attack other than to pay the villains what they ask or to restore from backup. But the more insidious ransomware actively seeks out and deletes any backups it can find.
This is why a 3-2-1 backup plan using snapshots, always-connected cloud storage, or network mounts for the offsite backup may not be good enough. If a ransomware can find and access the network backup, it can delete or corrupt it. In response to the ever-growing threat of ransomware, experts now recommend a more robust backup strategy.
“3-2-1-1-0” doesn’t roll off the tongue as easily as “3-2-1,” but it’s a better backup plan. It’s a slight modification to the simple 3-2-1 plan that limits our off-site backup to methods that are protected. Using this strategy, you should have:
Sounds complicated doesn’t it? Happily, it doesn’t have to be. If you’re already using a 3-2-1 backup plan with secure API-based cloud storage, for example, you’re already protected and you can stop reading now. If not, you should consider improving your backup strategy. For example, these 3-2-1 backup plans do not follow best practices:
The rest of this article will explain how you can easily implement a 3-2-1-1-0 backup plan on your Synology NAS using Synology's built-in Hyperbackup software and employing an online S3-compatible storage provider such as BackBlaze B2 or Synology C2.
To implement a robust 3-2-1-1-0 backup strategy on your Synology NAS, you can use Hyperbackup to automate 2 separate backup tasks: 1) a local backup to serve as your primary easy-to-access backup, and 2) an air-gapped cloud backup as your off-site fallback. When you use Hyperbackup with versioning, your data is stored as immutable (unchangeable) binary large objects -- old versions of your data are retained for a while alongside newer versions. So, even if your files become damaged or encrypted, it will be possible to restore the older versions as long as the backup itself has not been tampered with. And having an air-gapped cloud backup prevents such tampering by ransomware.
When you use Hyperbackup with versioning...old versions of your data are retained for a while alongside newer versions. So, even if your files become damaged or encrypted, it will be possible to restore older versions as long as the backup itself has not been tampered with.
Both the local and off-site backup will use Hyperback’s incremental backup feature to store multiple versions using deduplication to minimize disk space required. This is not the only way to implement a 3-2-1-1-0 strategy, but is straightforward and easy for most users to set up.
To begin, make sure Hyperbackup is installed and your local backup drive is connected. If Hyperbackup is not yet installed, open Package Center on your NAS, search for Hyperbackup, and install it. If you will use a second Synology NAS as your local backup target, then you should also install Hyperbackup Vault on the backup NAS.
Most users will use storage directly connected to their NAS for their primary backup. This could be an external USB drive, an external drive in a cradle, an unused drive in your NAS, a network mount, or any other storage device (remember Zip Drives?). It just needs to be large enough to store the backup. While it is technically safer to disconnect the backup storage when not in use, most users will leave the device always-connected so that backups can be automated. (For bonus points, you can configure a scheduled task to automatically mount the device, perform the backup, then unmount it, but that is beyond the scope of this article.)
Sidebar: RAID is not a backup. If you have more than one drive in your NAS, you may have RAID (redundant array of inexpensive disks) mirroring set up. If so, you may be thinking to yourself, “I already have a local backup.” You should not think of RAID like this.
A RAID array keeps two or more copies of your data on separate discs and offers very good protection against single-drive failure. When one drive fails, the redundancy ensures your data is seamlessly available from the other drive while you replace the damaged one. It may also speed up disk read times since the data can be simultaneously read from two drives at once. This is not a backup solution, though. RAID is very good at protecting against data loss when a drive fails, but it will not protect against accidental deletion, ransomware, or most other data loss.
Similarly, local “snapshots” and live sync programs are a grey area. Clever marketing has made these products sound much more robust and ransomware-safe than they actually are. By default, some only save data to the local NAS and/or don't support versioning, making them unsuitable as a backup solution. If you are using one that saves multiple versions to an external location, though, they will do as a primary backup. You will still need an additional cloud backup to complete your 3-2-1-1-0 backup plan.
These instructions outline how to set up your main incremental backup task to an always-connected external drive or network mount. It will satisfy the “2 media” part of the 3-2-1 backup strategy. Before beginning, make sure your backup target is ready:
In Hyperbackup, click the + symbol to start configuring a new backup job. Then configure your new backup by following these steps:
To implement a 3-2-1-1-0 backup strategy, your off-site backup needs to be logically isolated from your source data. Of course, the simplest way of doing this is to make additional incremental backups on a separate external drive and physically carry it to some other storage location. This plan isn’t suitable for most home users, though. No matter how well-meaning a user is, there will be times when they forget or are unable to make the backup or they postpone transporting it to storage. There is also a danger of damaging the media during transport or storage, violating the “zero errors” part of our strategy.
A better, automated, error-free solution is to use S3-compatible (object-based) cloud storage through an API for your off-site backup. Backups made this way are logically separated from your NAS and stored as encrypted immutable binary large objects on a provider’s cloud servers. The backup is never actually mounted on your NAS, so it is not easily-accessible by ransomware should a computer attached to your NAS get infected. Fortunately, Hyperbackup has native support for S3 storage solutions. The downside is that you will probably need to pay for such a storage service, though prices are quite reasonable these days.
There are several companies that offer low-cost S3 cloud storage for home users, some more reputable and transparent with their pricing than others. Pricing models vary and, unfortunately, some companies have “hidden costs” with their service. Costs to be aware of include:
Each of these three options offer a variety of pricing plans, but they can broadly be be classified as pay-as-you-go or prepaid subscription:
If you have a good handle on exactly how much backup storage you will need over the course of a year, then a yearly subscription plan may be most cost-efficient for you. Otherwise, a pay-as-you-go plan will offer the smoothest experience.
Three of the most popular low-cost S3 storage solutions for home users are Backblaze B2, Synology C2, and iDrive e2. Each of these three companies have similar pricing and policies, which are summarized below, and each offers a small amount of free storage. (I am not affiliated in any way with any of these companies. I am including them because they are low-cost and popular with home users.)
Free storage | 10 GB | 15 GB | 10 GB |
Pay-as-you-go | $6/TB/month | N/A | $5/TB/month |
To the nearest | GB/hour | TB, prepaid | GB (1 TB minimum) |
Subscription | N/A (for home users) | $6.99/TB/month $69.99/TB/year |
$49.50/TB/year* |
Egress fees | Free for 3x monthly storage, then $0.01/GB | Free for 1x monthly storage, then $0.01/GB | Free for 3x monthly storage, then $0.01/GB |
API call fees | Free | Free | Free |
Pricing page | Link | Link | Link |
* iDrive offers a 50% discount for the first year of a yearly subscription |
Backblaze is well-established in the data storage industry and is probably the best-known player. Their no-nonsense pay-as-you-go pricing is attractive: you pay only for the storage you use, to the nearest gigabyte/hour, with no minimum charge. For example, if you use only an average of 250 GB across a month, you are billed only $1.50 for that month. With very generous free egress and API call allocations, they are a good fit for off-site backups.
One caveat for Backblaze, though, is that their TrustPilot ratings are pretty scary, with 66% of the reviews (at the time of this article) rating Backblaze as 1-star. Looking over the reviews, though, it seems that most or all of the low ratings are related to Backblaze’s personal computer mirroring product rather than their S3 object storage. Still, it pays to be informed.
Synology is a newer entrant in the data storage arena. Their pricing is higher than the other two companies, but in the same ballpark. Be aware, though, that Synology pushes their subscription-based “Personal Backup” hard on their website and tries to direct you away from the more flexible object-based storage. Also, Synology’s object lock with versioning seems as though it may be compatible with Hyperbackup.
However, unlike the other two companies, Synology requires you to estimate and pre-purchase a fixed amount of storage per month or year. If you overestimate, you still pay for the unused storage; if you underestimate, future backups are blocked until you upgrade your subscription. Although they claim to have pay-as-you-go pricing, this policy is actually a pre-paid subscription model whether you pay by the month or by the year.
iDrive is the most inexpensive of the three offerings covered here. Their pay-as-you model is similar to that of Backblaze, but it does have a 1 TB ($5.00) minimum per month. The iDrive website, though, is hard to navigate and has aggressive off-putting marketing for their subscription-based plans. They seem to intentionally hide information about their e2 object storage service, directing you instead to their live sync products, which are not appropriate 3-2-1-1-0 backups. Nonetheless, iDrive’s low pricing and pay-as-you-go model make their e2 storage service an attractive option if you trust the company.
Ultimately, any of the three options will suit most home users as an off-site backup solution. There is no wrong choice, but of the three I tested, I felt most comfortable with Backblaze, both as a service and as a company, despite their low TrustPilot reviews. I was turned-off by Synology’s misleading pricing policies and, based on Synology’s past business practices, I expect them to aggressively increase their already-higher prices as their user base grows. For iDrive, I was unimpressed with their clunky interface, aggressive marketing, and poorly-designed website. Still, the choice is yours. Each company offers a free plan with 10-15 GB of storage that does not require a payment method so, if you’re the methodical sort, you can test all three before making a choice.
Data in S3 object storage is stored in virtual containers called buckets. Regardless of which storage provider you use, you can set up as many buckets as you like and create unique access keys, retention rules, and permissions for each. For this article, though, we’ll use just one bucket and one access key for our off-site backup.
Specific instructions for creating and configuring data buckets and access keys vary slightly between S3 providers, but the configuration options are essentially the same for each. When you create a bucket you should choose these options, if available (not all options are given for all storage providers):
Synology C2 Options Setup (Click to enlarge)
Once the bucket is created, turn off versioning if it is enabled (“Lifecycle settings” if you are using Backblaze) and take note of the endpoint. This is the name of the server that Hyperbackup will contact to save your off-site backup.
Next, set up an access key that Hyperbackup will use to access the bucket you just created. It is good practice to create a separate access key for each bucket and each application that will access it. In our case, only Hyperbackup will access the bucket, so we only need to create one access key. When creating the key, use these options, if available:
Backblaze B2 Setup Options (Click to enlarge)
Once you create the key, you will be given a key ID and a secret key. Save the secret key someplace safe, at least until after you have set up the Hyperbackup task. If you lose the secret key there is no way to recover it! In that case, you will need to delete the old key and create a new one.
iDrive e2 Options Settings (Click to enlarge)
Setting up the Hyperbackup task for your off-site backup is very similar to the steps you followed for your local backup. Open Hyperbackup and click the + symbol to create a new backup task.
Hyperbackup S3 Backup Settings (Click to enlarge)
If you’ve followed the instructions in this article, you can breathe easier! You now have a working 3-2-1-1-0 backup strategy that is robust against data loss and ransomware.
Copyright 2024 Steve Derby for The Status Line (https://www.statusline.org/)
synologybackupcloud storageransomware
The door opens, and nineteen demons, each a cross between a carrot and a sledge hammer, march out from behind it, knock you senseless, and return, the last closing the door behind it.