-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Another useful Feature:
- Pre/Post Batches should be selectable by a "browse files dialog" inside Guest VMs
So you just press "browse" and get a full folder/file list of the guest os and select the batch file you need.
So you can run post/pre job batches inside a VM easily
- Pre/Post Batches should be selectable by a "browse files dialog" inside Guest VMs
So you just press "browse" and get a full folder/file list of the guest os and select the batch file you need.
So you can run post/pre job batches inside a VM easily
-
- Product Manager
- Posts: 14726
- Liked: 1707 times
- Joined: Feb 04, 2013 2:07 pm
- Full Name: Dmitry Popov
- Location: Prague
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Hi.
Pre/post job scripts are executed on Veeam B&R server and, in general, might be treated as scripts to prepare job for successful processing (i.e. shutdow the vm or reattach repository). If you want to perform a script at VM level take a look at Pre-Freeze and Post-Thaw Scripts as they are executed inside the VM. Cheers!
Pre/post job scripts are executed on Veeam B&R server and, in general, might be treated as scripts to prepare job for successful processing (i.e. shutdow the vm or reattach repository). If you want to perform a script at VM level take a look at Pre-Freeze and Post-Thaw Scripts as they are executed inside the VM. Cheers!
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Thanks, so the Freeze script is the "inside vm pre job"?
I have to check this out, and if the "browse" button works inside the VM filesystem, so i dont have to type in the path by hand.
I have to check this out, and if the "browse" button works inside the VM filesystem, so i dont have to type in the path by hand.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Right, pre-feeze and post-thaw scripts are picked from VBR's local file system, passed to the VM, and then executed inside a VM.
Thanks
Thanks
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
ah, scripts are saved on the VM Host and are "copied" to the VM and executed there?
that sounds nice, so i dont have to put the script into the vm?
that sounds nice, so i dont have to put the script into the vm?
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Not on a VM host, but on a backup server itself.
Thanks.When the job starts, Veeam Backup & Replication uploads scripts to the VM guest OS and executes them under the account specified in the Guest OS credentials section of the job settings.
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
okay, but if the backup server is installed on the hyper-v host then they are there too ;-)
maybe it would be usefull if there is a testbutton for scripts.
where you can execute a script directly from veeam.
veeam will give back the execution time, errorcodes, user under which script has run/UAC status and maybe optional send an /test parameter with the script, so the script will notice its a test.
maybe it would be usefull if there is a testbutton for scripts.
where you can execute a script directly from veeam.
veeam will give back the execution time, errorcodes, user under which script has run/UAC status and maybe optional send an /test parameter with the script, so the script will notice its a test.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Why can't you just start the script on the VM instead? You can even build an isolated lab specifically for script tests.<...>where you can execute a script directly from veeam.
Thanks
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Yes i can run the script from VM.
But as you stated the script is not installed on VM, because b&r pushes it into the VM during backup only.
i want to make sure this progress works, B&R will have the right rights etc.
You may not believe, but even APC has included it in their UPS Software now :-D (they still miss a test e-mail button... but i think after 5 years it might be there, too :-)
But as you stated the script is not installed on VM, because b&r pushes it into the VM during backup only.
i want to make sure this progress works, B&R will have the right rights etc.
You may not believe, but even APC has included it in their UPS Software now :-D (they still miss a test e-mail button... but i think after 5 years it might be there, too :-)
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
if i use pre-freeze scripts i have to select them from backup server only.
as i mentioned a test button which pushes the script to the vm would be nice. alternative the script should be located on the vm.
but lets suggest another thing:
if prejob fails we have to run post job in any way! so i want to stop backup if prejob fails but still run post job.
or alternative i want to run an recovery job.
and the best way would be: just warn per email/log on prejob fail, but do backup and do postjob.
as i mentioned a test button which pushes the script to the vm would be nice. alternative the script should be located on the vm.
but lets suggest another thing:
if prejob fails we have to run post job in any way! so i want to stop backup if prejob fails but still run post job.
or alternative i want to run an recovery job.
and the best way would be: just warn per email/log on prejob fail, but do backup and do postjob.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Ok, your request is noted, thank you.as i mentioned a test button which pushes the script to the vm would be nice
If you want to have scripts on a VM, then you can use VMware Tools quiescence and create scripts in /usr/sbin/pre-freeze-script and /usr/sbin/post-thaw-script corresponding files. Please check this thread for details.alternative the script should be located on the vm.
You can setup pre-job script in such way that if it fails it will stop the job and proceed to performing a post-job activity.if prejob fails we have to run post job in any way! so i want to stop backup if prejob fails but still run post job.
You can fire an email right from a pre-job script. Even if a pre-job script returns a non-zero status, the backup and post-job will start anyway, so you should give it a try.and the best way would be: just warn per email/log on prejob fail, but do backup and do postjob.
Thanks
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
but i use hyper-v..alternative the script should be located on the vm.
If you want to have scripts on a VM, then you can use VMware Tools quiescence and create scripts in /usr/sbin/pre-freeze-script and /usr/sbin/post-thaw-script corresponding files. Please check this thread for details.
i can say ignore errors, stop job on error or disable script. maybe the text should be stop job on error but still execute post job.if prejob fails we have to run post job in any way! so i want to stop backup if prejob fails but still run post job.
You can setup pre-job script in such way that if it fails it will stop the job and proceed to performing a post-job activity.
another useful idea for quick-help: add (mouseover) quickinfo into the gui. so you can see infos (very large, detailed description of many words) for each checkbox quicker without searching the online help. that would be pretty helpful.
so post job starts in any case?and the best way would be: just warn per email/log on prejob fail, but do backup and do postjob.
You can fire an email right from a pre-job script. Even if a pre-job script returns a non-zero status, the backup and post-job will start anyway, so you should give it a try.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Scripts work the same way on Hyper-V.but i use hyper-v..
All these things can be implemented on a script level via a couple of "if"s and a proper handling of exceptions. In the same way you could create a pre-job script that would start another child script and return zero so that the job would start while the child script could monitor the job's execution.i can say ignore errors, stop job on error or disable script. maybe the text should be stop job on error but still execute post job.
That is why our User Guide exists. If you feel like it can be improved, please use the "feedback" button in the bottom right corner.another useful idea for quick-help: add (mouseover) quickinfo into the gui. so you can see infos (very large, detailed description of many words) for each checkbox quicker without searching the online help. that would be pretty helpful.
Right, pre-job script exit status does not affect the job execution, the job will be executed anyway. Also pre-job script failure won't prevent post-job script from starting.so post job starts in any case?
Thanks
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
the script thing confuses me... /sbin.. is just linux? how does it apply to me with windows only and hyper-v?
and yes, it is possible to script everything. but if i would not so lazy to code, i would write the backup software myself ;-) so i prefer buying it, so others may code ;-)
and yes, it is possible to script everything. but if i would not so lazy to code, i would write the backup software myself ;-) so i prefer buying it, so others may code ;-)
-
- Product Manager
- Posts: 8191
- Liked: 1322 times
- Joined: Feb 08, 2013 3:08 pm
- Full Name: Mike Resseler
- Location: Belgium
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Poweruser,
https://helpcenter.veeam.com/docs/backu ... tml?ver=95
This is more specific for Hyper-V. Here you can see that in the guest processing settings you can define both windows scripts and linux scripts.
Hope it helps
M/
https://helpcenter.veeam.com/docs/backu ... tml?ver=95
This is more specific for Hyper-V. Here you can see that in the guest processing settings you can define both windows scripts and linux scripts.
Hope it helps
M/
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Thats nothing new, Mike.
I was talking about pre-freeze scripts all the time.
I was talking about pre-freeze scripts all the time.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
Yes, sorry, it slipped from my mind that you had hyper-v and windows. There are two types of scripts in Veeam:the script thing confuses me... /sbin.. is just linux? how does it apply to me with windows only and hyper-v?
1. Pre-freeze/post-thaw scripts.
With hyper-v there is no option other than uploading pre-freeze and post-thaw script directly onto the VM.
2. Pre-job/post-job scripts.
These work in the same way regardless of the hypervisor being used.
Thanks
-
- Expert
- Posts: 246
- Liked: 15 times
- Joined: Jul 25, 2018 4:12 pm
- Full Name: Poweruser
- Contact:
Re: FEATURE REQUEST: Pre/Post Jobs inside Guest (VM)
yes, thats what i said :-)
Who is online
Users browsing this forum: No registered users and 79 guests