Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonas Eriksson 930 posts 1825 karma points
    Mar 14, 2011 @ 11:29
    Jonas Eriksson
    0

    Backuping/versioning templates, scripts and macroscripts

    It has been discussed before but now with the new Razor ME I think even more people will do a lot of online coding without VS and without a dev(-staging)-live setup. So - the need for a backup or even versioning strategy for the files edited in the Umbraco UI is even bigger now.

    I guess a very simple solution could be made with the help of a zip library (zip all the files in the right folders and send it to the response stream for download). A button in the dev section : [Download a zipped copy of templates and scripts].

    Any ideas / experiences with this?

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Mar 14, 2011 @ 14:03
    Aaron Powell
    1

    Sounds like a package idea ;)

    Doesn't the package engine allow you to export all those things in a few single clicks too?

    But I still believe that if you want versioning of file system objects you should be looking at source control. With hosting like bitbucket making it so cheap to use Mercurial and TortoiseHg making it easy to work with I think it's crazy to not run.
    Heck, even DropBox + NTFS versioning + WebMatrix can make for a basic little source control & backup solution.

    I understand that some people have nothing other than their hosted solution but from my perspective that's just a plain scary idea, relying entirely on someone elses infrastructure to not fail... eep!
    There's a famous quote (but I don't know who it it attributed to):
    "If it's not backed up it's not something you want to keep"

  • Jonas Eriksson 930 posts 1825 karma points
    Mar 15, 2011 @ 18:35
    Jonas Eriksson
    0

    +1 for that quote.

    And indeed - creating a package with all necessary stuff and then republish it every now and then actually works very nice for this basic backup needs. A new version number and the old zip wont get overwritten. Hah, cool, didnt think of that one, thanks :)

    Hm, a possible easy to build (?) feature to help with this could be a function to automatically create a package with "everything" in the site. But I save that for the future.

    cheers

    / Jonas

    ps. I do have a structured versioning/backup plan for most sites I manage :) But for some small demo/build-for-a-friend-sites I do not, and I'm sure I'm not alone.

Please Sign in or register to post replies

Write your reply to:

Draft