How to Backup Linux Server with Veeam Agent
Tags: linux, veeam, backup, cloud
Published: 2022-04-01 11:50:57

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](https://www.veeam.com/linux-backup-download.html?ad=in-text-link) and copy the deb file your ubuntu machine where you plan to install the agent.
<a href="https://serverspace.io/ref/344960"><img src="https://static.serverspace.io/referral/banners/Serverspace_600h90.png"></a>
## 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.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c6ft7wmxtql9ozra544e.jpg)
As a destination for the system backup, we select Shared Folder.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m8z9qsgos7oikjk4fd8.jpg)
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.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2q3rin8usqt408mk24a7.jpg)
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.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qpc1139zoqinymrs1j1w.jpg)
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.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0konc8nfg1xx1vgcntl.jpg)
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
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2pwqwz8u0mg78mmri15n.jpg)
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.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjerlz2gfixrp2ncq36e.jpg)
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`
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eerq005pzec6gyyt6yqs.jpg)
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
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/473jwwxb9131yr93dbo1.jpg)
After completing a system backup, you can check the contents of your shared drive by accessing it directly from the Windows.   
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w0osaj06vyfxq6hgcldv.jpg)
This completes the configuration of a full server backup. The system backup is now in a safe place.

If you are here for the first time and you are looking for high-quality [virtual servers](https://serverspace.io/services/vps-server/), visit [Serverspace](https://serverspace.io/). We promise that you will get the best [VPS](https://serverspace.io/services/vps-server/) experience ever.

The article was first seen here: https://serverspace.io/support/help/how-to-backup-linux-server-with-veeam-agent/