Comprehensive data protection for all workloads
Post Reply
Bobby
Novice
Posts: 3
Liked: never
Joined: Jun 04, 2020 10:30 pm
Contact:

Bash script failing to run during SureBackup job

Post by Bobby »

Is it possible to run a bash script during a SureBackup job without a third party app like putty? In the application group, I added the custom script to the VM, but it's giving me a weird error that I can't find anything about. When adding the script it lets you filter .sh files so I assume it supports them. I'm on v10 on Win Server 2019.

The error:
Custom script 1: name reboot, failed - Failed to create process: ERROR_BAD_EXE_FORMAT
HannesK
Product Manager
Posts: 14840
Liked: 3086 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Bash script failing to run during SureBackup job

Post by HannesK »

Hello,
the scripts run on the backup server. So your bash script fails without bash. https://helpcenter.veeam.com/docs/backu ... ml?ver=100

Agree, that wizard option with the .sh scripts is not very good.

Best ergards,
Hannes
Egor Yakovlev
Product Manager
Posts: 2581
Liked: 708 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:

Re: Bash script failing to run during SureBackup job

Post by Egor Yakovlev »

Last time I checked we supported .exe, .bat, .cmd, .js, .vbs and .wsf for custom script formats. Filtering in the UI might be misleading, of that I will double check to make sure.
Anyhow, you can always wrap unsupported script format into 100% supported .bat wrapper, like mentioned in this 9 years old SureBackup Scripting article.
/Cheers!
Bobby
Novice
Posts: 3
Liked: never
Joined: Jun 04, 2020 10:30 pm
Contact:

Re: Bash script failing to run during SureBackup job

Post by Bobby »

I was unable to figure out how to execute bash wrapped in a bat script, so I just ended up using putty's plink connection tool instead. Thank you!
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 92 guests