We're trying to extract our best Etoys projects from our pilots to put on our website.
We've been using a shell script that uses rsync to backup Etoys projects from our XO pilots (build 703)
rsync -rltvz --modify-window=1 --stats --progress /home/olpc/.sugar/ default/org.vpri.EtoysActivity/data/MyEtoys/Squeaklets/
I'm noticing some strangeness about the backup files ...
1) some don't have the .pr extension
2) some don't seem to have the versioning info in the name (blah. 002.pr ... seems only the ones with the .pr extension do)
3) sometimes there's directories that contain html, rc.gz, and manifest files
A few questions:
1) can you keep the .pr extension on all of them (makes our life *much* easier)
2) for the files without the versioning, are we possibly losing some versions of same-named projects? (even the latest?)
3) are there any bits from directories other than the one above that we need to preserve (we don't care about description/tag journal stuff)
4) will the directly above change in new builds?
Thanks, Tim
-- Timothy Falconer http://bigfractaltangle.com 610-393-1889 mobile
Immuexa Corporation http://immuexa.com 610-797-3100
At Tue, 26 Aug 2008 11:26:21 -0400, Timothy Falconer wrote:
We're trying to extract our best Etoys projects from our pilots to put on our website.
We've been using a shell script that uses rsync to backup Etoys projects from our XO pilots (build 703)
rsync -rltvz --modify-window=1 --stats --progress /home/olpc/.sugar/ default/org.vpri.EtoysActivity/data/MyEtoys/Squeaklets/
Squeaklets is meant to be a transitive work directory used when creating the .pr. We are contemplating to remove it often, so we cannot guarantee the above works long term.
A bit clumsy way is to use "Publish as... " menu and save the content into "MyEtoys", not in "[... Journal]". And then get the .pr files from "/home/olpc/isolation".
There are scripts available here:
http://wiki.laptop.org/go/Datastore_symbolic_links
to create symlinks and rsync with --copy-links option. But it appears that the names will be lost.
Alternatively, it is fairly straitforward to write a script that looks at /home/olpc/.sugar/default/datastore/store/*.metadata and copy the etoys projects.
- sometimes there's directories that contain html, rc.gz, and
manifest files
This probably happened when the saving didn't succeed and it left intermediate files.
- can you keep the .pr extension on all of them (makes our life
*much* easier)
- for the files without the versioning, are we possibly losing some
versions of same-named projects? (even the latest?)
I might have to suggest that "Publish as..." may be straightforward at the moment.
- are there any bits from directories other than the one above that
we need to preserve (we don't care about description/tag journal stuff)
The real data is under datastore/store, if you save them into Journal.
- will the directly above change in new builds?
-- Yoshiki
etoys-dev@lists.squeakfoundation.org