GuidesTech

Synology Active Backup for Server

Introduction

Synology’s Active Backup for Server is a package specially designed to centralize data backups for Windows and Linux servers. It support backup modes like multi-version, mirroring and incremental. The source servers need not install additional backup agents as it uses SMB or rsync to perform the backups. Active Backup for Server is available on DSM 6.0 – 7185 and above versions. I was looking for a remote backup solution for my Amazon Lightsail virtual private server and Active Backup for Server seems to be up for the task.

A little background into Amazon Lightsail

Amazon Lightsail offers an easy-to-use platform to launch and manage virtual private servers (VPS). Both Windows and Linux VPS are available. In the backup department, Amazon Lightsail allows me to do a snapshot of the instance.

Being a VPS, I have (almost) full administrative control, including remote shell access. With remote shell access, I can probably do an off-site backup of the VPS’s data to my Synology DS3018xs or DS1817+ using Synology Active Backup for Server.

What is required to backup a Linux server?

There are some basic prerequisites before you can backup a Linux server using Synology Active Backup for Server. Most-if-not-all Linux server would have all these in their basic offerings.

As it is using rsync as the data synchronization and backup tool, your server will need to support one of the following connection modes:

  1. rsync module. Essentially the rsync daemon running on the server to be backed up. This mode does not support transport encryption.
  2. rsync shell mode over SSH. Basically running the rsync command in a shell window between two folders (and sub-folders). The SSH would provide transport encryption.
  3. rsync module mode over SSH. This seems to tunnel the connection to the rsync daemon over SSH. The SSH would provide transport encryption.

Other than the connection mode, the server need to support at least one of the following authentication modes:

  1. Password. This is required for rsync module and SSH access (if you are using it).
  2. SSH key. It also support SSH authentication via SSH key. However, you cannot use a passphrase protected SSH key.

Got all the prerequisites settled? It is time to explore Synology Active Backup for Server.

Setting up Active Backup for Server

The dashboard of Active Backup for Server. At a glance, you will be able to sieve out backup jobs that are having issues.
Since I am backing up my Amazon Lightsail Linux VPS, I will start from the ‘Linux Backup’ option.
There are three backup strategies or backup modes. They are multi-versioned, mirroring and incremental.
The various backup modes offered by Synology Active Backup for Server.
After choosing the backup mode, we will need to fill in the information of the remote server. I will be backing up using rsync shell over SSH and authenticate using SSH key.
With the information provided in the previous step, Active Backup for Server will connect to the remote server and list the folders available for backup.
After selecting the folders on the remote servers to be backup, the next step is to choose where are we storing the backups on the Synology NAS.
I will be backing up the data on the remote server periodically. I can easily do it via the scheduling function within Synology Active Backup for Server.
Setting the number of backup versions to keep and setting it to rotate once we hit the limit.
A summary of the backup task that we have configured.
Starting to backup my Linux virtual private server on Amazon Lightsail.
The backup task complete with warnings. So lets take a look at what happened.
It appears that Active Backup for Server cannot access files that are in used. This is pretty normal for database files.
In the logs, we can also see that the backup task complete with warnings.
Two versions of backup as I ran the backup task twice to test out the multi-versioning backup mode.
The directory structure and files are backed up.
The dashboard shows the number of servers that Active Backup for Server is protecting and how much data has been used.

Conclusion

Synology Active Backup for Server is free and it offers basic and cost-effective agent-less backup solution. It also supports Windows platform by backing up via SMB protocol.

One thing that you might want to take note of is that it is unable to backup files that are currently in use (or locked by other processes). This problem is not unique to Active Backup for Server. So you will encounter issues with database files, office documents, etc. currently opened for access (or edits).

If you are backing up a server running a database instance, you might want to exclude the database directories from the backup task and dump out the database(s) into a directory for the backup task to consume. Do note that storing password in shell script is not recommended.

Restoring the contents is as simply as selecting the task, choosing the folders (or files) and restoring them to:

  1. Custom location and overwriting any files in the location with the same name; or
  2. Custom location and skipping any files in the location with the same name; or
  3. Original location and overwriting any files in the location with the same name; or
  4. Original location and skipping any files in the location with the same name.

Lastly, Synology Active Backup for Server does what it is supposed to do. According to Synology’s page on Active Backup for Server, there will be a premium edition with advanced features will be released in the future with consideration of different workloads, enhance data backup and improved restore efficiency.

 

Treat shadowandy!

If these step-by-step guides have been very helpful to you and saved you a lot of time, please consider treating shadowandy to a cup of Starbucks.  

This site contains links to Amazon. These links will take you to some of the products mentioned in today’s article. As an Amazon Associate, I earn from qualifying purchases.
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments