-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Application aware + Pre-freeze script?
Hi
I am a bit confused.. Is it possible to have Required success on application aware and also run Pre-freeze script on the same vm? Looks like you are forced to quiescence if you want to run Pre-freeze script?
I want to run a script before backup starts that check DAG cluster status (placement of DAG databases). If placement is not as it should the backup should fail.
\Masonit
I am a bit confused.. Is it possible to have Required success on application aware and also run Pre-freeze script on the same vm? Looks like you are forced to quiescence if you want to run Pre-freeze script?
I want to run a script before backup starts that check DAG cluster status (placement of DAG databases). If placement is not as it should the backup should fail.
\Masonit
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Application aware + Pre-freeze script?
Magnus, you should probably use these scripts.
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Re: Application aware + Pre-freeze script?
Yes it is thoose I am referring to...
Is it possible to combine Veeam application aware backup (Exchange VSS) with Pre-freeze script on same VM?
Is it possible to combine Veeam application aware backup (Exchange VSS) with Pre-freeze script on same VM?
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Application aware + Pre-freeze script?
Yes, that's possible. The scripts we are discussing are triggered by Veeam itself and do not depend on VMware Tools Quiescence (it has its own scripts too though).
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Re: Application aware + Pre-freeze script?
Ok thanks!
Any reason why you don't support powershell script?
\Masonit
Any reason why you don't support powershell script?
\Masonit
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Re: Application aware + Pre-freeze script?
Really struggeling combining cmd with powershell and exit code. I am just doing some tests that checks if notepad is started or not.
This one works as expected. Job fails because exit code is 2.
This one does not work correctly. It always returns 0. Even though notepad is not started in vm.
If I run the command manually inside vm they work:
Maybe I am approaching it the wrong way, help..
\Masonit
This one works as expected. Job fails because exit code is 2.
Code: Select all
@ECHO OFF
set veeamtest=2
EXIT /B %veeamtest%
Code: Select all
@ECHO OFF
set veeamtest=(powershell -Command "& {$check = Get-Process -Name notepad -ErrorAction SilentlyContinue; if($check) ` {0} ` else ` {1};}")
EXIT /B %veeamtest%
Code: Select all
C:\Users\Administrator>set veeamtest=(powershell -Command "& {$check = Get-Proce
ss -Name notepad -ErrorAction SilentlyContinue; if($check) ` {0} ` else ` {1};}"
)
C:\Users\Administrator>%veeamtest%
1
\Masonit
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Application aware + Pre-freeze script?
Don't know technical details on this, but maybe there were just a handful of requests for that.masonit wrote:Any reason why you don't support powershell script?
Maybe there is an issue with an account (permissions) under which these scripts are triggered? Does AAP account specified in the job settings have permissions to launch these scripts?masonit wrote:If I run the command manually inside vm they work
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Re: Application aware + Pre-freeze script?
Account is local administrator. (builtin administrator)
\Masonit
\Masonit
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Application aware + Pre-freeze script?
Can you try to launch some simple script like opening Paint to verify that this is not a permission issue and then proceed with your own script?
Who is online
Users browsing this forum: No registered users and 56 guests