Just a quick note to let everyone know that we've begun work on the inremental backup component that should make it easier to get course updates on Offline Moodle.
I've added a few notes to the wiki at
http://docs.moodle.org/en/Development:Offline_Moodle:_Incremental_Backups
We've also resorted to private mails to discuss the work and this obviously means no one else to can get involved. So to reverse this I thought I'd continue these discussions out in the open.
So here goes.
Dan, Matt, just wondering if we could have a few notes on the wiki about how to get the incremental backup stuff working. I've written a very short paragraph on how to generate incremental backups. But you've also created a couple of files to help the offline client to easily get the incremental from the server.
The files are get_incremental.php and send_incremental.php
When looking at the files I wondered if I should call them directly or if there is an admin menu or other file I should start from. Just little things like that so it's easier when I go in to test it because I'll know enough about how things should be working.
Related to this is that there are some guid tables that must be generated but mysql won't generate them. I know this will be addressed in time but they seem to be relevant particularly for these two files. Is this case?
In reply to Colin Chambers
Re: Offline Moodle: Work has started on the Incremental backup
由Dan Marsden發表於
yes - the backup guid tables are quite important! - they're used as part of the new "update course" type of restore, and a few other things.
the mysql issue I thought I had fixed, - a couple of multi keys that mysql doesn't like, - I've fixed that in the latest version in our git repo.
will add some more detail to the wiki now...
thanks!

Dan
the mysql issue I thought I had fixed, - a couple of multi keys that mysql doesn't like, - I've fixed that in the latest version in our git repo.
will add some more detail to the wiki now...
thanks!
Dan
In reply to Dan Marsden
Re: Offline Moodle: Work has started on the Incremental backup
由Colin Chambers發表於
Hi Dan,
thanks for the update. I just downloaded the latest files. Next question, I'm full of questions aren't I !!!
You've added a form to configure incremental backups. It asks for the path to the delta library. I haven't installed it on my machine as I assumed it would be in the moodle lib folder or similar. If that's not the case then my next questions are how is it best to set this up, we're considering windows machines initially.
I've found the xdelta download page at http://code.google.com/p/xdelta/downloads/list
I can see there are options to install it but our offline moodle installer so far desn't actually install anything, instead it just copies xampp and moodle to the selected folder and starts it. I'm hoping that xdelta can be placed in a folder within the xampp directory without having to be installed and used when required.
I'd check this out for myself but i'm working on a couple of things for our next release so could anyone answer this for me?
Cheers
Col
thanks for the update. I just downloaded the latest files. Next question, I'm full of questions aren't I !!!
You've added a form to configure incremental backups. It asks for the path to the delta library. I haven't installed it on my machine as I assumed it would be in the moodle lib folder or similar. If that's not the case then my next questions are how is it best to set this up, we're considering windows machines initially.
I've found the xdelta download page at http://code.google.com/p/xdelta/downloads/list
I can see there are options to install it but our offline moodle installer so far desn't actually install anything, instead it just copies xampp and moodle to the selected folder and starts it. I'm hoping that xdelta can be placed in a folder within the xampp directory without having to be installed and used when required.
I'd check this out for myself but i'm working on a couple of things for our next release so could anyone answer this for me?
Cheers
Col
In reply to Colin Chambers
Re: Offline Moodle: Work has started on the Incremental backup
由Colin Chambers發表於
I went and downloaded the latest windows exe from xdelta xdelta3.0t.x86-32.exe . From the command line I can get the help up from it so I 'm satisfied it's the right binary. So I put this into a folder named 'xdelta' at the root of my xampp install. Then I put the path into the admin settings at courses > incremental backups C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.3\xdelta
When saving this I get errors, Logged a bug at http://tracker.moodle.org/browse/CONTRIB-416. Ok not good but maybe it's picking it up anyway. So I run the incremental backup. I get an error
Warning: mkdir() [function.mkdir]: Invalid argument in C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.3\htdocs\moodle\lib\moodlelib.php on line 7756
also logged a bug for this, I forget the number. I check the incrementals folder in moodle data in the course and it's empty.
When saving this I get errors, Logged a bug at http://tracker.moodle.org/browse/CONTRIB-416. Ok not good but maybe it's picking it up anyway. So I run the incremental backup. I get an error
Warning: mkdir() [function.mkdir]: Invalid argument in C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.3\htdocs\moodle\lib\moodlelib.php on line 7756
also logged a bug for this, I forget the number. I check the incrementals folder in moodle data in the course and it's empty.
In reply to Colin Chambers
Re: Offline Moodle: Work has started on the Incremental backup
由Dan Marsden發表於
Hi Colin,
Xdelta is just a binary, so you should just be able to drop it in without having to run an install.
CONTRIB-416 is a duplicate of MDL-14585 (I'm hoping the talented Penny will fix that one.)
I can't find a tracker issue related to your mkdir issue - can you please let me know what the issue number is? - I'll need more information about where the error is occurring too. screenshots maybe?
thanks!

Dan
Xdelta is just a binary, so you should just be able to drop it in without having to run an install.
CONTRIB-416 is a duplicate of MDL-14585 (I'm hoping the talented Penny will fix that one.)
I can't find a tracker issue related to your mkdir issue - can you please let me know what the issue number is? - I'll need more information about where the error is occurring too. screenshots maybe?
thanks!
Dan
In reply to Dan Marsden
Re: Offline Moodle: Work has started on the Incremental backup
由Colin Chambers發表於
Thanks Dan. I can't find the issue either so I've logged a new one at http://tracker.moodle.org/browse/CONTRIB-423
In reply to Colin Chambers
Re: Offline Moodle: Work has started on the Incremental backup
由Julian Bass發表於
In reply to Julian Bass
Re: Offline Moodle: Work has started on the Incremental backup
由Colin Chambers發表於
Hi Julian,
I normally create an installer with the latest version of the Offline Moodle environment. I list it at http://hawk.aos.ecu.edu/moodle/mod/wiki/view.php?id=944 .
I normally create an installer with the latest version of the Offline Moodle environment. I list it at http://hawk.aos.ecu.edu/moodle/mod/wiki/view.php?id=944 .
In reply to Colin Chambers
Re: Offline Moodle: Work has started on the Incremental backup
由Dan Marsden發表於
In reply to Dan Marsden
Re: Offline Moodle: Work has started on the Incremental backup
由Colin Chambers發表於
ok cool. I kind of assumed I needed permission to do that. Thanks dan it'll make it easier to find.