Running Veeam PowerShell Session from Linux Machines
Veeam Backup & Replication supports usage of Veeam Backup PowerShell on a Veeam Software Appliance or other Linux machines. To run cmdlets on a Veeam Software Appliance, you need to enable SSH connections and root shell access and import the Veeam Backup PowerShell Module. 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 following components:
- Install the ASP.NET Core Runtime 8.0 environment or later:
dnf install aspnetcore-runtime-8.0 -y |
- Install Windows PowerShell. For more information, see Microsoft Docs.
- 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 Veeam Software Appliance
- Enable SSH connections and root shell access to the Veeam Software Appliance. For more information, see the Configuring Remote Access Settings section of the Veeam Backup & Replication User Guide.
- Start a PowerShell session to use PowerShell commands.
pwsh |
- Import the Veeam Backup PowerShell Module:
Import-Module /opt/veeam/powershell/Veeam.Backup.PowerShell/Veeam.Backup.PowerShell.psd1 |
- Connect to the Veeam backup server:
Connect-VBRServer -Server "192.24.125.135" -User "veeamadmin" -Password "Password" |
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://repository.veeam.com/rocky/9.2/vbr/13.0/optional/x86_64/veeam-optional-release-latest-13.0.1.180-1.x86_64.rpm -y |
- Install the Veeam Backup PowerShell Module:
dnf install veeam-powershell -y |
- Start a PowerShell session to use PowerShell commands.
pwsh |
- Import the Veeam Backup PowerShell Module:
Import-Module /opt/veeam/powershell/Veeam.Backup.PowerShell/Veeam.Backup.PowerShell.psd1 |
- Connect to a Veeam backup server:
Connect-VBRServer -Server "192.24.125.135" -User "veeamadmin" -Password "Password" |