Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Course Restore fails with Duplicate Entry error

$
0
0
by Ken Task.  

The site ID's should be different so me thinks chasing that rabbit is going down a hole.

Could be the 'lmsAdmin' contained in users.xml.

Now I know you have 100+ courses to restore and rebulding a backup excluding that user from the users.xml file contained in the backup extracted isn't something you want to do, but better than loosing  100+ courses.

Could copy one of those backup files to a test directory.
Extract the contents in that test directory.
edit users.xml file and remove the 'lmsAdmin' user.  Save the users.xml file
erase the .mbz file in that directory
then rebuild the .mbz file
tar -cvf nameofrebuiltbackup.mbz ./*

The try to restore nameofrebuiltbackup.mbz to a test category using the 'restore_backup.php script to that test category.

If that works, there's your solution ... even though it's time consuming and would probably take many pots of coffee! sad

Fingers crossed for ya!
'SoS', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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