Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
asgard79
Influencer
Posts: 12
Liked: never
Joined: Jul 07, 2021 8:46 am
Contact:

Post backup script

Post by asgard79 »

Hello,
I need to script a simple action, like delete some directories, after sucessfull backup.
I discover Veeam option to do that. If I understand, I must create a primary script (with windows extension as .ps1 or bat). This script is called by veeam. Secondary script contains command to execute.
In my case, I run a putty command to establish communication with my linux agent. When I run this script manually, all is good. But when backup job launch it, i've a time-out error.

My primary script is :
puttypath\Putty.exe" -ssh userlinux@hostname -pw password -m Script.sh

My secondary script (here script.sh) create a touch file in /tmp.

First of all, can you help me to understand time out ? Secondary, is there other option to crypt password ?

Thanks
chris.childerhose
Veeam Vanguard
Posts: 638
Liked: 154 times
Joined: Aug 13, 2014 6:03 pm
Full Name: Chris Childerhose
Location: Toronto, ON
Contact:

Re: Post backup script

Post by chris.childerhose »

The service account for Veeam - does it have access to the Linux server you are trying to get the scripts to run on? Check this out - https://helpcenter.veeam.com/docs/backu ... ml?ver=110
-----------------------
Chris Childerhose
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Post backup script

Post by PTide »

Hi,

It depends on what kind of post script you are using and what kind of management mode for Agent you've selected. In one scenario you can get your script executed directly on the Agent machine, while in the other scenario the script will be executed on VBR server.

Please take a look at this page to learn more about the differences between different scenarios.

Thanks!
asgard79
Influencer
Posts: 12
Liked: never
Joined: Jul 07, 2021 8:46 am
Contact:

Re: Post backup script

Post by asgard79 »

Thanks.
My VBR is Windows. I configure a backup job to use Veeam agent on my Linux server.
In backup job, i've fill up scripts in Advanced Setting :
"After the job" : execute .bat script (my primary) which call my secondary script.

If Agent can be execute script directly from OS, where can I stored it ?
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Post backup script

Post by PTide »

Please check this page.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests