Installing and upgrading help

Simple Upgrade from 2.2 to 2.4

all one needs to do is to change into the moodle instance directory and type: 'git pull'.

From previous post:

one could build into that 'git pull' script tar balling the code directory, the data directory, and doing a mysqldump of the DB

Call the script 'update' ... it backs up the moodle instance first ... then runs git pull. A script is nothing more than a series of commands in a text file - like a batch file of old - something like the following:

Should have said 'filter' - my bad. While git does use it's own protocol and uses a certain port, School districts in Texas must provide filtering. Some filtering servers see .tar.gz's or traffic like git as something to be blocked. Git URL's might be blocked by filters.Has nothing to with git per say as a filter will also deny wgets as well if not configured to allow the server to git/wget/update ClamAV, etc.. Too many of those filters don't take into account Linux servers ... even if they are Linux OS themselves. There is mention of firewalls in the docs for git on Moodle.org

git commands issued by user and permissions … while documentation on Moodle.org recommends that or says it can be done, I sometimes have issues with that. Root user should never be denied and setting permissions/ownership doesn't take but a minute. Checking permissions/ownerships might be a good thing to do from time to time anyway.

If addons have a git repo (most of them do now), yes, one could fiddle with git to check those for updates as well. See above url as well.

Okay, this is helpful. It appears to me that with GIT, you have to have more faith that everything will work correctly. With wget, you get a chance to do the upgrade a little more slowly and in pieces. Maybe GIT would be more appropriate when the updates are within the same "point" number (2.4.1, 2.4.2, 2.4,3). wget might be better when moving between major point upgrades (2.4, 2.5, 2.6).

How one uses git is a individual preference ... me, I'll attempt to use it all the time - when moving upwards from within a series ... 2.2 -> 2.3 -> 2.4 -> 2.5 etc. When upgrading not in a series ... the process might be a migration which is not like an upgrade - as folks have been experiencing with the move from 1.9.x to 2.x. Git might still be used with some part of it.

Git from behind a firewall

Git uses a proprietary protocol and it may be blocked by your firewall (port 9418). If this is a problem, you can use Github's http version https://github.com/moodle/moodle.git. It's a bit slower, so use the Git protocol if you can.