Running Veeam PowerShell Session from Linux Machines
Veeam Backup & Replication supports usage of Veeam Backup PowerShell on Linux machines. Before you run the cmdlets on a Linux machine, you must create an optional repository for the Veeam package, install the Veeam Backup PowerShell module and import it to your Linux system. After that, you can connect to the backup server.
Consider the following requirements:
- You can run the Veeam Backup PowerShell module on the following Linux distributions:
- Rocky Linux 9 latest version.
- RHEL 9.6.
- To run Veeam Backup PowerShell cmdlets on a Linux machine, you must install the ASP.NET Core Runtime 8.0 environment or later and Windows PowerShell:
dnf install aspnetcore-runtime-8.0 -y dnf install powershell -y |
- To run Veeam PowerShell cmdlets, you must have Veeam Backup Administrator role. For more information, see Users and Roles.
- A machine that runs the PowerShell session must have Windows PowerShell version 7 installed.
- To utilize the Veeam Explorer PowerShell functionality, you must install the necessary Veeam Explorer PowerShell modules. For more information, see Starting PowerShell Sessions in the Veeam Explorers PowerShell Reference.
Configuring Veeam Backup PowerShell on Linux Machines
To be able to perform operations Veeam Backup PowerShell on Linux machines, perform the following steps:
- Create an optional Linux repository:
dnf install https://www.veeam.com/veeam-optional-release-latest-13.0.noarch.rpm -y |
- Install Veeam Backup PowerShell Module:
dnf install veeam-powershell -y |
- Import Veeam Backup PowerShell Module:
Import-Module /opt/veeam/powershell/Veeam.Backup.PowerShell/Veeam.Backup.PowerShell.psd1 |
- Connect to Veeam backup server:
Connect-VBRServer -Server "192.24.125.135" -User "TECH\Administrator" -Password "Password" |