Hello Team!
I have a linux VM that, during the backup, runs a script to clean some folders, the script defined without application recognition "Post-thaw script". I noticed in the logs that during the backup process, veeam takes the snapshot and soon afterwards already runs the script, after that process. If the job fails, after the Snapshot is generated, will the data be erased and will it not be backed up?
-
- Enthusiast
- Posts: 92
- Liked: 7 times
- Joined: Nov 10, 2015 12:40 pm
- Full Name: Amauri Ramos
- Contact:
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Question about Post-thaw script
Hi Amauri, depends on the moment the job fails - if the script has already been triggered after a successful VM snapshot and has deleted the data and THEN the job fails for some reason, VM backup will not be created and you end up with the VM with the data removed but without a backup of these data. I think you better consider using a post-job script for your purpose.
-
- Enthusiast
- Posts: 92
- Liked: 7 times
- Joined: Nov 10, 2015 12:40 pm
- Full Name: Amauri Ramos
- Contact:
Re: Question about Post-thaw script
Hello Alexander,
And would a script with the extension * .sh be supported for running after backup?
And would a script with the extension * .sh be supported for running after backup?
-
- Product Manager
- Posts: 2581
- Liked: 708 times
- Joined: Jun 14, 2013 9:30 am
- Full Name: Egor Yakovlev
- Location: Prague, Czech Republic
- Contact:
Re: Question about Post-thaw script
Pre\Post-Job scripts are executed locally on VBR server so natively .exe, .bat, .cmd and .ps1 will work out of the box.
You can always wrap your .sh into .bat calling for suitable process, or a script that will trigger .sh on a remote linux server via SSH.
You can always wrap your .sh into .bat calling for suitable process, or a script that will trigger .sh on a remote linux server via SSH.
-
- Enthusiast
- Posts: 92
- Liked: 7 times
- Joined: Nov 10, 2015 12:40 pm
- Full Name: Amauri Ramos
- Contact:
Re: Question about Post-thaw script
Thanks everyone for answering.
Who is online
Users browsing this forum: No registered users and 34 guests