On Wed, Jan 04, 2012 at 08:27:22PM -0600, Bruce Guenter wrote:
> Hi.
> 
> How do I make btool store a database onto my BlackBerry?  This seems
> like it should be simple but I have been unable to get it to work.  No
> matter what I have tried with btool -s, all I get is "Store counted 0
> records." and an empty database on the BB.

Hi Bruce,

I should fix that message.  Store only counts the records that are
taken from the device, to memory (and eventually to the boost file).
It will report 0 when restoring from file to device.


> Here's what I've done.  I am trying to transfer some memos from my
> computer to my BB.  As a test, I dumped out the current "Memos" database
> to a file with btool -d Memos.  For good measure, I stored it in the
> default format, vcard format, with null conversion, and as a boost dump
> with -f.
> 
> Now I am trying to reload that data back onto the BB.  When I do:
> 
>       btool -s Memos -f Memos.boost
> 
> it does load and parse the memos in that file, reports "# records
> loaded" but still stores nothing.

I've just tried this very test with git master here, and it works.
It does report 0 records, but the records are restored.

If you're running git master, there is also the bio tool, which is
more flexible if you want to work with data in a stream-like style.
You can take record data from one of the supported inputs, and write
it to multiple outputs.

For example:

This simulates btools's -d output:

        bio -i device -d Memos -o dump

This reads a boost file and dumps to stdout:

        bio -i boost -f Memos.boost -o dump

This reads a boost file and writes to the device:

        bio -i boost -f Memos.boost -o device -w erase


The nice thing about bio is that it supports the tar backup format,
which gets away from the boost file format, which can be brittle.


This is just additional information... btool should work just fine
for you.  I would recommend trying this as a confirmation:

        btool -d Memos -f Memos.boost
        bio -i boost -f Memos.boost -o dump

If you see data, then the boost file is valid, and the problem is in
the btool -s stage.  If this is the case, try adding -v to the btool
command line, and posting the results to see where it's failing.

- Chris


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to