Export datas to other software with dumppykota
Last modified on $Date$
If you want to reuse PyKota datas in another
software, but don't want to modify your existing application to
have it connect to PyKota's database, your
best option is the new dumpykota command.
dumpykota can export PyKota
datas in a number of formats. As of September 27th 2004, output formats are
comma separated values, semicolon separated values, and tab separated values.
More formats, different, are planned : XML, SQL,
and LDIF are planned, but are currently not implemented.
dumpykota can't dump all datas at once though, you have
to specify which type of datas you want. The possible types are :
Users
Users groups
Printers
Printers groups membership
Users groups membership
Users print quota entries
Users groups print quota entries
History of payments
History of print jobs
You can then import the dumped datas into a spreadsheet for example,
if you want to create complex reports with nice looking graphs and
the like.
This command could also be used if you plan to write your own management
tools : just write wrappers around the pkprinters,
edpykota, and dumpykota
tools, and your own tools will automatically benefit from PyKota
database backend independance layer.
Warning
Contrary to the repykota command, dumpykota
doesn't currently limit which datas can be exported by normal users, so please take
care to not allow normal users to read the /etc/pykota/pykota.conf
file or to execute the dumpykota command if you don't
want to expose possibly sensitive datas.
Reference
dumpykota
-v--version
-h--help
-f outputformat
--format outputformat
-d datatype
--data datatype