
Veeam is a backup and replication software that offers reliable data protection solutions for businesses. Written in C#, PowerShell, Java, and Python, Veeam allows faster integration with cloud storage providers such as Vultr Block Storage.
You can use Veeam to sync data between your Cloud Compute instance and a Vultr Block Storage instance. Veeam also supports automatic backup jobs that run at flexible timings depending on how often you want to back up data.
This guide walks you through setting up automatic backups with Veeam and Vultr Block Storage.
Before you begin:
To use Veeam, you must install the Veeam Agent for Linux. This tool offers comprehensive data backup capabilities for various Linux distributions. Follow the steps below to install the tool.
Visit the following resource to grab the latest download link for Debian/Ubuntu.
Switch to the /tmp directory.
Download the Veeam repository package.
Install the Veeam repository.
Update the package information index and install Veeam.
The Veeam Agent for Linux requires two steps to create a file-level backup:
Creating a repository.
In the above command:
--name: Defines the name of the new repository.--location: Specifies the remote location where you want to backup data. This guide shows you how to backup the data in Vultr Block Storage.Creating a backup job.
In the above command:
--name: Defines the name of the backup. --reponame : Defines the repository name. --includedirs Specifies the source directory path that you want to back up. For instance, ~/project. --daily --at 00:30: Sets a backup schedule. Apart from daily schedule, Veeam also supports weekly and monthly schedules. --nosnap: -Allows Veeam to perform a regular quicker (non-application-aware) backup.
Follow the steps below to create a Veeam file-level backup:
Create a new project directory under your user home directory. In a production environment, you may skip this command and select an existing directory.
Navigate to the ~/project directory.
Run the following touch command to create two sample files under the directory.
Create a repository where you want to back up the files under the Vultr Block Storage path. For instance, /mnt/blockstorage/project.
Reply with yes in the next two prompts and press Enter each time to accept the Veeam Software license agreement.
The Veeam Software creates a new repository and displays the following message.
View the repository list.
Output.
Create a new Veeam backup job. Ensure the --reponame is the same as the repository name that you have created above. That is, Veeammblockstorage.
Output.
View the Veeam Job List.
Output.
Start the backup job manually. This step ensures you have the first backup before the schedule runs.
Output.
The Veeam agent allows you to restore files from the repository if you lose the original files. Follow the steps below to restore the files.
Delete the files from the original source directory.
Ensure the local source directory is empty.
Output
View the Veeam agent backups and note the job ID. For instance, 0c4bf14a-5d5b-4d20-ba23-f5303611e667.
Output:
Mount the backup to a local directory (For instance, /tmp/restore) in your Cloud compute instance by specifying the job ID in the following command.
Copy the files from the mount location to the source directory.
Ensure Veeam has restored the files.
Output
For best results, always follow the 321 backup rule to ensure data redundancy, diversity, and geographic separation:
This guide walked you through setting up automatic backups with Veeam and Vultr Block Storage. You have learned how to use the Veeam Agent for Linux to create a repository and set up a backup job. Then, you have mounted a backup to a local directory to restore files.
0 Comments
Be the first to comment and share your perspective with the community.