Upgrading SVN Elgg Installs

If you used Subversion to install Elgg using SSH, upgrading to Elgg 1.1 stable is a snap. Simply log in and:

cd yourelggdirectory

svn sw https://code.elgg.org/elgg/releases/core/elgg1.1/ .

Make sure you include the space and period. Press enter, then agree to accept the security certificate typing t for temporarily or p for permanently. The files will scroll quickly as they are transferred from server to server.

When the transfer is done, open your browser and go to yourelggdirectory.upgrade.php

You should get a message saying the database has been upgraded and land on the login page. Log in and check your version. It should say 1.1 Stable.

Always have a backup of both the files and the database in case something goes wrong. I have done this svn upgrade with the original 1.0 release, and the 1.1 RC1 from the trunk. Note that older themes may exhibit minor quirks.

That’s it. It only takes a minute or two.

More information about Elgg and SVN

Related Posts

Tags: , ,

  1. SGr33n’s avatar

    Hi Steve,

    A trouble here:
    httpdocs# svn sw https://code.elgg.org/elgg/releases/core/elgg1.1/
    svn: ‘.’ is not a working copy

    :|

    Can you help me?

    Tnx :)

    Reply

  2. Steve’s avatar

    It is really tough to help with so little information.

    Is there an .svn checkout folder in each of the directories and subdirectories?

    Reply

  3. SGr33n’s avatar

    no, should it be?

    Reply

  4. Steve’s avatar

    If you installed the software using subversion in the first place–yes. That is the only way this process will work.

    Fear not, I will work out a procedure for taking an existing standard installation into a nice easy to upgrade SVN based installation very soon.

    Meanwhile, you can look at this if you want to see how this is accomplished with another program.

    http://openedweb.com/blog/2008/04/27/svn-and-ssh-for-installing-and-updating-sites/

    It should work pretty much the same, only I need to put aside the files that Elgg writes to during installation.

    Reply

  5. SGr33n’s avatar

    Thank You :)

    Anyway I’m just developing some ad-hoc plugin before populating elgg, so I already updated it uploading every file to the server, whithout fear of lose something :P

    About this, If I edit some file of elgg standard plugins, like profile or status, If I use svn then, will update them? can I loose my edits?

    Reply

  6. Steve’s avatar

    I use the core install and take care of the mods (other than those that come with the core) manually. SVN will not impact the files you manage manually.

    Reply

  7. SGr33n’s avatar

    Thank you Steve :)

    Reply

Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>