Backup a Linux PC to a Synology NAS using Veeam!

In this tutorial, we are going to look at how you can use Veeam to backup a Linux PC to an SMB share. The SMB share will be hosted on a Synology NAS and after the backup is successful, we will look at restoring individual files/doing a bare-metal restore.

Before we get started, if your destination is a Synology NAS (like mine is), you need to ensure that SMB3 is enabled.

The tutorial below is for the Debian/Ubuntu operating system. Though the process is the same, the commands you will need to run are different. You can find those commands here.

1. Open File Services and access the Advanced Settings of the SMB share.

veeam1

2. Ensure that the Maximum SMB Protocol is set as SMB3.

veeam2

3. You will also need to ensure that the cifs-utils package is installed on your Linux PC.

sudo apt-get install cifs-utils

veeam0

Installation Instructions - Veeam Backup for Linux

1. Navigate to the Veeam website download page and download the Veeam Agent for Linux FREE.

veeam3

2. You will need to create a free account. When you are logged in, select the operating system you will be using (in my case, Ubuntu) and an architecture. Select Get Link and then Download, and download the file to your ~/Downloads folder.

veeam4

3. After the package is downloaded, navigate to the Downloads folder, set yourself as the root user, and then extract the package.

cd Downloads
sudo su
dpkg -i ./veeam-release* && apt-get update

veeam5

4. Install Veeam.

sudo apt install veeam

veeam6

Veeam Configuration Instructions

1. Now that Veeam is installed, we can configure it. Enter the command below to access the configurator.

veeam

veeam7

2. You must accept the terms and press enter.

veeam8

3. You will be asked to patch the drivers into the recovery ISO. I have tested this, and it has never worked for me, but your mileage may vary. In a later step, I will go over how to use the default Veeam recovery ISO. Press enter to skip this step.

4. The next step will ask you to install a license. If you have a license, you can browse to the location and install it. If you don’t have a license, you can press enter to skip this step.

5. You will now be brought to the main screen to access/configure your Veeam installation. Press C to create your backup job.

veeam9

6. You will now need to configure a few settings:

  • Name: give your backup job a name and press enter.
  • Backup Mode: select the backup mode you’d like to use. I will be backing up my entire machine.
  • Destination: At this step, I will be backing up my system to a Synology NAS’s SMB share. If you’re backing up your system locally, select Local. Press Enter.veeam10
  • Network: Select SMB (if you’re using SMB), and enter the information requested. If you don’t have a domain, leave it blank.veeam11
  • Advanced: If you’d like to enable any advanced options (like backup encryption), you can do it here.
  • Schedule: Specify when the backup job should run. I will be running this backup job daily at 6:00 AM.

veeam12

7. You will then receive a confirmation page. Select Finish.

veeam13
8. Your backup job will now run.

veeam14

Recover Backup Files

Veeam gives you the option of mounting your backup to a local folder and navigating/restoring the files.

1. At the Veeam backup page, press R to recover files.

veeam27

2. You will then need to select your backup and the restore point.

3. You will receive a message stating that your backup has been mounted to a local folder.

veeam28

4. You can now navigate and restore files from that mounted folder!

veeam29

Complete a Bare-Metal Restore

Veeam gives you the option of completing a bare-metal restore using recovery media.

1. Navigate to the Veeam download page, login, and select your operating system.

2. At the bottom of the page, you will see an Additional Downloads section that has the Veeam recovery media. Download the ISO image.

veeam15

3. After the ISO image is downloaded, you will need to create a bootable USB drive and boot your PC from the USB drive. I will be using a virtual machine to demo this functionality.

4. Accept the license and continue.

veeam16

5. At this point, since we are doing a bare-metal restore, select restore volumes.

veeam17

6. Since we backed up our system using SMB, we will restore using a shared folder. Select Add Shared Folder.

veeam18

7. Enter the SMB information that we used for our backup earlier.

veeam19

8. Select the directory and backup file.

veeam20

9. Select the restore point you’d like to restore from and select enter.

10. Select the drive you’d like to restore the volumes to.

veeam22

11. Select Restore whole disk from…

veeam23

12. Select the boot partition.

veeam24

13. Press S to start the restore and enter to start recovery.

veeam25

14. Your system will now restore. When it’s done, reboot. Your system should now be accessible!

veeam26

 

Conclusion

The Veeam agent for Linux is the perfect backup tool. If you’re looking to simply back up files, our Rsync tutorials will show you how you can easily do that. However, if you’re looking for a backup tool that can do bare-metal restores, Veeam is it!

Leave any questions you have in the comments!

This Post Has 5 Comments

  1. The tutorial is excellent man, it was very helpful to me. I have been tested another solution of backup but this is surprising to me with the visual and resources.

    I give you some advice about the letter of your tutorial!
    The color black is better to see the information and use red, green, or blue to emphasize the important information, commands for example

    1. I will certainly keep that in mind moving forward and truly appreciate the feedback! Thanks a lot for checking out the tutorial!

  2. Faced the following error on Bare-Metal Restore.
    [error] Storage version [13] is not supported for read-only access
    [error] Failed to restore file from local backup. VFS link: [Summary.xml]. Traget fil…
    [error] Agent failed to process method {DataTransfer.RestoreText}

    1. Hmm, I haven’t experienced that error. Are you sure it’s able to access the data? Veeam has GREAT support, so it might be worth contacting them to see if they’ve seen it.

    2. Hello kasiang,

      were you able to solve the problem?
      I just have the same problem and can’t find any solution

Leave a Reply

Close Menu