Installation help

 
 
Picture of Rick Jerz
Re: Simple Upgrade from 2.2 to 2.4
Group Particularly helpful Moodlers

Hmmm, issuing a "git pull" (I assume from the moodle directory) and having moodle updated is attractive.  I would imagine that you still need to install add-ins manually, or is GIT smart enough to take care of that too?  When you say that "git pull" can also perform tar balling, I assume that there is some init file somewhere that can modified, like a script file.

Also, I wonder about your "firewall" comment, and whether git is more sensitive to firewalls than wget.

If the git commands are issued as a user, and not root, will the file permissions be correct?

Well, you have given me more things to put on my "list of things to try".  Thanks.

 
Average of ratings: -
Picture of Ken Task
Re: Simple Upgrade from 2.2 to 2.4
Group Particularly helpful Moodlers

From previous post:

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:

tar -cvf /home/backup/mdlback.tar /var/www/moodledata /var/www/html/moodle;

mysqldump -u [dbuser] -p[password] [moodledatabase] > /home/backup/mdlback.sql;

cd /var/www/html/moodle;

git pull;

chown apache:apache * -R;

"firewall" comment

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

http://docs.moodle.org/22/en/Git_for_Administrators

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.

'spirit of sharing', Ken

 
Average of ratings: -
Picture of Rick Jerz
Re: Simple Upgrade from 2.2 to 2.4
Group Particularly helpful Moodlers

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).

I don't understand the "firewall" comment.  What does this do?

Thanks.

 
Average of ratings: -
Picture of Ken Task
Re: Simple Upgrade from 2.2 to 2.4
Group Particularly helpful Moodlers

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.

http://docs.moodle.org/22/en/Git_for_Administrators

Every server/workstation that runs more modern OS has it's own firewall now.   Entities in Education/Industry typically do have a network firewall.

https://en.wikipedia.org/wiki/Firewall_%28computing%29

Since you remotely host, may/may not apply in your situation.

'spirit of sharing', Ken

 
Average of ratings: -
Picture of curt bixel
Re: Simple Upgrade from 2.2 to 2.4
 

It seems to hang even restoring just a 15 MB backup file

 

 
Average of ratings: -
Picture of Rick Jerz
Re: Simple Upgrade from 2.2 to 2.4
Group Particularly helpful Moodlers

After you cancel the restore, do you find that the course was actually restored?  Even though mine hung, like yours, the course seems to be restored.

 
Average of ratings: -