Execution order of Pre-Freeze vs. Pre-Kob Scripts

Availability for the Always-On Enterprise

Execution order of Pre-Freeze vs. Pre-Kob Scripts

Veeam Logoby Poweruser » Sat Aug 11, 2018 11:17 am

Depending on the script you have, you need a different execution order.
Actually the order seems not to be documented, but i guess pre job ist run before pre-freeze scripts.

In my case i need to execute pre-freeze Scripts before pre-job scripts because inside the Hyper-V there is a SQL Check script which needs to be executed first.
Afterwards all VMs are shutdown using pre-job script.
And after the job startet using the post-job script.

If the order is pre-job before pre-freeze it wont work as desired.
So a more complex execution order would be nice.
Run a pre-job script, then the pre-freeze script, then a pre-corejob script, then do the core job, run the post-corejob script, the "post-freeze"/thaw script, and finally the post-job script.

Edit: Pre-job is executed before pre-freeze
Poweruser
Expert
 
Posts: 151
Liked: 5 times
Joined: Wed Jul 25, 2018 4:12 pm
Full Name: Poweruser

Re: Execution order of Pre-Freeze vs. Pre-Kob Scripts

Veeam Logoby PTide » Sun Aug 12, 2018 1:20 pm

Hi,

It runs as follows: pre-job script, pre-freeze, post-thaw, post-job.
Please note, there is only on pair of pre/post-job scripts per one backup job, whereas you can specify pre-freeze and post-thaw scripts individually per VM.

In my case i need to execute pre-freeze Scripts before pre-job scripts because inside the Hyper-V there is a SQL Check script which needs to be executed first.

Why wouldn't you trigger the SQL script from a pre-job script instead?

Afterwards all VMs are shutdown using pre-job script.

May I ask you why would you shutdown the VMs in the first place? Why not to let VSS do its job?

Thanks
PTide
Veeam Software
 
Posts: 4144
Liked: 342 times
Joined: Tue May 19, 2015 1:46 pm

Re: Execution order of Pre-Freeze vs. Pre-Kob Scripts

Veeam Logoby Poweruser » Sun Aug 12, 2018 6:11 pm

a) If i want to trigger it from pre-job iam into wrong context. I have to "hack" some lines to make the script being executed in the vm. The SQL Check is started by a batch inside the VM.
So if i try to use pre-job, its executed on the backup (hyper-v) host only. And then i need to push it onto the machine myself. Would be easier if Veeam pushes.

b) Shutdown is a safe and clean way to backup. There are no dependencies if i do a shutdown. So its 100% safe and consistent. If i use VSS there is a risk. The big software vendor (i use) suggest offline+online backup and never only online backup.
I think thats terrible, but thats what they state. I cant complain if i dont follow their practice :-( What a pity!
Poweruser
Expert
 
Posts: 151
Liked: 5 times
Joined: Wed Jul 25, 2018 4:12 pm
Full Name: Poweruser

Re: Execution order of Pre-Freeze vs. Pre-Kob Scripts

Veeam Logoby PTide » Tue Aug 14, 2018 10:36 am

The big software vendor (i use) suggest offline+online backup and never only online backup.

May I ask you what is the application and vendor that you use?

Thanks
PTide
Veeam Software
 
Posts: 4144
Liked: 342 times
Joined: Tue May 19, 2015 1:46 pm

Re: Execution order of Pre-Freeze vs. Pre-Kob Scripts

Veeam Logoby Poweruser » Tue Aug 14, 2018 7:55 pm

you got a private message, as its not public.
Poweruser
Expert
 
Posts: 151
Liked: 5 times
Joined: Wed Jul 25, 2018 4:12 pm
Full Name: Poweruser


Return to Veeam Backup & Replication



Who is online

Users browsing this forum: Google Feedfetcher and 45 guests