Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store
On Mon, May 11, 2009 at 2:18 PM, Hamilton Chua hamilton.c...@gmail.com wrote: Good news. I had a chance to test it today and it looks like the Moodle UI is picking up on the back ups now. I'll be doing a couple of tests over the course of the next few days. I'll be sure to let you know if we encounter problems. Excellent. Thanks for reporting back. I have an additional patch that solves a problem with users with single quotes in their nicknames (the name you pick on your XO). cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store
Martin, Good news. I had a chance to test it today and it looks like the Moodle UI is picking up on the back ups now. I'll be doing a couple of tests over the course of the next few days. I'll be sure to let you know if we encounter problems. Thanks you so much for quickly updating the moodle backup ui. Best, Hamilton On Thu, May 7, 2009 at 8:11 AM, Hamilton Chua hamilton.c...@gmail.com wrote: Martin, Thanks, sorry I don't have a lot of activities to backup yet on my test SoaS. I'll give this a go today and report back the results here. Best, Hamilton On Wed, 2009-05-06 at 19:23 +0200, Martin Langhoff wrote: On Tue, May 5, 2009 at 4:52 PM, Martin Langhoff martin.langh...@gmail.com wrote: Let's keep this on the list. Is that from a recent SoaS? The datastore storage format has changed then, and we need to add support to Moodle for it. More work! :-p Done - not tested much -- the zipfile you've given me didn't have much data. http://dev.laptop.org/git/users/martin/moodle.git/commit/?h=mdl19-xsid=5f522dbef1878284d15ae2ef0872c8dd5caa1953 So I need your help in reporting whether it works well for your SoaS clients. I assume you're already using my moodle branch, so a mere git pull will get you the right code... ;-) Note: It won't list metadata-only entries. If there's no 'data' file, it's not listed. cheers, m ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store
Martin, Thanks, sorry I don't have a lot of activities to backup yet on my test SoaS. I'll give this a go today and report back the results here. Best, Hamilton On Wed, 2009-05-06 at 19:23 +0200, Martin Langhoff wrote: On Tue, May 5, 2009 at 4:52 PM, Martin Langhoff martin.langh...@gmail.com wrote: Let's keep this on the list. Is that from a recent SoaS? The datastore storage format has changed then, and we need to add support to Moodle for it. More work! :-p Done - not tested much -- the zipfile you've given me didn't have much data. http://dev.laptop.org/git/users/martin/moodle.git/commit/?h=mdl19-xsid=5f522dbef1878284d15ae2ef0872c8dd5caa1953 So I need your help in reporting whether it works well for your SoaS clients. I assume you're already using my moodle branch, so a mere git pull will get you the right code... ;-) Note: It won't list metadata-only entries. If there's no 'data' file, it's not listed. cheers, m signature.asc Description: This is a digitally signed message part ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store
Sure thing. It's on its way to your inbox. Thanks !!! ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store
On Mon, Apr 27, 2009 at 3:59 PM, Hamilton Chua hamilton.c...@gmail.com wrote: Thanks so much for replying. I don't have an XO laptop so I'm unable to verify how backup/restore should really work but from your reply below I'm guessing that there really should be a store directory Ah, thought you had one. Sorry. Here's a sample from an XS dev box I have here [r...@schoolserver1 web]# ls -lah /library/users/ total 28K drwxr-xr-x 6 rootroot4.0K 2009-04-03 06:51 . drwxr-xr-x 9 rootroot4.0K 2009-02-27 17:48 .. drwxr-x---+ 24 CSN7470319B CSN7470319B 4.0K 2009-04-27 10:11 CSN7470319B drwxr-x---+ 10 SHC84601226 SHC84601226 4.0K 2009-04-02 20:02 SHC84601226 drwxr-x---+ 6 SHF80801EE8 SHF80801EE8 4.0K 2009-01-21 12:17 SHF80801EE8 drwx-- 5 SHF8080271C SHF8080271C 4.0K 2009-04-03 06:51 SHF8080271C This is the directory for a specific user - showing the hard-linked snapshots. Names of the dirs are teh UTC time in which the snapshot was completed. The little '+' sign means that they have ACLs (the only ACL is so that apache can read them). [r...@schoolserver1 web]# ls -lah /library/users/CSN7470319B/ total 112K drwxr-x---+ 24 CSN7470319B CSN7470319B 4.0K 2009-04-27 10:11 . drwxr-xr-x 6 rootroot4.0K 2009-04-03 06:51 .. -rw-r--r-- 1 CSN7470319B CSN7470319B 18 2008-02-29 09:27 .bash_logout -rw-r--r-- 1 CSN7470319B CSN7470319B 176 2008-02-29 09:27 .bash_profile -rw-r--r-- 1 CSN7470319B CSN7470319B 124 2008-02-29 09:27 .bashrc drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-01-21_15:43 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-03-25_15:06 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-03-26_00:08 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-03-27_00:11 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-03-28_00:02 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-03-29_00:13 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-03-30_09:12 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-03-31_00:06 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-01_00:04 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-02_16:02 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-03_00:02 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-10_20:32 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-13_10:42 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-14_06:14 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-15_20:19 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-17_12:08 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-23_14:42 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-24_00:10 drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-2009-04-27_14:11 drwxr-xr-x 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 datastore-current lrwxrwxrwx 1 CSN7470319B CSN7470319B 53 2009-04-27 10:11 datastore-latest - /library/users/CSN7470319B/datastore-2009-04-27_14:11 -rw-r--r-- 1 CSN7470319B CSN7470319B 500 2008-05-23 13:35 .emacs drwxr-xr-x 2 CSN7470319B CSN7470319B 4.0K 2008-04-06 16:43 .gnome2 drwx-- 2 CSN7470319B root4.0K 2009-01-21 10:14 .ssh [r...@schoolserver1 web]# ls -lah /library/users/CSN7470319B/datastore-2009-04-27_14:11 total 124K drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 . drwxr-x---+ 24 CSN7470319B CSN7470319B 4.0K 2009-04-27 10:11 .. drwxr-xr-x+ 4 CSN7470319B CSN7470319B 112K 2009-04-24 07:32 store This is a particular datastore -- fairly large so I've skipped the records inthe middle - [r...@schoolserver1 web]# ls -lah /library/users/CSN7470319B/datastore-2009-04-27_14:11/store/ | head total 243M drwxr-xr-x+ 4 CSN7470319B CSN7470319B 112K 2009-04-24 07:32 . drwxr-xr-x+ 3 CSN7470319B CSN7470319B 4.0K 2008-05-13 09:43 .. -rw-r--r--+ 20 CSN7470319B CSN7470319B 348 2008-10-07 19:26 005714d1-f432-4d85-acdc-7d2a8a261395.metadata -rw-r--r--+ 20 CSN7470319B CSN7470319B 721 2008-10-21 12:15 007610f6-62ec-4a74-af49-2d1f8cafe0fc -rw-r--r--+ 20 CSN7470319B CSN7470319B 378 2008-10-21 12:15 007610f6-62ec-4a74-af49-2d1f8cafe0fc.metadata -rw-r--r--+ 20 CSN7470319B CSN7470319B 36K 2008-11-25 14:42 01032138-bb02-4132-a33e-51bb464f34dd -rw-r--r--+ 20 CSN7470319B CSN7470319B 275 2008-11-25 14:42 01032138-bb02-4132-a33e-51bb464f34dd.metadata -rw-r--r--+ 20 CSN7470319B CSN7470319B 308 2008-11-25 09:34 015e6039-26b6-4424-bbe2-934564ae0f20.metadata -rw-r--r--+ 20 CSN7470319B CSN7470319B 304 2008-10-23 11:17 0174d375-d574-49b2-aa7b-5dca4e22c52e [r...@schoolserver1 web]# ls -lah
Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store
On Fri, Apr 24, 2009 at 1:58 AM, Hamilton Chua hamilton.c...@gmail.com wrote: I'm using SoaS, I have modified schoolserver.py to register with my XS and keep the generated serial and uuid in gconf. I have also modified ds-backup.py to read the SN from gconf. Cool that you're starting to poke at the code :-) I'm not sure if this is an issue with the hacks I've made but I got an error in the moodle UI backup tab that says Problem opening /library/users//datastore-x/store So you do have /library/users//datastore-x , but not the 'store' directory inside? Maybe your changes to the code on the XO changed the rsync call? cheers, martin -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store
On Fri, Apr 24, 2009 at 1:58 AM, Hamilton Chua hamilton.c...@gmail.com wrote: I'm using SoaS, I have modified schoolserver.py to register with my XS and keep the generated serial and uuid in gconf. I have also modified ds-backup.py to read the SN from gconf. One quick note. I'm a bit hesitant about storing config in gconf. IIRC the new sugar wants to hide everything there -- which means moderately technical users won't have a means to modify it. So I would prefer to consider moving to gconf values that have a clear UI knob. Without the UI to change the value, moving things to gconf is removing useful functionality (as in I can look at config files, add comments, diff them, change them, back them up, put them under any SCM) without an upside. If there's a UI for it, there's a benefit. Has to be a good UI, one that doesn't make mistakes, or the user is hosed. I still prefer textfiles for configuration, but I'm on the losing side of that argument it seems. [ Everyone is in love with the Registry model which was a disaster in VMS, later in WNT, and continues to add opacity, complexity and dataloss adventures to this day. Please ignore the flamebait :-) ] cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store
On Thu, Apr 23, 2009 at 7:58 PM, Hamilton Chua hamilton.c...@gmail.comwrote: I'm using SoaS, I have modified schoolserver.py to register with my XS and keep the generated serial and uuid in gconf. I have also modified ds-backup.py to read the SN from gconf. I'm not sure if this is an issue with the hacks I've made but I got an error in the moodle UI backup tab that says Problem opening /library/users//datastore-x/store where is the serial and is the data and time when the backup was made. I looked at these directories in the XS and I could not a find a store folder or file in datastore- Actually I think this happens, from my reading of the code, when there haven't been any backups yet. You need to make sure the backup process has run on the client side first. Dave Any ideas ? Thanks :-) ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel -- Dave Bauer d...@solutiongrove.com http://www.solutiongrove.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel