We hope you find this tutorial helpful. In addition to guides like this one, we provide simple cloud infrastructure for developers. Learn more →

How To Back Up a Synology NAS to DigitalOcean Spaces

PostedDecember 6, 2017 1.3k views Object Storage Backups

Introduction

Synology makes a variety of home and business network attached storage devices (NAS) running their Linux-based DiskStation Manager software.

DigitalOcean Spaces is an object storage service that makes it easy and cost-effective to store and retrieve large amounts of data.

In this tutorial, we will set up a Synology NAS to back up data to a DigitalOcean Space, using Synology's Hyper Backup software.

Prerequisites

To complete this tutorial, you will need a Synology NAS, with some shared folders or iSCSI LUNs already created.

You will also need to know the following details about your Space:

  • Access Key
  • Secret Key
  • Server URL
  • Bucket Name

You can learn how to set up a Space and get all the above information by following our tutorial How To Create a DigitalOcean Space and API Key.

Once you have your information, log in to your Synology's web interface as an admin-enabled user, and proceed to Step 1 to install the backup software.

Step 1 — Installing the Hyper Backup Software

Upon logging in you'll see DSM's desktop interface:

Synology DSM's desktop

To install the Hyper Backup software, click on the Package Center icon. The application will open. In the left-hand column of Package Center, select Backup to browse backup apps. Scroll down a bit and you'll find the Hyper Backup software:

Synology Package Center, with Hyper Backup entry highlighted

Click the Install button to install the software. You'll see some status updates as the application downloads and installs, then the button will change to Open. You may click the button to open Hyper Backup, or you can launch it from the DSM main menu by clicking the main menu button in the upper-left corner of your screen:

Synology DSM's main menu screen

You'll be shown a list of applications. Click Hyper Backup and the application will open.

Next, we'll walk through the steps to set up a backup.

Step 2 — Setting Up a Backup to Spaces

When you first open up Hyper Backup, you'll be presented with a Backup Wizard screen:

Hyper Backup's Backup Wizard opening screen listing backup destinations

This wizard will take us through five steps in order to configure our first backup.

First, select S3 Storage to begin setting up the Spaces storage destination. Then click Next to continue.

Hyper Backup's Backup Wizard interface for creating a new backup task

This step will set up a connection to Spaces. Let's walk through the options:

  • S3 Server: select Custom Server URL from the dropdown
  • Server address: should be your Spaces server address, which will be the datacenter region you chose when you created the Space, plus digitaloceanspaces.com. In this case we've entered nyc3.digitaloceanspaces.com
  • Access Key: your Spaces access key
  • Secret Key: your Spaces secret key
  • Bucket name: when you click on this form field, the application will attempt to connect to the server and find all available buckets (individual Spaces). Select the appropriate Space from the resulting list, or you can make a new Space if necessary
  • Directory: this is the directory within your Space where the backup data will be stored

Click Next to continue to the next step.

Hyper Backup's Backup Wizard interface for selecting which folders or LUNs to back up

You'll be asked to select the items you'd like to back up. Here we've selected the Storage volume. You can also drill down into the directory hierarchy and pick individual subdirectories to back up.

Hit Next after you've made your selection.

Hyper Backup's Backup Wizard interface for configuring backup options

This next step has many options for controlling the compression, encryption, and scheduling of the backup task. First, give the task a name in the Task field. We chose Example Backup in this case.

Next, you must check the Enable transfer encryption checkbox. Spaces is available over an encrypted HTTPS connection only, so your connection will fail without this box selected.

The rest of the defaults are fine as they are, but you may want to enable client-side encryption of your backups. This means that your NAS will encrypt the backup files before sending them to Spaces. This is different from the Enable transfer encryption option we just selected, as that option secures the files during transfer only. With client-side encryption, all backup data will be fully encrypted on the Spaces server.

You may also want to update the backup and integrity check schedules. Pick a time when the added bandwidth and processor load won’t interfere with your own use of the NAS. Typically this is late at night.

Click Next to go to the final step.

Hyper Backup's Backup Wizard interface for configuring backup rotations

This step configures backup rotations, where old backups will be systematically deleted to reduce storage usage. The Smart Recycle option is a good default that will retain 24 hours of hourly backups, one month of daily backups, and as many weekly backups as possible before hitting the total number specified in the Number of versions option.

If you need different options, choose Customized retention and then click Settings to set that up.

When your rotation settings are all set, click Apply to finish the setup. You will be prompted to back up immediately. If you choose not to, your first backup will happen according to the schedule you set. Otherwise, your backup will start right away. Either way, you'll now be taken to the main Hyper Backup interface:

Synology's Hyper Backup software interface

Using this interface, you can set up more backup tasks, browse and restore backed up data, and monitor the status of in-progress backups.

Conclusion

In this tutorial we installed Synology's Hyper Backup software, and configured a backup to the DigitalOcean Spaces object storage service. For more detailed information on the configuration and use of Hyper Backup, please refer to the official documentation.

0 Comments

Creative Commons License