Include date in Format yyyy-MM-dd to Media-Sets name

Everything about backing up to tape

Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby RichT » Mon Jul 21, 2014 8:39 am

Hi,

I try to configure that our Media-Sets name include the date. The preferred Format would be yyyy-MM-dd so we can easily sort them. The %Date% variable has the format dd.MM.yyyy so you can't sort the Media set names Alphabetically to get the Date on which the media-set was created.
I tried to create a new system variable called %veeammediadate% and set the media set naming in the media-pool options to "Media-Set %veeammediadate%".
Unfortunately Veeam doesn't recognize the Variable and named the Set: "Media-Set %veeammediadate%".
Is there a way to accomplish what I'm trying to do or is there another way to see on which date a media-set was created in the media list?
RichT
Novice
 
Posts: 5
Liked: never
Joined: Mon Jul 21, 2014 7:57 am

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby foggy » Mon Jul 21, 2014 11:10 am

I believe the system date format is used by this variable. If you change the system format to the desired one, you will be able to achieve what you're after.
foggy
Veeam Software
 
Posts: 15087
Liked: 1110 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby RichT » Tue Jul 22, 2014 6:25 am

Thanks,
I will try this Method.
Any way, is it possible to use Variables in the Media Set names?
I recognized that veeam interprets %DATE% as a string and %date% as a Variable.
RichT
Novice
 
Posts: 5
Liked: never
Joined: Mon Jul 21, 2014 7:57 am

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby foggy » Wed Jul 23, 2014 10:00 am

This is the only variable currently available (no way to use system-defined environment variables). What other variables do you consider to be useful in this context? I can discuss any reasonable suggestions with R&D so they could add them in future.
foggy
Veeam Software
 
Posts: 15087
Liked: 1110 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby RichT » Wed Jul 23, 2014 12:17 pm

The retention Period or even the date of the ending of the retention Period of the Media Pool would be very useful variables.
It would be nice to automatically apply changes of the retention Period to the naming of new Media sets.
RichT
Novice
 
Posts: 5
Liked: never
Joined: Mon Jul 21, 2014 7:57 am

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby foggy » Wed Jul 23, 2014 1:44 pm 1 person likes this post

Tape expiration date will be added as a separate column in Veeam B&R v8. Looks like this is a more appropriate place for this information.

Also, Veeam ONE will have a dedicated report with the list of protected tapes and their expiration dates.

Anyway, thanks for the feedback!
foggy
Veeam Software
 
Posts: 15087
Liked: 1110 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby RichT » Mon Jul 28, 2014 6:11 am

I changed the date format on the Backup Server to yyyy-MM-dd.
The date in the media set name still uses in the dd.MM.yyyy hh:mm format.
RichT
Novice
 
Posts: 5
Liked: never
Joined: Mon Jul 21, 2014 7:57 am

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby foggy » Mon Jul 28, 2014 11:41 am

Have you re-created the media set? I don't think the name of the already created media set will be updated after the system date format has changed.
foggy
Veeam Software
 
Posts: 15087
Liked: 1110 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby Reklov » Thu Aug 28, 2014 12:21 pm

I like to have e.g. a %Month% an %Year% variable, because of better naming possibilities ( monthly, yearly backup to Tape for Offsite Storage )
Reklov
Enthusiast
 
Posts: 42
Liked: 1 time
Joined: Thu Aug 28, 2014 12:16 pm

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby foggy » Fri Aug 29, 2014 1:47 pm

Thanks for suggestion, much appreciated.
foggy
Veeam Software
 
Posts: 15087
Liked: 1110 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby namiko78 » Fri Feb 06, 2015 7:42 pm

Hello

Is there a list of current variables that exist? I'd like to include %jobname% or something so i can easily sort them from my media pool view, for exporting. Thanks
namiko78
Expert
 
Posts: 110
Liked: 4 times
Joined: Thu Mar 03, 2011 1:49 pm
Full Name: Steven Stirling

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby Dima P. » Fri Feb 06, 2015 11:41 pm

Hello Steven
For tape management we have only one variable %date% which is used in the media set name.
Dima P.
Veeam Software
 
Posts: 6517
Liked: 454 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby RolandSchauer » Fri Mar 20, 2015 11:19 am

Hello!

I've got the same problem like RichT.
Date options has been changed to "yyyy-mm-dd", but every week a new media set is created with "dd-mm-yyyy" like default german settings.

The system environment variable %date% shows "yyyy-mm-dd" as expected.

Do you have some advice what's going wrong here?

Thanks in advance!

best regards
Roland
RolandSchauer
Novice
 
Posts: 6
Liked: never
Joined: Tue May 14, 2013 11:16 am
Full Name: Roland Schauer

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby foggy » Fri Mar 20, 2015 11:26 am

Roland, have you re-created the media set after changing the date format?
foggy
Veeam Software
 
Posts: 15087
Liked: 1110 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Include date in Format yyyy-MM-dd to Media-Sets name

Veeam Logoby RolandSchauer » Mon Mar 23, 2015 10:50 am

Hi Foggy,

thanks for your reply.
every week a new media set is created on Friday at 12 - did you mean I should recreate the media pool?

best regards
Roland
RolandSchauer
Novice
 
Posts: 6
Liked: never
Joined: Tue May 14, 2013 11:16 am
Full Name: Roland Schauer

Next

Return to Tape



Who is online

Users browsing this forum: No registered users and 2 guests