Copied to clipboard

Flag this post as spam?

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


  • Craig Noble 41 posts 584 karma points c-trib
    Oct 28, 2012 @ 02:28
    Craig Noble
    0

    uBackup - Developer opinions and testers wanted

    Hi all!

    After attending the Umbraco UK Festival and showing off my companies new Web Blocks System, I've decided to release a package I've been working on called uBackup.

    uBackup is a developer tool that backs up Templates, Stylesheets, Scripts, Razor and XSLT before they are overwritten when a developer saves any of these files in the backoffice of Umbraco.

    The philosophy behind it is the fact there may be cases where you don't have Umbraco under version control or you may find third-party developers or freelancers coming in to work on your Umbraco web site.  I have had this many times and when things go wrong and things get broken, it's not so easy to roll back to the latest previous working version.  uBackup ensures that you always have backups before any of these files are saved and if needed you can roll back to the latest working version (even to look at differences).

     

    What do you guys think of a package like this? And would you possibly be able to help test it before I set it as 'stable'?

     

    The project url is: http://our.umbraco.org/projects/developer-tools/ubackup

     

    Any opinions or feedback would do great! This is my first released package, so be easy :)

     

  • Craig Noble 41 posts 584 karma points c-trib
    Oct 29, 2012 @ 10:55
    Craig Noble
    0

    Sorry, I mean the company I work for.  This package is not related to the company I work for and it should not represent what they do!

    This package is purely a personal released package that I feel would be useful to people.

  • Paul 1 post 21 karma points
    Oct 29, 2012 @ 11:59
    Paul
    0

    Hi my name is Paul and I have currently work in Bristol and London. I recently started working with Umbraco but I have been a .NET developer for a few years now and I felt I had to sign up to this forum to comment on your package.

    Can you please explain a bit more about the reasoning behind this package? It appears to come across as being useful only to developers who have bad development processes or practices in place? Surely if someone has a good setup with source control, build and deployment servers then why would they need this package? In my opinion it promotes bad practice. 

  • Craig Noble 41 posts 584 karma points c-trib
    Oct 29, 2012 @ 12:17
    Craig Noble
    0

    Hi Paul,

    I completely agree and if you look at the package documentation I actually recommend using GIT or SVN to version control the umbraco solution instead of using the package, however there will be times when you may not have that luxury.

    Sometimes you may outsource work to a freelancer or company and you may not want to give them access to your SVN or GIT repo.  In this case, by installing uBackup you can give yourself and them the satisfaction that they can make changes without the extra worry of breaking it.  If they break it, you as well as them can go to uBackup and roll back to the previous working version.  Even if you don't want to roll back, you may want to view the differences... ever asked yourself "Why is this broken, whats changed?".

    So really, its purely for when you want to modify scripts, templates, razor, xslt and stylesheets in an Umbraco system when its out of a version controlled environment and you don't want to give access to your version control system to freelancers or thirdparty devs.  Because they can easily do the work on their uBackup controlled system and then you can port their code into your version controlled system.

    And at the end of the day, it's purely to help anyone who needs it and I personally see the benefits as an extra safety net.

    Thanks for your question :)

    Craig

  • sun 403 posts 395 karma points
    Oct 31, 2012 @ 12:52
    sun
    0

    Craig Noble, I have noticed that your another project named Proxy Media Server and I love it.

    I want to a function and I think that maybe you can make it.

    I need a  Statistics package to count how many times a media item is downloaded. This package should only need to add one field to mediatype named "downloads", then user can use it to count.

    The logic is that, when a media item has download field, the package will count how many times the media item is downloaded.

    Thank you!

  • Mentor Digital 19 posts 135 karma points
    Oct 31, 2012 @ 14:20
    Mentor Digital
    0

    Thanks, glad you like it.  I will add that functionality in there as I think it fits in very well.

    Any media item that has a property "mediaServerDownloads" will be incremented by 1 for each download.

    I should be able to release it in the next day or so, so watch that space :)

  • sun 403 posts 395 karma points
    Oct 31, 2012 @ 14:29
    sun
    0

    First:This function should be an isolated package.

    Second:Also please notice that when someone use download tool to download the mediaitem, which support multi threads, for example: 10 threads to download one media item. you should only count it as 1 not 10.

  • Mentor Digital 19 posts 135 karma points
    Oct 31, 2012 @ 14:41
    Mentor Digital
    0

    Ohhhhh sorry!  I thought you meant you'd like it to work with the Media Server Package.  Yeh course, I will take a look at that. It will be a very simple project.  You should be able to configure the property name etc.  All good.  Should be of use to a lot of people Im sure.

  • Craig Noble 41 posts 584 karma points c-trib
    Oct 31, 2012 @ 15:15
    Craig Noble
    0

    The responses were from my work Umbraco account (I keep personal things seperate from work).  That will be fine.

  • Arie 224 posts 675 karma points
    Nov 23, 2012 @ 01:52
    Arie
    0

    Fantastic package! It reminds me of File Hamster (by Mogware), which does essentially the same thing but it ties directly into the file system. It's not something I like to install on a server and it doesn't tie into Umbraco, obviously. Similar problems with Microsoft's Shadow Copy. In addition, the latter two are out of the question for shared hosting packages.

    So far I've only installed uBackup on one Umbraco install (4.10), but I have not encountered any problems.

    A couple of suggestions:

    • I can envision situations where certain people (e.g. techincal editors) might have access to the "Settings"-section but not to the "Developer"-section. However, it looks like anyone who has access to the "Settings"-section would be able to roll back XSLT- and scripting-files.
    • Once you navigate to one of the four file types it's rather difficult to back up to the overview. Any chance of leaving the nav to the four sections intact when displaying the list of files?
    • Perhaps you could add settings to limit the number of backup files (e.g. by number of days, revisions) - more of a "rolling backup" approach.
  • Craig Noble 41 posts 584 karma points c-trib
    Nov 23, 2012 @ 14:35
    Craig Noble
    0

    Hi Arie,

    Thanks for the great response.  I'm glad you like the package!  I'm ecstatic it works for 4.10 straight off with no problems, as initially I only though it would work in Umbraco 4.9.x.  I know for a fact it doesn't work with anything earlier than 4.9 unfortunately though.

    I definitely like your suggestions and actually, admittedly I didn't think about users only having access to Settings and not Developer could roll back.  In this case, on your current installation, you can go to ~/config/dashboard.config and move the uBackup tab to the developer section.  I would imagine this would solve it because would we ever stop a developer having access to settings?

    They are great suggestions, and I'll release an update package with these suggestions in for existing installations to the project page.  I'm in the process of finalising another new package that you might wanna check out, and I'll get straight on this after.

    Thanks for your input :-)

Please Sign in or register to post replies

Write your reply to:

Draft