[Server-devel] Backup and Recovery

Tomeu Vizoso tomeu at sugarlabs.org
Fri Nov 6 07:37:49 EST 2009


On Fri, Nov 6, 2009 at 12:31, Hamilton Chua <hamilton.chua at gmail.com> wrote:
> Hello Tomeu,
>
> My apologies. Let me try to start from the beginning.
>
> I am working on Sugar on a stick (SoaS) built on Sugar 0.84.2
> (strawberry release)
>
> Backup works fine but we encounter an issue when restoring.
>
> Restore works by going to the user's moodle page, clicking on the
> "Backup" tab and clicking on the backup file to restore.
>
> The expected behavior, and I think this is the case on 0.86 on the XO,
> Browse should download the backup file and Journal extracts it such that
> the backup file is removed from the journal and in its place would
> appear the restored files.
>
> Right now on Sugar 0.84.2, the downloaded backup file stays in the
> journal and the journal does not unzip it to restore the backed up
> files.
>
> I've been able to debug and fix to the extent that it extracts the files
> from the backup but not remove the downloaded backup file from the
> Journal. I was able to get that far by adding what seems to be a missing
> def in journalbentrybundle.py, namely get_bundle_id but I am now seeing
> a different problem as seen in the stacktrace, please see below.
>
> Apparently 0.84.2 is missing some changes made in the succeeding
> versions that allow restore to work.
>
> I'm inclined to just use 0.86 but 0.84.2 is what is used in the
> strawberry release and there might be users out there who want
> backup/restore to work without upgrading to sugar to 0.86.
>
> Hope this gets you up to speed.

Thanks, this makes it clear now. You are doing a great work, btw.

> >>    bundle = ActivityBundle(bundle_path)



More information about the Server-devel mailing list