Backup your Ubuntu Linode to your QNAP NAS with Nakivo
October 13, 2020

Backup your Ubuntu Linode to your QNAP NAS with Nakivo

I planned to use a three-pronged approach to backup up my Ubuntu Linodes (until I realized that Nakivo's pricing is not as it seems):

  1. I use Linode's own backup service
  2. Duplicati to back up specific directories & mysqldump of my databases
  3. Nakivo Backup to back up an image of each node to my QNAP NAS

For an overview of my backup strategy, as well as alternative software and solutions, see my post "Backing up a Headless Ubuntu Web Server (to Cloud & QNAP NAS)".

Misleading pricing on Nakivo's website?

However, after getting it all to work did I notice this little pop-up on Nakivo's website:

So, whereas on first glance you might think that a perpetual "Pro Essentials" license for a linux server would be $50, in fact you have to pay for "2 bundles of 5 servers", or $500!

If this doesn't bother you, or you are open to signing up for their subscription service (which is reasonably priced at $25/year/server), then read on...

Setting up Nakivo Transporter on your Linode from you QNAP NAS

Before you start, install Nakivo Backup from the QNAP App Center:

You only need Nakivo Backup on your NAS. Install Nakivo Transporter only if you wish to use your server as a source for backup data, and you have the full Nakivo Backup program installed somewhere else.

The transporter component will have to be installed on your node, but Nakivo Backup will do that for you.

(1) Enable un/pw auth on your node

If you have a properly secured Linode, then you have username/password auth turned off. You will have to temporarily enable it for Nakivo to be able to log into the machine and install the transporter.

Although you could manually install the transporter on your node following Nakivo's docs, this is not useful because when you then try to add the machine in Nakivo Backup, it will try to install it again and complain that the transporter is already installed.

So, just enable username/password auth.

sudo vi /etc/ssh/sshd_config

Find the line "PasswordAuthentication no" and change it to "PasswordAuthentication yes". Save the file & reload sshd to apply:

sudo service sshd restart

(2) Allow Nakivo through your Firewall

You can configure which ports the transporter uses in Nakivo Backup:

The default ports are as you see above. You will have to allow  I use UFW so for me this was simple enough:

sudo ufw allow from 111.222.333.0/24 to any port 9446:10000 proto tcp

If you have a fix IP address you can specify that, or a subnet as I did. See How To Set Up a Firewall with UFW on Ubuntu 14.04 for help on setting up and using UFW.

(3) Register the machine with Nakivo Backup

Open Nakivo Backup on your NAS and go to Settings → Inventory to add a new machine. Specify the display name, type, hostname etc.

It will take a few minutes for the transporter to be installed. Be patient.

You can check the progress of the installation of the transporter on the "Transporters" tab:

(4) Disable un/pw auth on your node!

Once Nakivo backup installs the transporter, you no longer need username/password authentication to be enabled on your node.

Done!

You can now define a new backup for your machine (Dashboard → Create → Physical machine backup), set up email alerts (Settings → General → Email Notifications), run a backup & dry-run a restore.

Tip: when creating your backup job, on the "Destination" page, click Advanced options...

...and now you can exclude a disk from the backup:

I also recommend enabling Network acceleration on the options page:

Nakivo has several outstanding security vulnerabilities at the moment, so consider reviewing Nakivo's Security Considerations before calling it a day.

Backup your Ubuntu Linode to your QNAP NAS with Nakivo
Share this