13 January 2022

Unraid Server Backups Using LuckyBackup

This guide shows you step by step how to back up one Unraid server to another Unraid server using LuckyBackup.

Lucky Backup
This guide is a guest blog by Stefano Partida of SPXLabs with an update from ich777

In this guide, we will be backing up one Unraid server to another Unraid server using LuckyBackup. Follow along for a relatively simple and mostly painless install process!

What is LuckyBackup?

LuckyBackup is a very user-friendly GUI backup container that uses rsync on the backend and only transfers over any changes rather than all your data, all of the time.
 

LuckyBackup Features

  • Backup using snapshots
  • Various checks to keep data safe
  • Simulation mode
  • Remote connections
  • Easy restore procedure
  • Add/remove any rsync option
  • Synchronize folders
  • Exclude data from tasks
  • Execute other commands before or after a task
  • Scheduling (cron jobs)
  • Tray notification support
  • e-mail reports

The Setup

Both the Main Server and Backup Server are plugged into the same 10Gigabit switch. The Main Server is where all of my files, pictures, videos, and ISO’s are; we want to copy those over to our Backup Server just in case something goes wrong. Both servers are running Unraid. The Backup Server has pre-created Shares that are named identically to my Main/Primary Server.

Guide

Unraid Version: 6.9.2

Community Apps Version: 2022.01.02a

This guide assumes you have the Community Apps Plugin already installed.

Main Server Setup

Using the Community Apps Plugin, go ahead and search, download, and install the LuckyBackup container by ich777

Grafik png cd78537b92f03fd794b9593cb02077fc

LuckyBackup Container Setup

First, in the Docker tab left-click on the luckyBackup container and open a console window. The container should be running/started at this point.

Screen Shot2022 01 03at3 09 59 PM

Next, we need to enter the following commands into the Console window:

  cat /luckybackup/.ssh/ssh_host_rsa_key.pub
Grafik png f78a424746c1fc6023a377e02a9a3b6b

Now, simply mark the whole lines starting from ssh all the way to the last line and click the right mouse button once. Click copy from the context menu to copy the contents:

Grafik png 713521bcd730af1f68fab7edd0c4d0ce

Mark only until the end and then close the window. Then open up a terminal from your main server with this icon: >_

Type in: 

nano ~/.ssh/authorized_keys

In nano, right click somewhere on the black free space and select paste from the context menu:

Grafik thumb png ebad811cc602c6459ec6597a4f42d7a2

Next, you have to press on your keyboard: "CTRL + X" followed by "Y" followed by "ENTER" <- this will save the file.

After that, I created a test directory on my main server with a file in it at

/tmp/test/testfile.txt

Then I opened the WebUI from luckyBackup on my test server and created the test sync:

Grafik thumb png 353060755bbac06b362d34b52f3bedc0

Please note that you have to create the folder in the destination if it does not exist!

I would also recommend clicking "Do NOT create extra directory". Otherwise, you will end up with another folder called test.

Then, I clicked on Advanced and set up the key file:

Grafik png 0a9202629b1086b48411fd29a68d1ddd

Please be sure to select this exact file and set it up as source.

Then I selected the sync and clicked start:

Grafik png 91ef6e616cab6e99ff9d773014eb4f1d

Here you can see that the sync from my main server to the test server was successful:

Grafik png d3ecdd1a688f04a0dfb9a1d1e0b0e925

I also made a screenshot where you can see that the test file is now also available in the correct directory on my test server:

Grafik png f61bd7ea884674b3437d1a49da2126f5

What back up solution do you use?

Let us know in the Unraid forums!