Veeam Agent for Linux setup

veeamagentlinux01

Veeam Agent for Linux is a new free backup product released by Veeam available for Debian-based and RedHat-based distributions.

Currently available as a public beta, Veeam Agent for Linux is able to perform image-based backups at the file and volume level and the backup type forever-incremental is enabled using the Veeam’s proprietary CBT driver.

 

Install Veeam Agent for Linux

Download Veeam Agent for Linux from Veeam's website and extract the packages needed for the Linux distribution in use (CentOS in the example):

  • veeamsnap-1.0.0.499-1.noarch.rpm
  • veeam-1.0.0.499-1.el6.x86_64.rpm

Using a tool like WinSCP, copy the two packages in the Linux VM.

veeamagentlinux02

List the copied files with the command:

# ll

veeamagentlinux03

Install first the package veeamsnap-1.0.0.499-1.noarch.rpm.

# rpm -ivh veeamsnap-1.0.0.499-1.noarch.rpm

veeamagentlinux04

Then install veeam-1.0.0.499-1.el6.x86_64.rpm package. Note that Veeam Agent for Linux is installed as a service in the machine.

# rpm -ivh veeam-1.0.0.499-1.el6.x86_64.rpm

veeamagentlinux05

In a RedHat/CentOS environment, Veeam Agent for Linux can be easily installed using the EPEL repository.

# yum install veeam*

veeamagentlinux06

 

Configure the Backup Job

From the console run the command veeam to access the software's UI. Press C (Configure) to configure the backup job.

# veeam

veeamagentlinux07

Enter the Job name then press Enter.

veeamagentlinux08

Select the Backup mode and press Enter.

veeamagentlinux09

Specify the Destination to store the backups and press Enter.

veeamagentlinux10

Select the Location (NFS or CIFS) and type the path. Here you can also specify the retention for the backups. Press Enter to continue.

veeamagentlinux11

Specify a Schedule for the backup job then press Enter.

veeamagentlinux12

Click Finish to save the backup job configuration. You can start the job immediately by enabling the Start job now option.

veeamagentlinux13

The backup process begins.

veeamagentlinux14

In the State column you can follow the progress of your backup. Press Enter for additional details.

veeamagentlinux15

In this screen you have all the backup details. When the backup job runs for the first time, a full backup will be taken. Next backup will be faster due to the CBT driver that backs up only what has changed on the disk since the last backup.

veeamagentlinux16

If the column State reports Success, the backup has completed successfully.

veeamagentlinux17

To check the backup files, create a directory in your machine and mount the NFS share used.

# mkdir /backup
# mount -t nfs lab-nasts421:/veeamnfs /backup

veeamagentlinux18List the backup files with the command:

# ll /backup/LAB_BackupJob1/

veeamagentlinux19

Press C (Configure) from main screen to configure additional backup jobs.

veeamagentlinux20

Select Configure new job and press Enter to setup a new job following same procedure previously explained.

veeamagentlinux21

 

Restore files

To restores files from backups, press R (Recover Files) from main screen.

veeamagentlinux22

The number on the right side of the backup job name indicates how many restore points are available for that specific backup. Press I (Import backup) to import the backup you want to recover the files from.

veeamagentlinux23

Navigate to the location where the backup files are stored (NFS share in the example), select the desired backup then press Enter.

veeamagentlinux24

Select the Restore Point you want to mount then press Enter.

veeamagentlinux25

The backup has been mounted in the specified directory.

veeamagentlinux26

Using a file manager like mc (Midnight Commander), you can restore files directly from the mounted backup.

veeamagentlinux27

 

Restore volumes

Inside the Veeam Agent archive you can find the Debian-based tool Veeam Recovery Media veeam-recovery-media-1.0.0.499.iso to restore your machine in case of need.

Boot the machine from the .iso file to run the Veeam Recovery Media tool. Select the Restore volumes item from main menu then press Enter.

veeamagentlinux28

Select Add shared folder to specify the backup location and press Enter.

veeamagentlinux29

Select the share type (NFS or CIFS), specify Server/Directory then press Enter.

veeamagentlinux30

Browse the mount point and select the backup to use. Select the volume to restore and type S (Start restore) to start the restore operation.

Keep in mind that all existing data will be erased in the target volume.
signature