Comprehensive data protection for all workloads
Post Reply
spf62
Enthusiast
Posts: 65
Liked: never
Joined: Sep 17, 2010 12:33 pm
Full Name: Steve Fritsch
Location: Connecticut
Contact:

Veeam pre commands

Post by spf62 »

We are using Veeam Backup and Replication version 6.5. Is there anything in Veeam that allows me to run a pre command? I can only find the post command area.

Any help is appreciated

thanks
Vitaliy S.
VP, Product Management
Posts: 27117
Liked: 2720 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Veeam pre commands

Post by Vitaliy S. »

Hi Steve,

You can use pre-freeze and post-thaw scripts if you enable VMware Tools quiescence in the advanced job settings. Also can you please tell me what kind of script you would like to run prior the VM backup job?

Thanks!
spf62
Enthusiast
Posts: 65
Liked: never
Joined: Sep 17, 2010 12:33 pm
Full Name: Steve Fritsch
Location: Connecticut
Contact:

Re: Veeam pre commands

Post by spf62 »

perfect...thanks Vitaly
Vitaliy S.
VP, Product Management
Posts: 27117
Liked: 2720 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Veeam pre commands

Post by Vitaliy S. »

You're welcome, but please keep in mind that if you enable both application-aware image processing from Veeam and VMware Tools quiescence, our backup/replication job will use the first option. See this topic for further details > Backup job with Unix and Windows (Options)
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Veeam pre commands

Post by veremin »

Additionally, you can schedule your pre commands to be run at specified time via Windows Scheduler and in the end of this pre-activity execute VB&R specific commands, like ones responsible for running jobs:

Code: Select all

asnp VeeamPSSnapin
Get-VBRJob -name "Name of your Job" | Start-VBRJob


Hope this helps.
Thanks.
Mirija
Novice
Posts: 6
Liked: 1 time
Joined: May 23, 2011 11:59 am
Full Name: Aina Mirija
Contact:

[MERGED] : Run script before/after job

Post by Mirija » 1 person likes this post

Hi,

Is there a way to run a script on the VM before and after backup job is running?
the goal is to run some tasks on guest OS VM (such as stopping a database, clean TEMP ...)

Thanks.

Mirija.
v334m
Influencer
Posts: 12
Liked: never
Joined: Aug 06, 2014 8:13 am
Full Name: A
Contact:

Re: Veeam pre commands

Post by v334m »

Sorry to re-open an old thread, but thought better than opening a dupe.

We are seeing some issues with our various HA servers (Windows, IIS and App servers) when snapshots are being taken due to the guest pause/freeze.
As we use F5 Load Balancers for these servers, we would like to run a pre-Script which tells F5 to disable the node, the backup runs, and then we can run a post-script to enable again. This lets us cleanly drain one node before the backup is taken.

I can see post commands, but for pre, the way i understand i will have to do the following

Change my job to not run a schedule
Have a script run via Task Scheduler that kicks off the F5 pause
Then the script invokes the Backup job via the PS snippet in a post above

Any easier way to do this? I want to avoid using Task Scheduler ideally...
foggy
Veeam Software
Posts: 21070
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Veeam pre commands

Post by foggy »

Currently there's no other way to do this, however you can expect pre-job tasks in v8 release. Thanks!
v334m
Influencer
Posts: 12
Liked: never
Joined: Aug 06, 2014 8:13 am
Full Name: A
Contact:

Re: Veeam pre commands

Post by v334m »

Awesome! I can wait for that, many thanks.
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Veeam pre commands

Post by veremin »

You can subscribe on our site in order to be informed on version 8 availability. Thanks.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 77 guests