Oops. I should've clicked Reply All :-)<br><br>I'm using an older snapshot - Soas2-200904031934.<br><br><div class="gmail_quote">On Tue, May 5, 2009 at 10:52 PM, Martin Langhoff <span dir="ltr"><<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Hamilton,<br>
<br>
Let's keep this on the list. Is that from a recent SoaS? The datastore<br>
storage format has changed then, and we need to add support to Moodle<br>
for it.<br>
<br>
More work! :-p<br>
<br>
Sugaristas, if I want to support the 0.84 datastore, is the on-disk<br>
layout well explained anywhere? There's many pages, none says what<br>
version they are authoritative for... I suspect the right page is:<br>
<br>
<a href="http://wiki.sugarlabs.org/go/Development_Team/Datastore_Rewrite" target="_blank">http://wiki.sugarlabs.org/go/Development_Team/Datastore_Rewrite</a><br>
<br>
Hamiton's orig email below for reference...<br>
<font color="#888888"><br>
<br>
<br>
m<br>
</font><div><div></div><div class="h5"><br>
On Tue, May 5, 2009 at 4:38 PM, Hamilton Chua <<a href="mailto:hamilton.chua@gmail.com">hamilton.chua@gmail.com</a>> wrote:<br>
> Thanks Martin, I think this will be very helpful.<br>
> I looked at the contents of the data store folder and mine looks like ...<br>
><br>
> [root@schoolserver1 THW40541797]# cd datastore-latest/<br>
> [root@schoolserver1 datastore-latest]# ls -lah<br>
> total 15K<br>
> drwxr-xr-x+ 6 THW40541797 THW40541797 1.0K 2009-04-23 23:24 .<br>
> drwxr-x---+ 7 THW40541797 THW40541797 1.0K 2009-04-23 23:19 ..<br>
> drwxr-xr-x+ 3 THW40541797 THW40541797 1.0K 2009-04-24 10:31 5f<br>
> drwxr-xr-x+ 4 THW40541797 THW40541797 1.0K 2009-04-24 11:02 checksums<br>
> drwxr-xr-x+ 3 THW40541797 THW40541797 1.0K 2009-04-24 10:36 f6<br>
> drwxr-xr-x+ 2 THW40541797 THW40541797 1.0K 2009-04-24 11:03 index<br>
> -rw-r--r--+ 2 THW40541797 THW40541797 0 2009-04-24 10:30 index_updated<br>
> -rw-r--r--+ 2 THW40541797 THW40541797 1 2009-04-24 10:30 version<br>
><br>
> there is no store folder, instead there are 4 folders and 2 files.<br>
><br>
><br>
><br>
><br>
> On Tue, Apr 28, 2009 at 12:58 AM, Martin Langhoff<br>
> <<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a>> wrote:<br>
>><br>
>> On Mon, Apr 27, 2009 at 3:59 PM, Hamilton Chua <<a href="mailto:hamilton.chua@gmail.com">hamilton.chua@gmail.com</a>><br>
>> wrote:<br>
>> > Thanks so much for replying. I don't have an XO laptop so I'm unable to<br>
>> > verify how backup/restore should really work but from your reply below<br>
>> > I'm guessing that there really should be a store directory<br>
>><br>
>> Ah, thought you had one. Sorry. Here's a sample from an XS dev box I have<br>
>> here<br>
>><br>
>> [root@schoolserver1 web]# ls -lah /library/users/<br>
>> total 28K<br>
>> drwxr-xr-x 6 root root 4.0K 2009-04-03 06:51 .<br>
>> drwxr-xr-x 9 root root 4.0K 2009-02-27 17:48 ..<br>
>> drwxr-x---+ 24 CSN7470319B CSN7470319B 4.0K 2009-04-27 10:11 CSN7470319B<br>
>> drwxr-x---+ 10 SHC84601226 SHC84601226 4.0K 2009-04-02 20:02 SHC84601226<br>
>> drwxr-x---+ 6 SHF80801EE8 SHF80801EE8 4.0K 2009-01-21 12:17 SHF80801EE8<br>
>> drwx------ 5 SHF8080271C SHF8080271C 4.0K 2009-04-03 06:51 SHF8080271C<br>
>><br>
>> This is the directory for a specific user - showing the hard-linked<br>
>> snapshots. Names of the dirs are teh UTC time in which the snapshot<br>
>> was completed. The little '+' sign means that they have ACLs (the only<br>
>> ACL is so that apache can read them).<br>
>><br>
>> [root@schoolserver1 web]# ls -lah /library/users/CSN7470319B/<br>
>> total 112K<br>
>> drwxr-x---+ 24 CSN7470319B CSN7470319B 4.0K 2009-04-27 10:11 .<br>
>> drwxr-xr-x 6 root root 4.0K 2009-04-03 06:51 ..<br>
>> -rw-r--r-- 1 CSN7470319B CSN7470319B 18 2008-02-29 09:27 .bash_logout<br>
>> -rw-r--r-- 1 CSN7470319B CSN7470319B 176 2008-02-29 09:27 .bash_profile<br>
>> -rw-r--r-- 1 CSN7470319B CSN7470319B 124 2008-02-29 09:27 .bashrc<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-01-21_15:43<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-03-25_15:06<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-03-26_00:08<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-03-27_00:11<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-03-28_00:02<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-03-29_00:13<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-03-30_09:12<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-03-31_00:06<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-01_00:04<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-02_16:02<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-03_00:02<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-10_20:32<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-13_10:42<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-14_06:14<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-15_20:19<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-17_12:08<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-23_14:42<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-24_00:10<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-2009-04-27_14:11<br>
>> drwxr-xr-x 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43<br>
>> datastore-current<br>
>> lrwxrwxrwx 1 CSN7470319B CSN7470319B 53 2009-04-27 10:11<br>
>> datastore-latest -><br>
>> /library/users/CSN7470319B/datastore-2009-04-27_14:11<br>
>> -rw-r--r-- 1 CSN7470319B CSN7470319B 500 2008-05-23 13:35 .emacs<br>
>> drwxr-xr-x 2 CSN7470319B CSN7470319B 4.0K 2008-04-06 16:43 .gnome2<br>
>> drwx------ 2 CSN7470319B root 4.0K 2009-01-21 10:14 .ssh<br>
>><br>
>> [root@schoolserver1 web]# ls -lah<br>
>> /library/users/CSN7470319B/datastore-2009-04-27_14:11<br>
>> total 124K<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 .<br>
>> drwxr-x---+ 24 CSN7470319B CSN7470319B 4.0K 2009-04-27 10:11 ..<br>
>> drwxr-xr-x+ 4 CSN7470319B CSN7470319B 112K 2009-04-24 07:32 store<br>
>><br>
>> This is a particular datastore -- fairly large so I've skipped the<br>
>> records inthe middle -<br>
>><br>
>> [root@schoolserver1 web]# ls -lah<br>
>> /library/users/CSN7470319B/datastore-2009-04-27_14:11/store/ | head<br>
>> total 243M<br>
>> drwxr-xr-x+ 4 CSN7470319B CSN7470319B 112K 2009-04-24 07:32 .<br>
>> drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 ..<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 348 2008-10-07 19:26<br>
>> 005714d1-f432-4d85-acdc-7d2a8a261395.metadata<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 721 2008-10-21 12:15<br>
>> 007610f6-62ec-4a74-af49-2d1f8cafe0fc<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 378 2008-10-21 12:15<br>
>> 007610f6-62ec-4a74-af49-2d1f8cafe0fc.metadata<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 36K 2008-11-25 14:42<br>
>> 01032138-bb02-4132-a33e-51bb464f34dd<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 275 2008-11-25 14:42<br>
>> 01032138-bb02-4132-a33e-51bb464f34dd.metadata<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 308 2008-11-25 09:34<br>
>> 015e6039-26b6-4424-bbe2-934564ae0f20.metadata<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 304 2008-10-23 11:17<br>
>> 0174d375-d574-49b2-aa7b-5dca4e22c52e<br>
>> [root@schoolserver1 web]# ls -lah<br>
>> /library/users/CSN7470319B/datastore-2009-04-27_14:11/store/ | tail<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 4.4K 2008-10-21 04:19<br>
>> ff0f7b98-e62c-45dd-8912-25619988ef07<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 355 2008-10-21 04:19<br>
>> ff0f7b98-e62c-45dd-8912-25619988ef07.metadata<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 990 2008-08-29 20:43<br>
>> ff13d2e5-8ba1-44ac-ad7f-d0c23e806587<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 397 2008-08-29 20:43<br>
>> ff13d2e5-8ba1-44ac-ad7f-d0c23e806587.metadata<br>
>> -rw-r--r--+ 19 CSN7470319B CSN7470319B 932 2009-02-27 17:25<br>
>> ffbed191-707c-4281-944b-ab342ebb3012<br>
>> -rw-r--r--+ 19 CSN7470319B CSN7470319B 345 2009-02-27 17:25<br>
>> ffbed191-707c-4281-944b-ab342ebb3012.metadata<br>
>> drwxr-xr-x+ 2 CSN7470319B CSN7470319B 4.0K 2009-04-24 07:33 index<br>
>> -rw-r--r--+ 20 CSN7470319B CSN7470319B 0 2008-07-08 21:58<br>
>> .metadata.exported<br>
>> -rwxr-xr-x+ 20 CSN7470319B CSN7470319B 128 2008-05-13 09:43 metainfo<br>
>> drwxr-xr-x+ 2 CSN7470319B CSN7470319B 56K 2009-04-24 07:32 preview<br>
>><br>
>> hope that helps!<br>
>><br>
>> cheers,<br>
>><br>
>><br>
>><br>
>> martin<br>
>> --<br>
>> <a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a><br>
>> <a href="mailto:martin@laptop.org">martin@laptop.org</a> -- School Server Architect<br>
>> - ask interesting questions<br>
>> - don't get distracted with shiny stuff - working code first<br>
>> - <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5"> <a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a><br>
<a href="mailto:martin@laptop.org">martin@laptop.org</a> -- School Server Architect<br>
- ask interesting questions<br>
- don't get distracted with shiny stuff - working code first<br>
- <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
</div></div></blockquote></div><br>