Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
axiomcrs
Service Provider
Posts: 30
Liked: never
Joined: May 23, 2016 7:51 pm
Contact:

Veeam agent for Windows commandline

Post by axiomcrs »

From the Windows gui for the Veeam local backup agent, can the checkbox for Edit Backup job->Advanced->Maintenance->Perform backup files health check get set from a Windows commandline?

Also, is this the only option available for backup files integrity checking in the Veeam Windows backup agent for a Windows commandline?

Have the same questions with Veeam B&R for physical workstations.
Mildur
Product Manager
Posts: 9848
Liked: 2607 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Veeam agent for Windows commandline

Post by Mildur »

Hi axiomcrs

Are you looking for a method to run a health check manually from command line?
On a VBR Server, you can use our Veeam Backup Validator.

But I recommend to use the automatic health check included in the agent job. If you can tell me, what you are trying to achieve, I can probably do a better recommendation.

Thanks
Fabian
Product Management Analyst @ Veeam Software
axiomcrs
Service Provider
Posts: 30
Liked: never
Joined: May 23, 2016 7:51 pm
Contact:

Re: Veeam agent for Windows commandline

Post by axiomcrs »

I am looking for a command to set that checkbox thru the commandline, since I have many Windows pcs using Veeam backup of a workstation. I would like the commandline command so that I can have that checkbox checked without remoting into each separately with a gui remote access tool. I can access each machine thru the commandline without disturbing the logged in user. I may even write a script to do this if this proves doable.

Perhaps a command like this from the commandline: veeambackup -set "perform backup files health check"
Mildur
Product Manager
Posts: 9848
Liked: 2607 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Veeam agent for Windows commandline

Post by Mildur »

You could use a Veeam Backup & Replication Server to centrally manage the backup policies for the agent.

If you do not have a VBR server, you can use the Veeam Agent Configurator to import a configuration file that contains all the job settings you need.
The configurator works for Veeam Agent for Workstation and Veeam Agent for Server Edition.

The health check part is documented on this page:
https://helpcenter.veeam.com/docs/agent ... 0#healthch

You could configure one Agent with the configuration you need, and then export the xml file. This xml file could be used as an example for the other agents.
https://helpcenter.veeam.com/docs/agent ... tml?ver=50
Product Management Analyst @ Veeam Software
axiomcrs
Service Provider
Posts: 30
Liked: never
Joined: May 23, 2016 7:51 pm
Contact:

Re: Veeam agent for Windows commandline

Post by axiomcrs »

So there is no way to do what I am seeking thru the commandline once the backups are already configured?
Mildur
Product Manager
Posts: 9848
Liked: 2607 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Veeam agent for Windows commandline

Post by Mildur »

Commandline works, you just have to use our veeam agent configurator and import the configuration xml.
That method works only on command line.

Thanks
Fabian
Product Management Analyst @ Veeam Software
axiomcrs
Service Provider
Posts: 30
Liked: never
Joined: May 23, 2016 7:51 pm
Contact:

Re: Veeam agent for Windows commandline

Post by axiomcrs »

How is the xml modified?
Mildur
Product Manager
Posts: 9848
Liked: 2607 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Veeam agent for Windows commandline

Post by Mildur »

XML Files can be edited with any text editor. The structure of the XML file is documented here:
https://helpcenter.veeam.com/docs/agent ... tml?ver=50

To enable health check for the job, the xml file must contain this part. This examples enables health check for the first saturday each month:

Code: Select all

<HealthCheck Enabled="True">
     <MonthlyInfo Week="1" DayOfWeek="0" Months="January, February, March, April, May, June, July, August, September, October, November, December" />
</HealthCheck>
I suggest start reading this page in the helpcenter on how to generate a xml template and then deploy it to all agents:
https://helpcenter.veeam.com/docs/agent ... tml?ver=50
Product Management Analyst @ Veeam Software
axiomcrs
Service Provider
Posts: 30
Liked: never
Joined: May 23, 2016 7:51 pm
Contact:

Re: Veeam agent for Windows commandline

Post by axiomcrs »

I am asking if the ability exists to turn on a certain feature thru a command in the commandline once the endpoints have already been configured. Modifying the xml file with a text editor (which I knew) is not a commandline task. Creating a standard xml template and deploying it requires touching all the endpoints which are already configured, and which is what I was trying to prevent. This seems to be starting all over.
Mildur
Product Manager
Posts: 9848
Liked: 2607 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Veeam agent for Windows commandline

Post by Mildur »

Then no. Not possible then. There is no parameter for an exe file to set such configuration.

Either use the command line to import a config file, or use a VBR server to manage the Agents.

Thanks
Fabian
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests