Backup of enterprise applications (Microsoft stack, IBM Db2, MongoDB, Oracle, PostgreSQL, SAP)
Post Reply
Riadh
Novice
Posts: 5
Liked: never
Joined: Aug 04, 2024 11:34 am
Full Name: Riadh
Contact:

Issue with pre-script backup job

Post by Riadh »

Hi everyone,
I'm trying to backup a postgresql database using backup jobs. The database is located inside a container and is running under docker.
I got the warning "Failed to execute pre-job script" (see the picture below). Otherwise the post-job script indicates "Post-job script has been executed successfully". Even I wrote a simple shell script (echo "Hello world" > newfile.txt) but still not working :(
That's why I don't think the problem is not related to docker or Postgresql db.
I'm using veeam agent (root privileges) with RHEL 7.9 on my remote server and I'm using Veeam Backup & Replication 12 with Windows on my Backup server.

N.B : When I try to run the same command line of the pre-job script directly through the terminal it works fine.

Please can you help me resolve this issue?
Thank you all.
PTide
Product Manager
Posts: 6576
Liked: 773 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Issue with pre-script backup job

Post by PTide »

Hi,

Veeam Agent for Linux does not support containerized Postgresql databases.

Would you tell us more about your setup? Is THEL 7.9 running on a physical machine/VM, and the DB is running inside a container hosted on the same RHEL?

Thanks!
karsten123
Service Provider
Posts: 572
Liked: 140 times
Joined: Apr 03, 2019 6:53 am
Full Name: Karsten Meja
Contact:

Re: Issue with pre-script backup job

Post by karsten123 »

are your script files in the right format? i dont know the exact term, but it has to be linux.
Riadh
Novice
Posts: 5
Liked: never
Joined: Aug 04, 2024 11:34 am
Full Name: Riadh
Contact:

Re: Issue with pre-script backup job

Post by Riadh »

The remote server (RHEL 7.9) is running on a VM and the DB is running inside a container on the same host. Veeam Backup and Replication 12 is running on another Windows server. The communication is done through veeam agent. The scripts are uploaded from the "D:" drive with '.sh' extension (script.sh).
Riadh
Novice
Posts: 5
Liked: never
Joined: Aug 04, 2024 11:34 am
Full Name: Riadh
Contact:

Re: Issue with pre-script backup job

Post by Riadh »

Sorry but I don't think the issue is related to the container or to Postgresql databases because as I said before even a simple script (outside container) is not working.
Example of script :
#!/bin/bash
echo "Hello world" > \home\mydirectory\newfile.txt
karsten123
Service Provider
Posts: 572
Liked: 140 times
Joined: Apr 03, 2019 6:53 am
Full Name: Karsten Meja
Contact:

Re: Issue with pre-script backup job

Post by karsten123 »

where do you create your bash scripts?
Riadh
Novice
Posts: 5
Liked: never
Joined: Aug 04, 2024 11:34 am
Full Name: Riadh
Contact:

Re: Issue with pre-script backup job

Post by Riadh »

On the Windows VM where Veeam Backup & Replication is installed.
D:\Scripts\myscript.sh
karsten123
Service Provider
Posts: 572
Liked: 140 times
Joined: Apr 03, 2019 6:53 am
Full Name: Karsten Meja
Contact:

Re: Issue with pre-script backup job

Post by karsten123 »

ok. open it with notepad++ and change the EOL character to linux. edit —> EOL Conversion, i think.
Riadh
Novice
Posts: 5
Liked: never
Joined: Aug 04, 2024 11:34 am
Full Name: Riadh
Contact:

Re: Issue with pre-script backup job

Post by Riadh »

Issue resolved!
Thank you so much "karsten123", your answer is the solution. It's about EOL conversion.
Wish you all the best :)
karsten123
Service Provider
Posts: 572
Liked: 140 times
Joined: Apr 03, 2019 6:53 am
Full Name: Karsten Meja
Contact:

Re: Issue with pre-script backup job

Post by karsten123 »

@Veeam is it please possible to add this to the helpcenter documentation.
Thx
PetrM
Veeam Software
Posts: 3815
Liked: 643 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Issue with pre-script backup job

Post by PetrM »

Hi Karsten,

We strive to keep our documentation concise for better readability, and this particular case is not directly related to our product. Even when initiated manually, it did not work. Therefore, I would rather wait for more similar questions. If we receive enough similar requests, we can consider addressing it in our knowledge base (KB).

Thanks!
PetrM
Veeam Software
Posts: 3815
Liked: 643 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Issue with pre-script backup job

Post by PetrM » 2 people like this post

Hello,

@karsten123
FYI: I have discussed this situation with my colleagues, and it turns out that this question arises occasionally. Therefore, it would make sense to include a note about it in our user guide. I will work on this with the technical writers team.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests