Orion Server backup
Backup using Veeam
Veeam Agent for Linux is a data protection and disaster recovery solution for physical endpoints and virtual machines running Linux-based operating systems.
We would recommend following the latest Veeam instructions available on their website.
This guide provides an overview and example of the process.
Backup prerequisites
The Orion Server requires preperation in advance of installing Veeam for backup and recovery. This page assumes that the Orion Server has been configured as described on the Ubuntu Install guide and that either the console for the server is directly accessible, or via SSH.
With an example of an external USB drive, ensure it is mounted at every boot. Display the disks on the system after connecting the external USB backup drive:
lsblk
In the example output below, the operating system shows as volume
nvme0n1
and connected is a120GB
drive as/dev/sda
.bashorion@orion-server:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 119.2G 0 disk └─sda1 8:1 0 119.2G 0 part /media/usb nvme0n1 259:0 0 476.9G 0 disk ├─nvme0n1p1 259:1 0 1G 0 part /boot/efi ├─nvme0n1p2 259:2 0 2G 0 part /boot └─nvme0n1p3 259:3 0 473.9G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 100G 0 lvm /
Create a folder in media as a mount point then mount the drive:
bashsudo mkdir /media/usb sudo mount /dev/sda1 /media/usb/
Get the device UUID:
sudo blkid /dev/sda1
We need this to automatically mount the drive at boot.
bashorion@orion-server:~$ sudo blkid /dev/sda1 /dev/sda1: LABEL="backups" UUID="12345678-1234-5678-1234-1abc0de4a237" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="backups" PARTUUID="a12b3456-7cde-8f9f-gh1f-2345678g912h"
Install nano then edit the
fstab
to ensure the usb volume is mounted at each boot:bashsudo apt install -y nano sudo nano /etc/fstab
Add an entry similar to the following, but using the UUID value to the bottom of the fstab:
UUID=12345678-1234-5678-1234-1abc0de4a237 /media/usb auto nosuid,nodev,nofail 0 0
Install Veeam Agent for Linux
Signup and download the free version of the Veeam Agent for Linux.
From the same network as the Orion Server, the scp
command line program can be used to send the deb file across.
If the ssh key is named mykey
and the public key is in the authorized_keys file on the Orion Server, the command would look like:scp -i ~/.ssh/mykey veeam-release-deb_1.0.8_amd64.deb username@orion-server:/home/USER
On the Orion Server, given the example version number of 1.0.8, now install the agent using:
sudo dpkg -i ./veeam-release-deb_1.0.8_amd64.deb
sudo apt update
sudo apt install -y veeam
Optional step depending on system configuration:
If secure boot is enabled, expect the following message:
-----------------------
Configuring Secure Boot
-----------------------
Your system has UEFI Secure Boot enabled.
Please refer to the hardware manufacturer instructions for managing the secure boot enrollment keys. The password from the previous step needs to be entered at this point.
Now launch Veeam:sudo veeam
Configure backups
Documentation for further configuration can be found on the Veeam website.