[Server-devel] Backup and Recovery

Hamilton Chua hamilton.chua at gmail.com
Sun Nov 1 22:43:34 EST 2009


Martin,

Thanks so much for the replies.  I have found the problem. I was
creating the spins based on the strawberry release. It seems there were
a few changes in the journalentrybundle python script since then that
allows restore to work.

I have backported the changes to the strawberry release and restore
seems to be working now. 

However, I would like to ask how the work flow goes for restoring data.

Here's how I do it :

1) boot SoaS
2) open the Browse Activity and go to the "Backups" tab in my moodle
page
3) click on the link of a backup I want to restore
4) Browse downloads the file and puts it in the Journal
5) I click "Show in Journal"
6) I see the "Activity+Backup" file details.
7) Click "back" to journal

Now in the Journal, right below the "Activity+Backup" file entry in the,
I see the data that was restored.

Is the above how more or less restore should work or behave ? I was sort
of expecting the  "Activity+Backup" file to be replaced by the restored
data in the Journal.

Thanks again.

Best,

Hamilton


On Fri, 2009-10-30 at 10:43 +0100, Martin Langhoff wrote:
> On Fri, Oct 30, 2009 at 1:08 AM, Hamilton Chua <hamilton.chua at gmail.com> wrote:
> > After turning on verbose debugging in the logs and tailing them during
> > an attempted restore.
> >
> > I noticed a series of errors that ended with
> >
> > AttributeError: "JournalEntryBundle" object has no attribute
> > 'get_bundle_id'
> 
> Hmmm. Weird. "get_bundle_id" sounds a lot like a method, not an
> attribute. See http://www.google.es/search?hl=en&q=get_bundle_id+site%3Aapi.sugarlabs.org
> 
> In other words -- sounds strongly like a bug somewhere between Browse & Journal
> 
> 
> > It occurs when the file has been placed in the journal. The journal
> > checks if it's an activity or content bundle.
> 
> Then there's a typo / thinko on the Journal code.
> 
> > file, I noticed that the activity and activity_id files are empty and
> > the mime_type says it is "application/vnd.olpc-journal-entry". Does this
> > sound right ?
> 
> Yes, and no. It's a good indication that my diagnosis above is right.
> Browse has received the right thing from Moodle, but when the Journal
> is asked to store an "application/vnd.olpc-journal-entry" it should
> unpack it and store its contents instead...
> 
> cheers,
> 
> 
> 
> m



More information about the Server-devel mailing list