diff --git a/backup/backuplib.php b/backup/backuplib.php
index 8250e7719d1..e17f5c25301 100644
--- a/backup/backuplib.php
+++ b/backup/backuplib.php
@@ -549,6 +549,7 @@
if ($users) {
//Begin Users tag
fwrite ($bf,start_tag("USERS",2,true));
+ $counter = 0;
//With every user
foreach ($users as $user) {
//Get user data from table
@@ -654,6 +655,15 @@
}
//End User tag
fwrite ($bf,end_tag("USER",3,true));
+ //Do some output
+ $counter++;
+ if ($counter % 10 == 0) {
+ echo ".";
+ if ($counter % 200 == 0) {
+ echo "
";
+ }
+ backup_flush(300);
+ }
}
//End Users tag
fwrite ($bf,end_tag("USERS",2,true));
@@ -678,6 +688,7 @@
if ($logs) {
//Pring logs header
fwrite ($bf,start_tag("LOGS",2,true));
+ $counter = 0;
//Iterate
foreach ($logs as $log) {
//See if it is a valid module to backup
@@ -700,6 +711,15 @@
//End log tag
fwrite ($bf,end_tag("LOG",3,true));
}
+ //Do some output
+ $counter++;
+ if ($counter % 10 == 0) {
+ echo ".";
+ if ($counter % 200 == 0) {
+ echo "
";
+ }
+ backup_flush(300);
+ }
}
//End logs tag
$status = fwrite ($bf,end_tag("LOGS",2,true));
diff --git a/backup/mod/quiz/backuplib.php b/backup/mod/quiz/backuplib.php
index 824ee00076c..2c70452c7e9 100644
--- a/backup/mod/quiz/backuplib.php
+++ b/backup/mod/quiz/backuplib.php
@@ -124,6 +124,7 @@
if ($questions) {
//Write start tag
$status =fwrite ($bf,start_tag("QUESTIONS",4,true));
+ $counter = 0;
//Iterate over each question
foreach ($questions as $question) {
//Start question
@@ -153,6 +154,15 @@
}
//End question
$status =fwrite ($bf,end_tag("QUESTION",5,true));
+ //Do some output
+ $counter++;
+ if ($counter % 10 == 0) {
+ echo ".";
+ if ($counter % 200 == 0) {
+ echo "
";
+ }
+ backup_flush(300);
+ }
}
//Write end tag
$status =fwrite ($bf,end_tag("QUESTIONS",4,true));