root / pykota / trunk / man / pl / dumpykota.1 @ 3094

Revision 3094, 4.7 kB (checked in by jerome, 17 years ago)

Documented the start= and end= filters for the data dumper.

Line 
1.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
2.TH DUMPYKOTA "1" "novembre 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
3.SH NOM
4dumpykota \- page de manuel de dumpykota 1.25alpha18_unofficial
5.SH DESCRIPTION
6dumpykota v1.25alpha18_unofficial (c) 2003, 2004, 2005, 2006 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\- all : dumps all PyKota datas. The output format
36.IP
37is always XML in this case.
38.IP
39NB : the \fB\-d\fR | \fB\-\-data\fR command line option
40is MANDATORY.
41.TP
42\fB\-f\fR | \fB\-\-format\fR fmt
43Dumps datas in the 'fmt' format. When not specified,
44the format is to dump datas in the csv format (comma
45separated values). All data dumped is between double
46quotes. Allowed formats are :
47.IP
48\- csv : separate datas with commas
49\- ssv : separate datas with semicolons
50\- tsv : separate datas with tabs
51\- xml : dump data as XML
52\- cups : dump datas in CUPS' page_log format :
53.IP
54ONLY AVAILABLE WITH \fB\-\-data\fR history
55.TP
56\fB\-o\fR | \fB\-\-output\fR fname
57All datas will be dumped to the file instead of
58to the standard output. The special '\-' filename
59is the default value and means stdout.
60WARNING : existing files are truncated !
61.TP
62\fB\-s\fR | \fB\-\-sum\fR
63Summarize the selected datas.
64ONLY AVAILABLE WITH \fB\-\-data\fR history or payments
65.IP
66Use the filter expressions to extract only parts of the
67datas. Allowed filters are of the form :
68.IP
69key=value
70.IP
71Allowed keys for now are :
72.TP
73username
74User's name
75.TP
76groupname
77Users group's name
78.TP
79printername
80Printer's name
81.TP
82pgroupname
83Printers group's name
84.TP
85hostname
86Client's hostname
87.TP
88jobid
89Job's Id
90.TP
91billingcode
92Job's billing code
93.TP
94start
95Job's date of printing
96.TP
97end
98Job's date of printing
99.IP
100Dates formatting with 'start' and 'end' filter keys :
101.IP
102YYYY : year boundaries
103YYYYMM : month boundaries
104YYYYMMDD : day boundaries
105YYYYMMDDhh : hour boundaries
106YYYYMMDDhhmm : minute boundaries
107YYYYMMDDhhmmss : second boundaries
108yesterday[+\-NbDays] : yesterday more or less N days (e.g. : yesterday\-15)
109today[+\-NbDays] : today more or less N days (e.g. : today\-15)
110tomorrow[+\-NbDays] : tomorrow more or less N days (e.g. : tomorrow\-15)
111now[+\-NbDays] : now more or less N days (e.g. now\-15)
112.IP
113\&'now' and 'today' are not exactly the same since today represents the first
114or last second of the day depending on if it's used in a start= or end=
115date expression. The utility to be able to specify dates in the future is
116a question which remains to be answered :\-)
117.IP
118Contrary to other PyKota management tools, wildcard characters are not
119expanded, so you can't use them.
120.IP
121NB : not all keys are allowed for each data type, so the result may be
122empty if you use a key not available for a particular data type.
123.PP
124Examples :
125.IP
126\f(CW$ dumpykota --data history --format csv >myfile.csv\fR
127.IP
128This dumps the history in a comma separated values file, for possible
129use in a spreadsheet.
130.IP
131\f(CW$ dumpykota --data users --format xml -o users.xml\fR
132.IP
133Dumps all users datas to the users.xml file.
134.IP
135\f(CW$ dumpykota --data history printername=HP2100 username=jerome\fR
136.IP
137Dumps the job history for user jerome on printer HP2100 only.
138.IP
139\f(CW$ dumpykota --data history start=200503 end=20050730234615\fR
140.IP
141Dumps all jobs printed between March 1st 2005 at midnight and
142July 30th 2005 at 23 hours 46 minutes and 15 secondes included.
143.PP
144This program is free software; you can redistribute it and/or modify
145it under the terms of the GNU General Public License as published by
146the Free Software Foundation; either version 2 of the License, or
147(at your option) any later version.
148.PP
149This program is distributed in the hope that it will be useful,
150but WITHOUT ANY WARRANTY; without even the implied warranty of
151MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
152GNU General Public License for more details.
153.PP
154You should have received a copy of the GNU General Public License
155along with this program; if not, write to the Free Software
156Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301, USA.
157.PP
158Please report bugs to : Jerome Alet \- alet@librelogiciel.com
Note: See TracBrowser for help on using the browser.