Template Backups
Can you put in a function on thunder to pull down the widget templates to zip file for backups? Since we don't\won't have versioning for the foreseeable future?
I'd like to just periodically backup all the templates to TFS.
Steve
Nice!
Hey...is there (could there be) an EventHub event for before template save too?
Hello Steve,
In the attached file you can find a sample page that creates a backup of the widget templates. To create a backup you have to change the user authentication to forms. On button click the widget templates will be saved in SitefinityWebApp\App_Data\Sitefinity\WidgetTemplatesBackup\WidgetTemplates-[date] folder. If you select the checkbox on the page, a zip file will be created (not a folder).
I hope you will find this useful.
There is no EventHub event for before template save. I have logged this into PITS, you can track it here:
www.telerik.com/.../pits.aspx
All the best,
Nadezhda Petrova
the Telerik team
Just a quick follow up - I forgot to tell you that you also have to be logged in to make page works. Or to handle if an user is not authenticated.
Kind regards,
Nadezhda Petrova
the Telerik team
Thanks for this, what part relies on forms? ...because that's really not an option on live, to swap it over, run this, then swap it back...is it the authentication?
Hi Steve,
I sent you the code to work only for forms because it is more simple. Now I changed it to work for forms and claims authentication.
Please let me know if I can be of further assistance.
All the best,
Nadezhda Petrova
the Telerik team