.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35. .TH DUMPYKOTA "1" "februari 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" .SH NAME dumpykota \- manual page for dumpykota 1.21beta_unofficial .SH DESCRIPTION dumpykota v1.21beta_unofficial (c) 2003, 2004, 2005 C@LL \- Conseil Internet & Logiciels Libres .PP Dumps PyKota database's content. .PP command line usage : .IP dumpykota [options] [filterexpr] .PP options : .TP \fB\-v\fR | \fB\-\-version\fR Prints dumpykota's version number then exits. .TP \fB\-h\fR | \fB\-\-help\fR Prints this message then exits. .TP \fB\-d\fR | \fB\-\-data\fR type Dumps 'type' datas. Allowed types are : .IP \- history : dumps the jobs history. \- users : dumps users. \- groups : dumps user groups. \- printers : dump printers. \- upquotas : dump user quotas. \- gpquotas : dump user groups quotas. \- payments : dumps user payments. \- pmembers : dumps printer groups members. \- umembers : dumps user groups members. .IP NB : the \fB\-d\fR | \fB\-\-data\fR command line option is MANDATORY. .TP \fB\-f\fR | \fB\-\-format\fR fmt Dumps datas in the 'fmt' format. When not specified, the format is to dump datas in the csv format (comma separated values). All data dumped is between double quotes. Allowed formats are : .IP \- csv : separate datas with commas \- ssv : separate datas with semicolons \- tsv : separate datas with tabs \- xml : dump data as XML \- cups : dump datas in CUPS' page_log format : .IP ONLY AVAILABLE WITH \fB\-\-data\fR history .TP \fB\-o\fR | \fB\-\-output\fR fname All datas will be dumped to the file instead of to the standard output. The special '\-' filename is the default value and means stdout. WARNING : existing files are truncated ! .IP Use the filter expressions to extract only parts of the datas. Allowed filters are of the form : .IP key=value .IP Allowed keys for now are : .TP username User's name .TP groupname Users group's name .TP printername Printer's name .TP pgroupname Printers group's name .IP Contrary to other PyKota management tools, wildcard characters are not expanded, so you can't use them. .IP NB : not all keys are allowed for each data type, so the result may be empty if you use a key not available for a particular data type. .PP Examples : .IP \f(CW$ dumpykota --data history --format csv >myfile.csv\fR .IP This dumps the history in a comma separated values file, for possible use in a spreadsheet. .IP \f(CW$ dumpykota --data users --format xml -o users.xml\fR .IP Dumps all users datas to the users.xml file. .IP \f(CW$ dumpykota --data history printername=HP2100 username=jerome\fR .IP Dumps the job history for user jerome on printer HP2100 only. .PP This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. .PP This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. .PP You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111\-1307, USA. .PP Please e\-mail bugs to: Jerome Alet \- alet@librelogiciel.com