Template Backups - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Template Backups

  • 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
  • Hello,

     this is actually a Sitefinity problem. We can't put this in Thunder but we will send you some code that gets the job done. We will prepare the code and write back. Thanks for the feedback.

    All the best,
    Ivan Georgiev | Sitefin1ty
    the Telerik team
  • Nice!

    Hey...is there (could there be) an EventHub event for before template save too?
  • d55aa598-d25d-4f79-a77e-e6253646be19_WidgetTemplatesBackup.zip
    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
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  • 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
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  • 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?
  • 07b934d8-e3ee-42ea-8c61-bce5c9387d02_WidgetTemplatesBackup.zip
    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
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items