Quantcast
Channel: Backup and restore
Viewing all 6639 articles
Browse latest View live

Re: After restore course I can't find any files in course section

$
0
0
by Dosimbek Umarov.  

Hello ! 

I've deleted course, than try to restore. No result same error

setting controller status to 800
missing file (image_1450868195633.jpg) contenthash in backup for component mod_resource
missing file () contenthash in backup for component mod_resource
missing file () contenthash in backup for component mod_resource
processing file aliases queue
setting controller status to 1000
saving controller to db


how can I restore successfully? please help! 


Re: After restore course I can't find any files in course section

$
0
0
by Emma Richardson.  

Did you create a new backup first?  Errors are suggesting that there are files missing in the backup file.

Re: After restore course I can't find any files in course section

$
0
0
by Dosimbek Umarov.  

Hello! 

Yes I've creatd new backup first, I check content of backup file  and files are in.  

Re: After restore course I can't find any files in course section

$
0
0
by Dosimbek Umarov.  

Hello !


I've dicovered that in files.xml all contenthash tag empty and some  filename tag is empty. What is problem? 

<file id="2652">

    <contenthash></contenthash>

    <contextid>2397</contextid>

    <component>mod_resource</component>

    <filearea>content</filearea>

    <itemid>0</itemid>

    <filepath>/</filepath>

    <filename></filename>

    <userid>30</userid>

    <filesize>2128873</filesize>

    <mimetype>video/mp4</mimetype>

    <status>0</status>

    <timecreated>1451005382</timecreated>

    <timemodified>1451005399</timemodified>

    <source></source>

    <author>Манат Ежебеков</author>

    <license>allrightsreserved</license>

    <sortorder>1</sortorder>

    <repositorytype>$@NULL@$</repositorytype>

    <repositoryid>$@NULL@$</repositoryid>

    <reference>$@NULL@$</reference>

  </file>

  <file id="2653">

    <contenthash></contenthash>

    <contextid>2397</contextid>

    <component>mod_resource</component>

    <filearea>content</filearea>

    <itemid>0</itemid>

    <filepath>/</filepath>

    <filename>.</filename>

    <userid>30</userid>

    <filesize>0</filesize>

    <mimetype>document/unknown</mimetype>

    <status>0</status>

    <timecreated>1451005382</timecreated>

    <timemodified>1453016746</timemodified>

    <source>$@NULL@$</source>

    <author>$@NULL@$</author>

    <license>$@NULL@$</license>

    <sortorder>0</sortorder>

    <repositorytype>$@NULL@$</repositorytype>

    <repositoryid>$@NULL@$</repositoryid>

    <reference>$@NULL@$</reference>

  </file>

  <file id="2664">

    <contenthash></contenthash>

    <contextid>2400</contextid>

    <component>mod_resource</component>

    <filearea>content</filearea>

    <itemid>0</itemid>

    <filepath>/</filepath>

    <filename>дәріс 2.mp4</filename>

    <userid>30</userid>

    <filesize>18203311</filesize>

    <mimetype>video/mp4</mimetype>

    <status>0</status>

    <timecreated>1451005631</timecreated>

    <timemodified>1451005634</timemodified>

    <source>дәріс 2.mp4</source>

    <author>Манат Ежебеков</author>

    <license>allrightsreserved</license>

    <sortorder>1</sortorder>

    <repositorytype>$@NULL@$</repositorytype>

    <repositoryid>$@NULL@$</repositoryid>

    <reference>$@NULL@$</reference>

  </file>

  <file id="2665">

    <contenthash></contenthash>

    <contextid>2400</contextid>

    <component>mod_resource</component>

    <filearea>content</filearea>

    <itemid>0</itemid>

    <filepath>/</filepath>

    <filename>.</filename>

    <userid>30</userid>

    <filesize>0</filesize>

    <mimetype>document/unknown</mimetype>

    <status>0</status>

    <timecreated>1451005631</timecreated>

    <timemodified>1453460272</timemodified>

    <source>$@NULL@$</source>

    <author>$@NULL@$</author>

    <license>$@NULL@$</license>

    <sortorder>0</sortorder>

    <repositorytype>$@NULL@$</repositorytype>

    <repositoryid>$@NULL@$</repositoryid>

    <reference>$@NULL@$</reference>

  </file>

Determining the number of course backup files and their total size

$
0
0
by Mark Chaney.  

Dear all,  before I try and go down the root of writing a script or doing some fancy SQL and command line searching, I wanted to see if anyone had any ideas: 

In Moodle 2.7 and/or Moodle 3.0 is there any way to determine the total number of current course backups that are sat in the system, and what their individual, and thus total, size is? 

There is a table, mdl_backup_controller, which, using the following command: 

SELECT * FROM moodle.mdl_backup_controllers WHERE type = 'course';

Will give, what I assume, are current active backups (those backups that are still in the system). I also believe that the status column determines if they are started, configured, executed and complete?? 

I also believe that I can take the checksum value and look for this in the moodledata/temp/backups directory? This will give me the file? 

Can I clarify if I am correct in my assumptions and if there are any scripts or facilities that anyone knows of to help me? 

Thanks

Mark



Re: After restore course I can't find any files in course section

$
0
0
by Dosimbek Umarov.  

Thank you very much ! 

Problem is solved ! 

I've reinstall bigblubutton plugin. 

Re: Determining the number of course backup files and their total size

$
0
0
by Ken Task.  

Think only a mysql query will satisfy the need to know info.

On the DB for the Moodle try:

select contenthash,filename,filearea,filesize from `mdl_files` where (`filearea` like "backup" and `filesize` not like "0");

What one is looking at is the meta data.   The actual file is located in the moodledata/filedir/ (contenthash is the 'clue') unless automated backups have been directed to a directory outside of moodledata.

'spirit of sharing', Ken


Restoring Moodle 1.9 course into 3.0

$
0
0
by Jacques LeCavalier.  

Hi, there. I'd like to restore a course built in Moodle 1.9 to a different Moodle 3.0 site.

I uploaded the course backup file to a subdirectory of the repository folder using FTP. Having read a forum post about this, I thought this was the way to get access to a "private files" area in the Restore function, but this is not working.

I also tried to back up a dummy course in 3.0 to see if I could find the resulting .mbz file in the 3.0 site directory, but I guess with the new file system, such files are not to be found. (Was just trying to find out where backup files are stored in 3.0.)

I would really appreciate a few tips on this. Should I even try this, or should I resign myself to rebuilding the course file by file, recreating activities, etc.? If it is doable, where should I upload/move the backup zip file so I can access it via the 3.0 Restore function? 

Thanks!


Re: Restoring Moodle 1.9 course into 3.0

$
0
0
by Tim Hunt.  

It looks like you are struggling to understand how to upload a large file to Moodle in Moodle 2.0+, which is not really anything to do with backup and restore.

The right way to do it is here https://docs.moodle.org/30/en/File_system_repository

(Hmm. I must say, not the clearest docs page ever.)

Re: Restoring Moodle 1.9 course into 3.0

$
0
0
by Mary Cooch.  

If it is a course you want to restore from 1.9 to 3.0 and it is not bigger than  your allowed upload limit, then you should be able to follow the normal procedure for restoring courses from within Moodle  - take a look at the documentation Course restore

As for where backups you have made can be found, if you back up a course in a Moodle 3.0 site by clicking the link Backup in the Course administration block, you can find the course again  by clicking the Restore link and scrolling down to the course backup area and user private backup area.



Re: Restoring Moodle 1.9 course into 3.0

$
0
0
by Helen Foster.  

Hi Jacques,

Does your 1.9 course contains assignment activities? If so, they will need to be upgraded in order to continue being usable. Please see the documentation Assignment upgrade tool for details.

Issue restoring backup (own plugin code issue)

$
0
0
by David Belenguer.  

I've been several weeks trying to fix a plugin that we use to mix courses  (reading from a webservice that returns what courses need to join together). It has been working until we updated Moodle to 2.9.1 (the last version i think it was 2.6.2) and the backing up part doesn't work now, the restore function doesn't find the backup.

Doing it manually is not an option because that would take a large amount of work. I thing the code was based on Moodle's code and something should have changed on the update to 2.9.1. I'll attach the code with this post, I hope somebody could help me, I create the restore_controller on the line 191 and there's where I get the error. On the line 237 I create the backup_controller. It generates the backup but the ZipArchive php's utility it doesn't recognizes as a ZIP (as it does in past Moodle versions). I can open it with 7zip an inside of it there's another file with no extension but with the content of the backup inside.

Spanish:

Llevo varias semanas intentando arreglar un plugin que usamos para juntar grupos (leemos de un webservice que devuelve que cursos hay que juntar). Ha funcionado hasta que hemos actualizado a la versión 2.9.1 de Moodle (la última versión creo que fue la 2.6.2), la parte de la copia de seguridad de un curso al otro no funciona ahora, la función de restaurar no encuentra el backup.

Hacerlo manualmente no es una opción, ya que eso llevaría mucho trabajo. Creo que el código se basó en código de Moodle y algo debe haber cambiado con la actualización a la versión 2.9.1. Adjuntaré el código en este post. Espero que alguien pueda ayudarme. Instancio el restore_controller en la linea 191 y ahí es donde me da el error. En la linea 237 instancio el backup_controller. Genera el backup pero la utilidad ZipArchive de php no lo reconoce como un .zip (como hacía en anteriores versiones de Moodle). Puedo abrirlo con el 7zip y dentro tiene otro archivo sin extensión pero con el contenido del backup dentro.

Re: Issue restoring backup (own plugin code issue)

$
0
0
by Ken Task.  

In 2.6 there was an experimental setting for using gzip (tar.gz) for compression which has become the default now (as opposed to zip/unzip) in higher versions of Moodle 2.7->3.x.

The 'no extension' file name is probably a gzip.  In linux, on could find out via:

file -b [nameoffilewithnoextension]

example:

[root@moodle data]# file -b ./hs2crs/backup-moodle2-course-58-wise-20150612-2223-nu.mbz
gzip compressed data, from Unix

The gzip compressed data, from Unix is the response from file -b

In Windows, whatever can look at files like that.

Am not a programmer ... this post might fit better in the General Developer forum.

Hoping the info shared will be enough to put you onto the right track.

'spirit of sharing', Ken

Re: Issue restoring backup (own plugin code issue)

$
0
0
by David Belenguer.  

I thought that the General developer forum was for Moodle's core development. I'm new on this forum, as you can see.

I'll post it on General developer forum then, thank you! smile

Canvas to Moodle: Restoring IMSCC Backup Fails

$
0
0
by Randah Mouallem.  

Hi everyone! My institution is collaborating with another College here in Alberta to co-develop a program. They are using Canvas and we are using Moodle. They have sent me a few canvas backup files (imscc) that I have been able to successfully restore onto our Moodle (2.7) server. However; I have received two new courses that I cannot backup. I even got new copies of the backup files and cannot successfully restore them.


What happens is:

  1. I click restore course
  2. I upload the canvas file
  3. I click continue
  4. I select the category in which this course should live and click continue
  5. Absolutely nothing happens...it just spins, and spins, and spins! The systems analyst tells me that this causes the CPU to run at 99%
  6. Moodle breaks for me sad


Any suggestions? Is there any way I can extract the contents of that backup file?


Thanks,
Randah


Re: Canvas to Moodle: Restoring IMSCC Backup Fails

$
0
0
by Ken Task.  

Qualifications for this response ... haven't done it ... don't have canvas, but I can Google! ;)

Please see:

https://community.canvaslms.com/docs/DOC-2713

at the bottom of that page, a note:

"Note: The export will be in IMSCC format, a common standard file that can be imported into any system that accepts Common Cartridge. You can also change the extension from .imscc to .zip and treat it as any other ZIP file."

Then the question becomes one of compatibility of exported Canvas common standard file with what Moodle can support.

https://docs.moodle.org/30/en/IMS_Common_Cartridge_import_and_export

'spirit of sharing', Ken


Re: Canvas to Moodle: Restoring IMSCC Backup Fails

$
0
0
by Randah Mouallem.  

Thanks, Ken! I was able to change it to an .zip file and extracted some content. I was then able to upload it as a SCORM module to see the course materials in context.


I still can't restore it as a Moodle course. Is it possible to restore a .zip? Maybe my administrator just needs to change some settings to allow that.

Re: Canvas to Moodle: Restoring IMSCC Backup Fails

$
0
0
by Ken Task.  

Don't think it's a Moodle course.    When you had it unzipped, did you see a moodle_backup.xml file and other .xml files as well as folders/directories?  If you did NOT then that verifies it's not a course backup.

You have to create a course and then use whatever method to bring the thing into Moodle.

'spirit of sharing', Ken 

Re: Canvas to Moodle: Restoring IMSCC Backup Fails

$
0
0
by Mary Cooch.  

Are you saying you managed successfully to turn it into a SCORM package and then to upload it into a course as a SCORM activity? If so, then you can make it a whole course by only adding that one SCORM activity in a course and then going into the course settings and choosing "single activity course format" and selecting SCORM.

But that is only if I have understood you correctly and you now have a working SCORM package.

Re: Canvas to Moodle: Restoring IMSCC Backup Fails

$
0
0
by Randah Mouallem.  

Thank you all for the help and responses! I ended up just copying and pasting the content and recreated the forums and quizzes.

Viewing all 6639 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>