can not generate a snapshot name include date

Bug #1556839 reported by lvdongbing
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Invalid
Undecided
lvdongbing

Bug Description

When using cron trigger to make instance backups, more than one backups created.
It's better to enable to name them like $name-$date, but it maybe not supported now.
We can add an inner function 'date' so the yaml file like following:

input:
    backup_name: <% $.server.name %><% date() %>

lvdongbing (dbcocle)
Changed in mistral:
assignee: nobody → lvdongbing (dbcocle)
Revision history for this message
Dougal Matthews (d0ugal) wrote :

There is a YAQL now() function that you can use. This is an example from one of my workflows...

   <% now().format("%Y-%m-%d_%H:%M:%S") %>

Changed in mistral:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.