Serverspace Black Friday
DF
Daniil Fedorov
August 4, 2021
Updated June 7, 2023

How to Backup Linux Server with Veeam Agent

Linux

In our example we will use Ubuntu 20.04 OS. So you need to download the Veeam agent software from here Veeam Software for Enterprise and copy the deb file your ubuntu machine where you plan to install the agent.

Veeam Agent Installation

Go to the directory where you have saved the veeam-release package and install the package with the following commands for Debian / Ubuntu

dpkg -i ./veeam-release* && apt-get update

And just run the package installation

sudo apt-get install veeam -y

After installation finishes just run

veeam

and veeam agent gui will launch.

Veeam Agent Configuration

Backing up with Veeam Agent for Linux is very easy. There aren't too many options to choose from, so you can check them out for yourself. In our case I will make a full backup of the whole system and move it to samba share.
So lets create a task to backup our server to our storage using smb.

veeam

We are immediately prompted to specify the license file. Since we don't have a license, we refuse. We are greeted by the main window of the program.
Press C (configure) to setup a backup job. We give it a name for the job and then choose that we want to backup entire machine.

58_svluf4fhgog

As a destination for the system backup, we select Shared Folder.

29_cyhtbgibzni

Next, you will need to enter access parameters to the backup location. In my example I’ve shared a folder on a Windows server, so I’ve chosen SMB share.

18_7sg1o8m6xky

The Restore Points item specifies the depth of the archive. That's the number of copies you want to keep on the server. If you make a backup every day and specify 14, the system backups for the last 14 days will be preserved. If you backup every other day, then 28 days, and so on.

26_59maabdmuqc

You can create several tasks with different backup depths. For example: every day 7 backups, once a week 4, and once a month 12. This way you will always have the last 7 backups of the system for that week. Then one backup per week for the last month and 12 backups per month for the last year. Press Enter to continue
Advanced options disabled by default for free version, but if you have a license I recommend to encrypt the backup.

Press enter to continue and see the backup schedule, in free version you cannot edit this also.

51_sudt4tgwtuu

Press enter and fishish.
The backup will start ASAP. If you get an error:
The current system does not support cifs. Please install the cifs client package.
Install the cifs client package:

sudo apt-get install cifs-utils

Restart veeam and continue.
Now you have started the backup process. You can monitor its progress.
If you get an error that snapshot creation failed

96_y-oxnaubt0y

Try the following:

We need to get deeper to the root cause so we go to the Backup log folder of VEEAM /var/log/veeam/Backup
Navigate to the job log and open it with text editor, for example nano.

9_jitrbe8-w6e

We found that modeprobe failed to load module veeamsnap
For this we need to install linux-headers first, just check your kernel version :

uname -r

65_pxjfrgykyle

And install the right linux-headers

sudo apt-get install linux-headers-5.4.0.-74-generic -y

And now we need to load veeamsnap:

modprobe veeamsnap

Run veeam again and press S. It should work now

68_nhnbei1zjno

After completing a system backup, you can check the contents of your shared drive by accessing it directly from the Windows.

82_kzr1r7sczcw

This completes the configuration of a full server backup. The system backup is now in a safe place.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
33145 North Miami, FL 2520 Coral Way apt 2-135
+1 302 425-97-76
700 300
ITGLOBAL.COM CORP
700 300
We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.