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

Re: Abort a restore in process pending

$
0
0
by Marc Bernat Martínez.  

Hi,
Moodle has not an option to cancel scheduled backups, in my case, I had to delete the backup's database register to cancel it.
The table where are the backup registers is called mdl_backup_controllers.
Then you have to delete it (DELETE * FROM mdl_backup_controllers WHERE backupid = {backup id to cancel}).
To know backup's id you have to inspect the progress bar HTML element.

Restore quizzes from SQL dump

$
0
0
by Boštjan Gabrovšek.  

My Moodle server broke, since the HDD stopped working.

The only backup I have left is a MYSQL dump file of the whole Moodle database. I only really need the quizzes, since there are hundreds of quizzes generated throughout the years.

The Moodle in question was an older version, probably last upgraded in 2008.

What are my options?

1) Install an old version of Moodle and connect to the restored database? Will this work? Can I figure out from the dump what version of Moodle I was using?

2) Recreate the database and just copy the quiz tables to the new Moodle instalation? This won't work right?

3) Somehow parse the quizzes from the dump file to XML and import to a new version of Moodle on a new server?

Re: Restore quizzes from SQL dump

$
0
0
by Ken Task.  

One other source ... an archive of moodledata/filedir/ ... but only if you made course backups.   Those course backups (.mbz files) if you didn't save them to an alt directory, are in moodledata/filedir/.

Your options (numbers):

1. you could probably do with a localhost install of moodle ... key of course would be determining version of moodle you were running.  A virtualbox install of an OS would give you license to tinker ... a lot ... and fail without cost (cept your time).

2. while one could restore a table from an sql, it's probably a compatibility issue ... old table with new moodle version.   So am gonna say no .. forget that one.  Besides ... multiple tables ... some for question type ... some for x, some for y, some for ... not just one.

3. kinda the same as #2 ... multiple tables

Rather than guessing a lot ... how about you restore the .sql you have and see what's there?

'SoS', Ken

Re: Restore quizzes from SQL dump

$
0
0
by Ken Task.  

Just did some checking on moodle releases ...

If you are even semi close on the year 2008 ... your moodle could be a version 1.8 or 1.9.

https://docs.moodle.org/dev/Releases

Very, very old.

So first step would be to restore the sql you have to a DB server.

'SoS', Ken

Re: Restore quizzes from SQL dump

$
0
0
by Ken Task.  

Follow up ... if 1.8 or 1.9 ... backups of courses were .zips.   Look around your local computer/local lan or storage devices, to see if you have course backups.   Those could be un-zipped and inspected ... might be a questions.xml in there.

'SoS', Ken

Re: Restore quizzes from SQL dump

$
0
0
by Boštjan Gabrovšek.  

Sorry, I made a typo, it was installed 2018, not 2008.

Re: Restore quizzes from SQL dump

$
0
0
by Jaka Slivo.  

I managed to restore Moodle 3.4 from the database dump file, took option 1) from above.

Steps I used (perhaps could be simplified):

1. Create LAMPserver

1. Restore the MYSQL dump in a database

2. Copy the newest Moodle (3.9) installation files and try to install Moodle, given the existing database

3. Moodle tries to upgrade the old Moodle to new Moodle version, but fails. But meanwhile gives you a hint what Moodle version was previously installed from the dump

4. Reinstall LAMP server using the exact PHP that is stated in the requirements in https://download.moodle.org/releases/legacy/. But I needed a newer version of MYSQL, which is evident from the first few lines of the dump file. The hard part is installing old (unsupported) versions of PHP and MYSQL, but Google is your friend here.

5. Restore dump file in MYSQL . 

6. Reinstall Moodle (3.4 in my case), giving it the existing database (restored dump file).

7. Moodle updated just the minor release

8.  Works, woo-hoo!

import D2L to Moodle as a course

$
0
0
by Allison Soo.  

I am looking for a way to import a Desire2Learn (D2L) course to Moodle. The D2L course is in IMS format. 

I couldn't restore this IMS package to Moodle as a course as it is not recognised as a valid Moodle backup. Attempt to rename the zip file to mbz and imscc yield no positive result.

The only way is to add it as an IMS resource, but it then becomes a single activity in Moodle.

Does anyone knows of any conversion tool or ways to migrate D2L course to Moodle? Any advice is much appreciated. 

Thanks.

Allison


Re: Automatic Backup Override for a Single Course

Re: Abort a restore in process pending

$
0
0
by Heather P.  

Hi

Did you get to the bottom of this? Only one of my users has 5 restores stuck in a queue and I can't see them anywhere when I go in as an administrator and I need to stop them and get them out of the queue,

Any ideas how I find them and how I stop them as I was not the instigator I'm just the admin, but I can't seem to find them anywhere.

Thank you

Heather

Automated backup consumation of space

$
0
0
by Ivica Matotek.  

Hi!

Where automated backup store files when I selected Automated backup

Does it store into Course backup filearea and copy into specified directories or it create one copy and link to another location? Because it consumes lots of disk space if there are two copy of same file.

Ivica

Re: Course copy fails, backup fails

$
0
0
by Jan Michlík.  

We have the same error.The copy of the course doesn't work due to non-functional asynchronous backup.

Re: Course copy fails, backup fails

Re: Course copy fails, backup fails

$
0
0
by Jan Michlík.  

In the process, it reports many of the following errors.


Delete course backup

$
0
0
by Priya Joy.  

When I started taking one of my course backups, my server space suddenly increased from 70% to 96% ,so suddenly I closed the browser ,and when I tried to delete the partially taken backup , I couldnt find any backups in the restore section.My server space is still 96%.From which folder I need to delete the partially taken backups so that my server space get released.Please guide me as I am got stuck due to server space issue


Re: Delete course backup

Course upload via csv COMBINED with template = problem

$
0
0
by Ralf Oswald.  

Hello everyone,

I would like to create or upload courses via csv file. Works as desired. In the same step I want to assign a certain template to the courses, so that all courses have the same basic structure (Restore from this file after upload)

And here is a problem: After the upload ALL courses got the name (+ short name) of the course template.

Different settings do not bring any changes.

In the preview everything is still displayed as desired, i.e. the names of the CSV document are shown - each course contained in it has also received its name as entered in the csv document.

But this does not seem to disturb the "course template customization process", because after that all names are mercilessly overwritten ALL with the one name of the template.

What can be done to keep the original course name in the CSV file?

Best regards

Ralf

Automated Course Backup

$
0
0
by Svenja Lell.  

Hi there,


on our Moodle site (Moodle 3.5) we run automated course backups which is configured here:


<moodledomain>/admin/settings.php?section=automated

"backup_auto_storage" for instance is switched to:

"Course Backup filearea and the specified directory"



That runs very well except for too files with different error messages

in the backup logs.


1.)  Course abc


4:45:08 AM - backup_auto_failed_on_course Course abc

4:45:08 AM - Exception: storedfilecannotcreatefile

4:45:08 AM - Debug:


2.) Course xyz


4:45:19 AM - backup_auto_failed_on_course  Course xyz

4:45:19 AM - Exception: cannot_create_directory /datafolder/moodle/temp/backup/16cd81afd25ae096b082568ededfeda4/files/bc

4:45:19 AM - Debug:



Can you explain what is the prob here. I was able to create a course backup maunally

via the web interface.


The "/datafolder" represents a partition.

That leads onto something else. For days now I see that the /datafolder - partition (size: 380 G) gets full every second day. The trashfolder /datafolder/moodle/trashdir grows rapidly. E.G.100 G a day.

One day the partition was even full.


Can you get we started here on hoe to limit the data growth in the trash folder and

on how to repair the Course backup ?


Thanks a lot!



Kind Regards,


Svenja


Re: Automated Course Backup

$
0
0
by Emma Richardson.  

It would appear that the permissions on your backup folder are not set up correctly.  You have to have the correct permissions so that files can be written/deleted etc...

Restore Courses Larger than 500 MB

$
0
0
by Elizabeth Cummins.  

I have found a way to restore my large courses. This has helped us tremendously with managing backups!


  1. Log into SFTP and create a directory named “repository” if one doesn’t already exist. Create a directory within the repository folder.  You can name this new directory anything you’d like, but please use only lowercase letters.
  2. Copy the course backup to this new directory location.
  3. Navigate to Site Administration menu > Plugins > Repositories > Manage Repositories
  4. Look for the File System repository and make sure it is enabled and visible.
  5. Place a checkmark in both boxes to allow admins to add a file systemmceclip0.png
  6. Navigate to Site Admin > Plugins > Repositories > File System
  7. Create a new repository instance
  8. Choose any name you wish, and select the folder name from the SFTP (this should populate automatically.  However, you must have done step 1 first.)
  9. Put a checkmark in the Allow relative link box.mceclip1.png
  10. Click Save  (If this has been done correctly, you will now see the new repository under Repositories instances of the site)
  11. Navigate to the front page and click on Restore
  12. Use the file picker (Choose a file) to find the backup.  You will see the newly created repository instance listed last on the left. 
  13. Select the file by clicking on it
  14. Choose Select this File
  15. Perform the restore as usual.

Viewing all 6511 articles
Browse latest View live


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