root / pykota / trunk / man / th / dumpykota.1 @ 2344

Revision 2344, 3.8 kB (checked in by jerome, 19 years ago)

Moved the GPL blurb into a single location.
Now uses named parameters in commands' help.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
2.TH DUMPYKOTA "1" "juillet 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
3.SH NOM
4dumpykota \- page de manuel de dumpykota 1.23alpha16_unofficial
5.SH DESCRIPTION
6dumpykota v1.23alpha16_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com
7.PP
8Dumps PyKota database's content.
9.PP
10command line usage :
11.IP
12dumpykota [options] [filterexpr]
13.PP
14options :
15.TP
16\fB\-v\fR | \fB\-\-version\fR
17Prints dumpykota's version number then exits.
18.TP
19\fB\-h\fR | \fB\-\-help\fR
20Prints this message then exits.
21.TP
22\fB\-d\fR | \fB\-\-data\fR type
23Dumps 'type' datas. Allowed types are :
24.IP
25\- history : dumps the jobs history.
26\- users : dumps users.
27\- groups : dumps user groups.
28\- printers : dump printers.
29\- upquotas : dump user quotas.
30\- gpquotas : dump user groups quotas.
31\- payments : dumps user payments.
32\- pmembers : dumps printer groups members.
33\- umembers : dumps user groups members.
34\- billingcodes : dumps billing codes.
35.IP
36NB : the \fB\-d\fR | \fB\-\-data\fR command line option
37is MANDATORY.
38.TP
39\fB\-f\fR | \fB\-\-format\fR fmt
40Dumps datas in the 'fmt' format. When not specified,
41the format is to dump datas in the csv format (comma
42separated values). All data dumped is between double
43quotes. Allowed formats are :
44.IP
45\- csv : separate datas with commas
46\- ssv : separate datas with semicolons
47\- tsv : separate datas with tabs
48\- xml : dump data as XML
49\- cups : dump datas in CUPS' page_log format :
50.IP
51ONLY AVAILABLE WITH \fB\-\-data\fR history
52.TP
53\fB\-o\fR | \fB\-\-output\fR fname
54All datas will be dumped to the file instead of
55to the standard output. The special '\-' filename
56is the default value and means stdout.
57WARNING : existing files are truncated !
58.TP
59\fB\-s\fR | \fB\-\-sum\fR
60Summarize the selected datas.
61ONLY AVAILABLE WITH \fB\-\-data\fR history or payments
62.IP
63Use the filter expressions to extract only parts of the
64datas. Allowed filters are of the form :
65.IP
66key=value
67.IP
68Allowed keys for now are :
69.TP
70username
71User's name
72.TP
73groupname
74Users group's name
75.TP
76printername
77Printer's name
78.TP
79pgroupname
80Printers group's name
81.TP
82hostname
83Client's hostname
84.TP
85billingcode
86Job's billing code
87.TP
88start
89Job's date of printing
90.TP
91end
92Job's date of printing
93.IP
94Contrary to other PyKota management tools, wildcard characters are not
95expanded, so you can't use them.
96.IP
97NB : not all keys are allowed for each data type, so the result may be
98empty if you use a key not available for a particular data type.
99.PP
100Examples :
101.IP
102\f(CW$ dumpykota --data history --format csv >myfile.csv\fR
103.IP
104This dumps the history in a comma separated values file, for possible
105use in a spreadsheet.
106.IP
107\f(CW$ dumpykota --data users --format xml -o users.xml\fR
108.IP
109Dumps all users datas to the users.xml file.
110.IP
111\f(CW$ dumpykota --data history printername=HP2100 username=jerome\fR
112.IP
113Dumps the job history for user jerome on printer HP2100 only.
114.IP
115\f(CW$ dumpykota --data history start=200503 end=20050730234615\fR
116.IP
117Dumps all jobs printed between March 1st 2005 at midnight and
118July 30th 2005 at 23 hours 46 minutes and 15 secondes included.
119.PP
120This program is free software; you can redistribute it and/or modify
121it under the terms of the GNU General Public License as published by
122the Free Software Foundation; either version 2 of the License, or
123(at your option) any later version.
124.PP
125This program is distributed in the hope that it will be useful,
126but WITHOUT ANY WARRANTY; without even the implied warranty of
127MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
128GNU General Public License for more details.
129.PP
130You should have received a copy of the GNU General Public License
131along with this program; if not, write to the Free Software
132Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301, USA.
133.PP
134Please report bugs to : Jerome Alet \- alet@librelogiciel.com
Note: See TracBrowser for help on using the browser.