Manual backup with user info

Re: Manual backup with user info

by Ken Task -
Number of replies: 7
Picture of Particularly helpful Moodlers

Turn on Debugging and then step through the process of making a backup.

Take a screen shot of the very first screen in the process.   Your screen shot shows the second step - what one sees there dependent upon the first screen options chosen.

If there is an issue with read/write permissions or something blocking, that might show in debugging but it also might show in apache error logs.   If the system is remotely hosted on a shared system, sometimes providers of such systems have restrictions on accounts and when customers reach those limits, etc. they have things set to deny and will NOT report such denials back to customers screens.

Don't think there's a tracker item.    Soooo ... if we don't find anything in debug or raw logs of server we'll have to bump this to someone!

'spirit of sharing', Ken

In reply to Ken Task

Re: Manual backup with user info

by Tony Box -

I'm having this same issue. I'm the main site administrator and I'm not able to back up user data. I see the same thing that Inbar sees.

I turned on debugging and went through the backup process--here is what I see, from beginning to end:

[Fri Aug 21 09:47:39 2015] [error] [client 10.10.1.162] instantiating backup controller 8bbeccae25832454c5a652a52b47f733, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:39 2015] [error] [client 10.10.1.162] setting controller status to 100, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:39 2015] [error] [client 10.10.1.162] loading controller plan, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] setting controller status to 300, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] applying plan defaults, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] setting controller status to 400, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] setting controller status to 500, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] saving controller to db, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:47:40 2015] [error] [client 10.10.1.162] calculating controller checksum cffa9cb3a55140aec0d83b0e718a9660, referer: https://learningarchive.up.edu/moodle/course/view.php?id=10984

[Fri Aug 21 09:48:14 2015] [error] [client 10.10.1.162] loading controller from db, referer: https://learningarchive.up.edu/moodle/backup/backup.php?id=10984

[Fri Aug 21 09:48:14 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/backup/backup.php?id=10984

[Fri Aug 21 09:48:14 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/backup/backup.php?id=10984

[Fri Aug 21 09:48:14 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/backup/backup.php?id=10984

[Fri Aug 21 09:48:14 2015] [error] [client 10.10.1.162] saving controller to db, referer: https://learningarchive.up.edu/moodle/backup/backup.php?id=10984

[Fri Aug 21 09:48:14 2015] [error] [client 10.10.1.162] calculating controller checksum 0252e12b6f6afc4d13162202c827693c, referer: https://learningarchive.up.edu/moodle/backup/backup.php?id=10984

[Fri Aug 21 09:48:23 2015] [error] [client 10.10.1.162] loading controller from db, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:23 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:23 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:23 2015] [error] [client 10.10.1.162] checking plan security, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:23 2015] [error] [client 10.10.1.162] saving controller to db, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:23 2015] [error] [client 10.10.1.162] calculating controller checksum 0252e12b6f6afc4d13162202c827693c, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:33 2015] [error] [client 10.10.1.169] loading controller from db, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:33 2015] [error] [client 10.10.1.169] checking plan security, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:33 2015] [error] [client 10.10.1.169] checking plan security, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:33 2015] [error] [client 10.10.1.169] setting controller status to 700, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:33 2015] [error] [client 10.10.1.169] saving controller to db, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:33 2015] [error] [client 10.10.1.169] calculating controller checksum af291596fa70831224c62fef1f9ec4b9, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:33 2015] [error] [client 10.10.1.169] loading controller from db, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:33 2015] [error] [client 10.10.1.169] setting controller status to 800, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:50 2015] [error] [client 10.10.1.169] setting controller status to 1000, referer: https://learningarchive.up.edu/moodle/backup/backup.php

[Fri Aug 21 09:48:50 2015] [error] [client 10.10.1.169] saving controller to db, referer: https://learningarchive.up.edu/moodle/backup/backup.php

Looks like a lot of errors although I'm not sure if any are out of the ordinary?

Thanks,

Tony

In reply to Tony Box

Re: Manual backup with user info

by Ken Task -
Picture of Particularly helpful Moodlers

@Tony ...

Did you check system defaults for backups to make sure user data is not locked out?

What version of Moodle?   Got command line access? In moodlecode/admin/cli/ there is a script called 'backup.php'.  Execute like: php backup.php --courseid=[CID] --destination=/home/m26backups/

Have any clues in moodledata/temp/backup/?   Any larger than 0 byte .log file contains info that might provide a clue.

'spirit of sharing', Ken

In reply to Tony Box

Re: Manual backup with user info

by sonia sonia -

Hi, I have the same Issue and the solution (with moodle 2.9.1. installed) was check all the options in general backup settings except: comments, bagdes,logs,histories and unchecked. The locked option in all of them unchecked too...and then all works fine, all it's backup in the correct way. My sharing cart with troubles too.

I hope it's useful for all of you.


Average of ratings: Useful (2)
In reply to sonia sonia

Re: Manual backup with user info

by Tony Box -

Wow, thanks Sonia! That actually worked.

I did a little more experimenting and all you need is the following:

Under Site Administration -> Courses -> Backups -> General Backup Defaults, you must set the defaults to at least have "include enrolled users" and "include activities" checked. If either of these are unchecked at the site-level, taking a course backup will not include user data, even if you check those two things on the individual course backup's page.


This definitely seems like a bug to me. I'm going to create a tracker issue for it.

Average of ratings: Useful (2)
In reply to Tony Box

Re: Manual backup with user info

by Séverin Terrier -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Yes, not logical at all : it's a bug sad

Thanks for creating MDL-51364 ; voted.

Average of ratings: Useful (1)
In reply to Séverin Terrier

Re: Manual backup with user info

by Mark Nelson -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hey guys, the more people who vote on the issue the more likely it will get worked on sooner. So, get voting. smile