PowerShell: Running Veeam backups.

The PowerShell script below allows you to run a Veeam backup.

This type of script can be used with a schedule task to initiate a backup.

# Load cmdlet Veeam
Add-PSSnapin VeeamPSSnapin
# Disconnect old session
# Connect Veeam Server
Connect-VBRServer -User "DOMAIN\administrator" -Password "password"
# Get job by Name
$bkjob = Get-VBRJob -Name "name of job"
# Start job
Start-VBRJob -Job $bkjob
# Disconnect session


Related Posts

Veeam : Automatically backup virtual machines on Hyper-V
In this tutorial, I'll explain how to automatically back up virtual machines (new and existing) with Veeam and Hyper-V. The trick is to use the option to back up the volume in Veeam job sources instead of adding the virtual machines manually to the b

SQL Server: Set up a backup plan
Introduction In this article, I will explain how to set up a backup plan with SQL Server. In this tutorial, we will use the wizard available in SSMS to configure the database to save as well as the schedule and then we will modify the plan to indicat

Veeam Agent 3 for Windows: Installation and Configuration
The Veeam Agent allows physical or virtual computer backup directly from Windows unlike Veeam Backup & Replication which manages the backup of virtual machines from the Hypervisor (VMware, Hyper-V). Version 3 of the agent is available since Janua