After-job script writing vSphere tag (last backup time)

PowerShell script exchange

After-job script writing vSphere tag (last backup time)

Veeam Logoby id.elizarov » Fri Jul 17, 2015 9:22 am

Hello community,
It would be great to have a script, running after each job and writing vSphere tags (v5.5 is used) with last backup time of each VM in the VBRJob.
I'm currently working on our "dynamic" backup system, so no VM or blue folders is backup targets, everything is backed up by vSphere tags. It is great! No need to work with backup server, only set of backup policies and PowerCLI console to manage it :D
But it is also useful to have last backup time in vCenter... Can you give me some assstance with this? How to call current job properties running after job script, etc?
id.elizarov
Novice
 
Posts: 5
Liked: 1 time
Joined: Tue Oct 07, 2014 6:56 am

Re: After-job script writing vSphere tag (last backup time)

Veeam Logoby v.Eremin » Fri Jul 17, 2015 10:00 am

As tags used mostly for categorization purposes, don't you think that writing last backup time there is not necessarily a good idea? Haven't you thought about using Notes field (that's the main idea of it, after all), instead?
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 969 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: After-job script writing vSphere tag (last backup time)

Veeam Logoby id.elizarov » Fri Jul 17, 2015 10:09 am

In this case tags is needed to give information of last backup to other responsible persons for which backup console is not accessible, right in console)
For categorization purposes, of course, I use another categories and tags - one category for each VM's owner department (such as UNIX), and backup policy tags in this category (such as B1_1 which means backup every day before the midnight).

Get you, Notes field looks like a solution that I am looking for :) Thank you!
In short, how to use this feature?
id.elizarov
Novice
 
Posts: 5
Liked: 1 time
Joined: Tue Oct 07, 2014 6:56 am

Re: After-job script writing vSphere tag (last backup time)

Veeam Logoby v.Eremin » Fri Jul 17, 2015 10:18 am 1 person likes this post

In case of Notes, you don't even have to deal with scripting, as all you need to is to go the job advanced settings and enable the corresponding option. Thanks.
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 969 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: After-job script writing vSphere tag (last backup time)

Veeam Logoby id.elizarov » Fri Jul 17, 2015 10:23 am 1 person likes this post

Thank you for all the assistance, Vladimir.
Veeam is really very customer-facing company, like you so much!
id.elizarov
Novice
 
Posts: 5
Liked: 1 time
Joined: Tue Oct 07, 2014 6:56 am

Re: After-job script writing vSphere tag (last backup time)

Veeam Logoby v.Eremin » Fri Jul 17, 2015 10:36 am

You're welcome. Should other questions regarding either scripting or product in general arise, don't hesitate to ask. Thanks.
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 969 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests