Hi list,
There's a new tool in the Barry git repo today, called bio. Bio is a
command line tool that does Barry Input / Output, and supports the following
types of IO:
- device
- tar backup files
- boost serialization files and streams
- mime streams
- LDIF streams
- human readable text dumps and hex dumps
- SHA1 sum output
This tool combines a lot of the functionality of btool, btardump, brecsum,
and bs11nread, but does it more flexibly, and better.
Here's a few examples, to show its power:
1) Backup a full device to tar backup:
bio -i device -A -o tar -f mybackup.tar.gz
You'll notice that the theme is one -i option, which selects the input
type, and multiple -o options, selecting the output type. Each type
can take options of its own.
For example:
2) Read a backup file and convert the Address Book to MIME
bio -i tar -f mybackup.tar.gz -d "Address Book" -o mime
3) Copy the Calendar from one device to another, and dump
the records to stdout in human readable format at the same time
bio -i device -p 3009efe3 -d Calendar \
-o device -p 204062f3 \
-o dump
4) Read LDIF input and convert the contacts to MIME format
ldapsearch -x | bio -i ldif -o mime
5) Test the record code by running the Tasks database through
the Boost storage and back to human readable
bio -i device -d Tasks -o dump
vs.
bio -i device -d Tasks -o boost -f - | \
bio -i boost -f - -o dump
Play around with it, and let me know if you find any bugs.
Enjoy,
- Chris
------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months. Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Barry-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/barry-devel