Comprehensive data protection for all workloads
Post Reply
gerards
Influencer
Posts: 12
Liked: never
Joined: Nov 01, 2018 10:18 am
Full Name: Gerard Schoenmakers
Contact:

howto run script after backup

Post by gerards »

I would like run a script (batchfile) after a suc6full backup has run (to create a file that works as a "flag" for another process so if the file exist another scripts kicks in)

I've configured it in the backup job, but it exits with error 1 according to veeam

How do i know which user of veeam runs the script, so i can give this veeam user the proper permissions to write the file that the script is trying to create.

Kind Regards
Gerard
DGrinev
Veteran
Posts: 1943
Liked: 247 times
Joined: Dec 01, 2016 3:49 pm
Full Name: Dmitry Grinev
Location: St.Petersburg
Contact:

Re: howto run script after backup

Post by DGrinev »

Hi Gerard,

Scripts are executed under the Service Account which the Veeam Backup Service is running.
Please review the article in the User Guide for additional information. Thanks!
gerards
Influencer
Posts: 12
Liked: never
Joined: Nov 01, 2018 10:18 am
Full Name: Gerard Schoenmakers
Contact:

Re: howto run script after backup

Post by gerards »

Thank you kindly for you reply,

The article you are reffering to is the article i used to program the script, but i am unbale to find WHICH account is running the veeam backup service.
Is there a powershell command which i can use to SEE WHICH ACCOUNT is running the veeam backup service?

Kind Regards
Gerard
foggy
Veeam Software
Posts: 21138
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: howto run script after backup

Post by foggy »

You can open the service properties and check the account there.
gerards
Influencer
Posts: 12
Liked: never
Joined: Nov 01, 2018 10:18 am
Full Name: Gerard Schoenmakers
Contact:

Re: howto run script after backup

Post by gerards »

Hmm i gues you don't understand my question.

WHICH USER is running the Veeam backup service so i can give this user the permission to write the "flag" file to another machine in the domain.

We installed the backup service as the domain admin, but the file is'nt written and the backup job that suppose to run the script says: "post-job script terminated with exit code 1"
And NO FILE is written to the target by the batchfile that is suppose to copy the empty file called "backupready.txt"

If this txt file exist, anther job is suppose to start running...

Kind Regards
Gerard
foggy
Veeam Software
Posts: 21138
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: howto run script after backup

Post by foggy »

Please check suggestions given in this thread and feel free to ask support for assistance in case nothing mentioned there helps.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], jeroenburen and 143 guests