Development Team/Almanac/sugar.datastore.datastore: Difference between revisions
| Line 72: | Line 72: | ||
=== How do I get command line access to the files in my DataStore? === | === How do I get command line access to the files in my DataStore? === | ||
Use the [ | Use the [http://wiki.laptop.org/go/Datastore_symbolic_links dslinks.py] script to generate a set of symbolic links. Then you can use a script similar to the following to copy selected datastore objects to a usb stick or sd chip. This version selects all the datastore objects that have a file extension of '.odt' (which are generated by abiword). To experiment with unix shell commands substitute 'echo $fn' for the 'cp -p $fn /media/KINGSTON' | ||
<pre> | <pre> | ||
#use the unix for command to iterate over the activities or file extensions of interest | #use the unix for command to iterate over the activities or file extensions of interest | ||
for fn in `find /home/olpc/datalinks |grep | for fn in `find /home/olpc/datalinks |grep .odt`; | ||
do | do | ||
cp -p $fn /media/KINGSTON | cp -p $fn /media/KINGSTON | ||