Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
chussiHei
Novice
Posts: 6
Liked: 1 time
Joined: Nov 16, 2023 9:42 am
Full Name: Chris
Contact:

Create Backupjob via CLI

Post by chussiHei » 1 person likes this post

Hey, I try to automate my Veeam setup.

I am downloading veeam agent via winget packet manager.
Afterwards I like to create a (standard) backup job to backup the operating system only (systemdrive c: ) to drive T:

Any ideas how to realize ?

Chris

Next step would be to automatically create the recovery medium as ISO image to drive T: - would that be possible as well ?
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Create Backupjob via CLI

Post by Mildur »

Hello Chris

For Veeam Agents, you can use a tool named Veeam Agent Configurator. It allows you to import a configuration file to the Veeam Agents. https://helpcenter.veeam.com/docs/agent ... tml?ver=60

Another option you could use is Veeam Backup & Replication as a central manage and monitoring system for your Veeam Agents. YOu can use Veeam Backup & Replication for various tasks:
- Deploy Veeam Agents
- Configure and monitor Backup Jobs for your Veeam Agents in a single console
Next step would be to automatically create the recovery medium as ISO image to drive T: - would that be possible as well ?
You can create the recovery media per command line: https://helpcenter.veeam.com/docs/agent ... tml?ver=60

Code: Select all

"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /createrecoverymediaiso /f:<location>\<name>.iso
When you send backups to a Veeam Backup & Replication server, you can create a recovery media directly from the backup console.

Best,
Fabian
Product Management Analyst @ Veeam Software
chussiHei
Novice
Posts: 6
Liked: 1 time
Joined: Nov 16, 2023 9:42 am
Full Name: Chris
Contact:

Re: Create Backupjob via CLI

Post by chussiHei »

Hey, thanks so far.


I am using the standalone Windows Agent - would the work as well ?

I created a backup job in the GUI but I cannot find a xml file in my filesystem - where would it be stored ?

chris
chussiHei
Novice
Posts: 6
Liked: 1 time
Joined: Nov 16, 2023 9:42 am
Full Name: Chris
Contact:

Re: Create Backupjob via CLI

Post by chussiHei »

"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /createrecoverymediaiso /f:<location>\<name>.iso
--> will start a interactive new BackupJob Task

I would like to create the iso silently.
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Create Backupjob via CLI

Post by Mildur »

I am using the standalone Windows Agent - would the work as well ?
Yes, it's available for our standalone Workstation and Server edition.
I created a backup job in the GUI but I cannot find a xml file in my filesystem - where would it be stored ?
The user guide link I shared with you explains in Step 1 exactly how to create the XML file from a preconfigured agent.

Code: Select all

"C:\Program Files\Veeam\Endpoint Backup\Veeam.Agent.Configurator.exe" -export /f:C:\Veeam\configuration.xml
"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /createrecoverymediaiso /f:<location>\<name>.iso
--> will start a interactive new BackupJob Task

I would like to create the iso silently.
You can create the ISO once and use it for every machine. Especially if all clients use the same hardware and Agent build, the same ISO can be used for all of them.

Best,
Fabian
Product Management Analyst @ Veeam Software
chussiHei
Novice
Posts: 6
Liked: 1 time
Joined: Nov 16, 2023 9:42 am
Full Name: Chris
Contact:

Re: Create Backupjob via CLI

Post by chussiHei »

Hey, will not work - export does - import does not
1. Created Backup Job in the GUI
2. Exported Job
PS C:\Program Files\Veeam\Endpoint Backup> .\Veeam.Agent.Configurator.exe -export /f:D:\BackupMyMachine.xml -> File is created
ExitCode: 0
3. Deleted Job in the GUI
4. Import Job
PS C:\Program Files\Veeam\Endpoint Backup> .\Veeam.Agent.Configurator.exe -import /f:D:\BackupMyMachine.xml
ExitCode: 50

Errors:
Failed to perform the operation.
No correct configuration specified.
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Create Backupjob via CLI

Post by Mildur »

Do you have a license installed on the agent? Similar reports show me the error code 50 is shown when you are running our free version of Veeam Agent. The agent requires a Veeam Agent for Workstation or Veeam Agent for Server license to be able to use this feature.

Best,
Fabian
Product Management Analyst @ Veeam Software
chussiHei
Novice
Posts: 6
Liked: 1 time
Joined: Nov 16, 2023 9:42 am
Full Name: Chris
Contact:

Re: Create Backupjob via CLI

Post by chussiHei »

Yes, I am using the "free" Windows Agent for Windows - so no chance for creating the job automatically ?
chussiHei
Novice
Posts: 6
Liked: 1 time
Joined: Nov 16, 2023 9:42 am
Full Name: Chris
Contact:

Re: Create Backupjob via CLI

Post by chussiHei »

After updating to the newest version, I am also getting the correct feedback

PS C:\Program Files\Veeam\Endpoint Backup> .\Veeam.Agent.Configurator.exe -import /f:D:\BackupMyMachine.xml
ExitCode: 50

Errors:
Failed to perform the operation.
No correct configuration specified.

Warnings:
Failed to update backup job
Configuration ID: edfd399f-1785-49b6-a3ff-7a5d194a2cbc.
Backup job name: BackupMyMachine.
This feature is unavailable in the Free edition of Veeam Agent for Microsoft Windows

ExitCode: 50
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Create Backupjob via CLI

Post by Mildur »

Yes, Veeam Agent Configurator requires a license.
But you can use our Veeam Backup & Replication Community Edition to manage workstations in your own organization.
The community edition allows you to protect 10 workloads (instances) for free.
1x Veeam Agent for Microsoft Windows Server = 1x instance
3x Veeam Agent for Microsoft Windows Workstation = 1x instance

You can deploy, configure and protect 30 Workstations from the backup console if you only deploy Veeam Agent for Microsoft Windows Workstation.

Best,
Fabian
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests