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

Re: [3.9] Automated backups consumes all disk space and trashdir is full

$
0
0
by Alain Raap.  

Hi Marius,

I think your filescleanupperiod setting could be the problem that your trashcan stays that big as you describe.
I see this is also a new setting that wasn't present in Moodle 3.5. I find it strange that during your automated backup process the trashcan is growing, only files that are deleted are backups inside your .mbz directory and not files in your moodledata folder, or am I wrong? I thought the backup process only deletes the older backups and the temporary course in the backup folder. But these files aren't part of the moodledata folder.

I run the automated process outside Moodle cron and with the Linux cron that runs a separate script I wrote for the automated backup. This script runs every day and excludes the course that runs 10 hours to make a backup.

Here you can find my post about this subject, because of NFS we used I ran the automated backup process on the DB server, it was much faster then. Now we don't use NFS anymore, the automated backup runs on the Moodle server again:

https://moodle.org/mod/forum/discuss.php?d=383815

I included the current shellscript that runs on our Moodle server, I changed the automated backup_auto_active in 'manual', to run the process outside Moodle cron.

Re: Hidden Topic settings not carrying over during Restore

$
0
0
by Helen Foster.  

Hi David,

I tried searching in the Moodle Tracker for a report of the problem but couldn't find anything, then tried to reproduce it on the Moodle Sandbox demo but failed - the activity was available but not shown on course page in the restored course.

How about trying yourself to see if you can reproduce the problem on the Moodle Sandbox demo? If so, then it can be investigated by developers. If not, you'll need to look at what might be the cause of the problem on your site, such as a plugin or customised code.

Re: Can I backup a course from Mysql and restore to Postgres?

$
0
0
by Thorsten Bartel.  

Hey Walter,

I suspect your Postgres and MySQL installations may be using different character sets (collations) for their databases.
Especially MySQL has a nasty habit of using "UTF8" as its standard collation, which unfortunately supports only a small subset of unicode characters (3 bytes instead of 4). Check the collation of your MySQL database by executing the following SQL queries:

USE db_name;
SELECT @@character_set_database, @@collation_database;
The following problems could result from faulty collations (among others):
- Due to identical field lengths but 3 byte characters in one and 4 byte characters in the other database, entries exported from one database could be too long to import in the other one.
- Certain unicode special characters from the exported database cannot be imported into the other database.

Cheers

Re: Can I backup a course from Mysql and restore to Postgres?

$
0
0
by Leon Stringer.  

You should check the MySQLdatabase is set to the recommended character encoding as Thorsten suggests, a warning is shown in the Environment report if this isn't configured.

Generally backing up and restoring between Moodles with different databases types should work except there is a technical restriction specific to restoring to MySQL (and MariaDB): MDL-9391. I've seen this problem with quizzes where PostgreSQL allowed answers with units with different cases which couldn't be restored to MySQL as its UNIQUE constraint treats e.g. "cm" and "CM" as identical.

Walter: I'd suggest enabling debugging (Debug messages: DEVELOPER, Display debug messages: Yes) on the site you're restoring to, which should show more information when the database error occurs.

Re: [3.9] Automated backups consumes all disk space and trashdir is full

Abort a restore in process pending

$
0
0
by Bernat Martinez.  

 It seems that we have deleted a course while it was restore in process

Now at the restore in process  section it appears the "process pending" label and it blocks any other backup/restore action. 

Any hint how to abort the blocking restore in process pending

Backup of moodle installation folder

$
0
0
by omid hamedi.  

Hello good time

I want to have a backup of the model installation folder through the Sipnel file manager every day. My question is whether the contents of this folder change by activity on the site or whether the installation folder files always remain the same as the first day they were installed?

And the changes are made only in the data model folder!

I want to keep a backup of the installation folder when I install the model so that when something goes wrong I can restore it without any changes to the site and all activities remain. Is it possible?

Re: Backup of moodle installation folder

$
0
0
by Thorsten Bartel.  

Hello Omid,

ideally, the moodle installation folder is not changed by site activity on production sites.
It *is* possible to change files within the moodle installation folder by upgrading / installing / uninstalling plugins.

These plugin activities *can* be performed via the moodle administration panel (GUI), but on production sites they *should* not.
To ensure that site activity cannot alter the installation folder, perform the following steps (on Linux systems):

1. Make "root" the owner of the folder and all subfolders:
sudo chown -R root:root /var/www/html/moodle
(installation path may vary, adjust accordingly)

2. Make the folder read- and executable by other users:
sudo chmod -R 755 /var/www/html/moodle
(again, adjust path according to your environment)

For plugin maintenance you will then need to modify the files on the server manually. Especially with multiple site admins this is much more secure and robust.

Cheers
Thorsten

Re: [3.9] Automated backups consumes all disk space and trashdir is full

$
0
0
by Marius S.  

It seems that old files is not being deleted from moodledata/trashdir even after 24 hours (as Ken mentioned it should be).

Last week everyday I checked moodledata/trashdir size, so on tuesday, wednesday, friday it was 37-39GB.
Then automated course backups started on saturday 4AM and finished on ~11AM. I checked moodledata/trashdir on saturday and it was 290GB.

So as I mentioned weekly backups is around 240-280GB, so this is the number we get. On friday it was ~40GB + ~250GB after automated backups on sutarday and we have 290GB in moodledata/trashdir.

I checked on Sunday, on Monday and there was same 290GB used in moodledata/trashdir. So somehow oldest backups which are moved to trashdir is not being deleted even after 48 hours.
Server has access to moodledata folder, it's set to 777, so it's not permission issue.


Also I believe something has changed in Moodle backups process because now backups are made "randomly".
Can someone check in their Moodle and confirm that you have the same process?

Before update to 3.9.1 automated backups was made from the first course (id=1) to the last course (id=xxxx).
So using filezilla I could short mbz files by time created and all course were ordered by increasing id.


And now after update to 3.9.1 automated backups are being done "randomly". For example first automated backup done on Saturday 4:00AM was ID=1614, next was id=857, etc. It was done 2930 automated backups.

Screenshot below:
Courses created in random order?


Re: [3.9] Automated backups consumes all disk space and trashdir is full

$
0
0
by Alain Raap.  

Hi Marius,

I'm also testing the automated backup process at the moment and you're right about the random creation of backups. I see these messages
in the automated backup log:

Putting backup of Startopleiding in adhoc task queue ...
complete - next execution: Thu, 10 Sep 2020 22:00:00 +0100
Putting backup of Communicatieve vaardigheden in adhoc task queue ...
complete - next execution: Thu, 10 Sep 2020 22:00:00 +0100

Adhoc task queue wasn't present in a previous version. Just as you mention, backups were made from increasing courseid 1 to last courseid

Re: [3.9] Automated backups consumes all disk space and trashdir is full

Backup and resetting a course

$
0
0
by Dylan Lewis.  

I am looking for a way which will allow me to back up and reset a course preserving the assignment grades given, but removing the assignments themselves. 

Currently, we back up the course, download the back up and restore it on an archive moodle. It would be nice to be able to create the backup, then reset the course removing the assignments thus reducing the file size used on our servers. Some courses have a mixture of assignments, quizzes etc. The quizzes take up hardly any space, however some assignments might be rather large. 


If this doesn't make sense, what other backup/ archiving solutions does everyone suggest?

User Restore not working

$
0
0
by Ewelyn Felice.  

Hello!

I need some help to solve one problem. 

Recently I need use the plugin User Restore plugin in one platform. All was going fine, until the moment that I cleaned the cache. 

Now, I can't see the users that I need reset and this message appears to me:


I clicked in "Full cache refill", the system was slow and i went back to the same screen that i sent the image above.


Can you help me, please? 


Thanks =)

Re: User Restore not working

$
0
0
by Ken Task.  

Haven't used plugin ... have already done my clean up of users for beginning of this academic session ...

In your screen shot the 2030 number ... is that the number of users?

Plus there are some tabs ... what info do they provide.  And what happens if one uses the 'Append ....' link?

From the readme about plugin, it uses the event logs ... logstore_standard_log? ... to retrieve deleted user info.   That table is normally one of the the largest tables if not *the* largest table so yeah, can comprehend the warnings about time.

You might need to attempt to get answers via:

https://moodle.org/plugins/tool_userrestore

In the comments of above or by contacting the maintainers seen on the page above.

'SoS', Ken

Re: [3.9] Automated backups consumes all disk space and trashdir is full

$
0
0
by Marius S.  

But as I see this bug was in 3.7, 3.8 and was fixed in 3.9. So as we are using 3.9.1 I think this should be already fixed.
Did you notice much faster automated backup process in Moodle 3.9?
Because now we get automated backup done in like 6-7 hours. On Moodle 3.7 it was about 28-32 hours I believe.
But we also moved to new server, so not sure if it's because of server or because of new automated backup process.

Update about moodledata/trashdir, I checked yesterday and it was empty (well ~200mb). So basically it took ~4 days to delete oldest automated backups from moodledata/trashdir.
I will try to check next week if it will be the same situation.

Re: [3.9] Automated backups consumes all disk space and trashdir is full

$
0
0
by Alain Raap.  

I haven't tested with a large number of courses yet to check the performance of the automated backup task.
Our automated backup task takes about 10 hours to complete in the present Moodle version (3.5).
What I noticed is that when I added new courses to my new Moodle 3.9 environment, they weren't backup'ed
the same evening but they were scheduled for the backup run the next day.

Logs of course reset operations

$
0
0
by Yasir Mehmood.  

Hi,

Is there any logs for course reset operations within Moodle admin or database?

I want to check if a particular course was reset before. I am using Moodle 3.3. Thanks for assistance.

Automated backups schedule - which setting is used - Automated backup setup or Automated backups in Scheduled tasks?

$
0
0
by Nejc Razdrih.  

[Moodle 3.8.4+ (Build: 20200730)]

A question about two settings for Course Automated backups. As I see it, there are two locations, where you can set the time for Automated backups. One is "Site administration - Courses - Backups - Automated backup setup", and the other is "Site administration - Server - Tasks - Scheduled tasks - Edit task schedule: Automated backups".

Let's say that I set the "Automated backup setup" to run every saturday at 1AM:



And let's also say, that I set the "automated_backup_task" to run, but  at a different time, for example, every monday at 2:30AM:



So, my question is, when will Automated Course backup start - Saturday at 1AM, or monday at 2:30AM?

Similar question about Enable / Disable on both settings. On "Site administration - Courses - Backups - Automated backup setup" the setting is "Active (backup | backup_auto_active)", which can be set to Enabled / Disabled / Manual. On "Site administration - Server - Tasks - Scheduled tasks - Edit task schedule: Automated backups" there is a checkbox, for one to Disable the task.

Which of these two settings has to be enabled for backups to be run on Saturday at 1AM, or monday at 2:30AM?

One more thing - if I click on "Run now", when in Scheduled tasks settings, I dont think my courses are being backed up.


My "Automated backup setup" looks like this:



So, when i hit "Run now", this is what happens:

There are cca. 250 courses on the site. Also, after "Run now", nothing happens in theAutomated backups area:


What am I missing?

Thank you for all the help!
Nejc

Re: Automated backups schedule - which setting is used - Automated backup setup or Automated backups in Scheduled tasks?

$
0
0
by Emma Richardson.  

Ok, I am guessing here but the output gives a clue.  I believe that the automated backups page tells the system which courses are due for backup.  The scheduled task just runs it through cron but if the automated backups page setting says that the course is not due to be backed up, then it is not going to back up.

I have always had to turn off automated backups to run it manually so this makes sense now.

Re: [3.9.1]Automated backup Emails

$
0
0
by Alain Raap.  

Richard, does your automated backup makes 1300 backups in 2 hours? That's really fast! I also run the automated backup task outside Moodle and I have a separate logfile for this (Linux cron) task. So the whole automated backup run is logged in this logfile. Perhaps because of the adhoc task that is running the backups now that the mail isn't giving you a good insight in the results of the run?
Viewing all 6661 articles
Browse latest View live


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