6 | | dumpykota v1.27alpha3_BROKEN_unofficial (c) 2003, 2004, 2005, 2006, 2007, 2008 Jerome Alet \- alet@librelogiciel.com |
7 | | .PP |
8 | | Exporte le contenu de la base de donn� de PyKota. |
9 | | .PP |
10 | | ligne de commande : |
| 9 | Data Dumper for PyKota. |
| 10 | .SH OPTIONS |
| 11 | .TP |
| 12 | \fB\-h\fR, \fB\-\-help\fR |
| 13 | show this help message and exit. |
| 14 | .TP |
| 15 | \fB\-v\fR, \fB\-\-version\fR |
| 16 | show the version number and exit. |
| 17 | .TP |
| 18 | \fB\-A\fR ARGUMENTSFILE, \fB\-\-arguments\fR=\fIARGUMENTSFILE\fR |
| 19 | loads additional options and arguments from a file, |
| 20 | one per line. |
| 21 | .TP |
| 22 | \fB\-d\fR DATA, \fB\-\-data\fR=\fIDATA\fR |
| 23 | Select the type of datas to dump. This option is |
| 24 | mandatory. Supported data types are : history, |
| 25 | payments, billingcodes, users, groups, printers, |
| 26 | upquotas, gpquotas, umembers, pmembers, and all. The |
| 27 | \&'all' value forces the output format to XML. |
| 28 | .TP |
| 29 | \fB\-f\fR FORMAT, \fB\-\-format\fR=\fIFORMAT\fR |
| 30 | Select the output format, the default being comma |
| 31 | separated values. Supported formats are : csv, ssv, |
| 32 | tsv, xml and cups. The 'cups' output format only works |
| 33 | when dumping the history, and produces CUPS' page_log |
| 34 | compatible output. |
| 35 | .TP |
| 36 | \fB\-o\fR OUTPUT, \fB\-\-output\fR=\fIOUTPUT\fR |
| 37 | The name of the file the data dump will be written to. |
| 38 | The default value is '\-', which tells dumpykota to |
| 39 | write the dump to stdout. |
| 40 | .TP |
| 41 | \fB\-O\fR ORDERBY, \fB\-\-orderby\fR=\fIORDERBY\fR |
| 42 | Change the ordering of the output based on a comma |
| 43 | separated list of ordering statements. For example |
| 44 | \&'\-username,+printername' would sort the output by |
| 45 | descending order of user names and ascending order of |
| 46 | printer names. Not all expressions are supported, and |
| 47 | you should not use this if you don't know the internal |
| 48 | structure of PyKota's database. |
| 49 | .TP |
| 50 | \fB\-s\fR, \fB\-\-sum\fR |
| 51 | Summarize the output. Only available when dumping the |
| 52 | printing history or the payments. |
| 53 | .SS "filtering expressions:" |
12 | | dumpykota [options] [exprfiltre] |
13 | | .PP |
14 | | options : |
15 | | .TP |
16 | | \fB\-v\fR | \fB\-\-version\fR |
17 | | Affiche la version de dumpykota et quitte. |
18 | | .TP |
19 | | \fB\-h\fR | \fB\-\-help\fR |
20 | | Affiche ce message et quitte. |
21 | | .TP |
22 | | \fB\-d\fR | \fB\-\-data\fR type |
23 | | Exporte les donn� de type 'type'. |
24 | | Les types autoris�sont : |
| 55 | Use the filtering expressions to extract only parts of the datas. Allowed |
| 56 | filters are of the form 'key=value'. Wildcards are not expanded as part of |
| 57 | these filtering expressions, so you can't use them here. |
47 | | NB : l'option de ligne de commande \fB\-d\fR | \fB\-\-data\fR est |
48 | | OBLIGATOIRE. |
49 | | .TP |
50 | | \fB\-f\fR | \fB\-\-format\fR fmt |
51 | | Exporte les donn� dans le format 'fmt' sp�fi�Si non pr�s�le format sera csv (champs s�r�par des virgules). |
52 | | Toutes les donn� sont export� entre double quotes. |
53 | | Les formats autoris�sont : |
| 90 | dumpykota \fB\-\-unit\fR EURO \fB\-\-output\fR /tmp/invoices.pdf start=now\-30 |
| 91 | This would generate a PDF document containing invoices for all users |
| 92 | who have spent some credits last month. Amounts would be in EURO and |
| 93 | not VAT information would be included. |
63 | | AVEC \fB\-\-data\fR history |
64 | | .TP |
65 | | \fB\-o\fR | \fB\-\-output\fR nomf |
66 | | Toutes les donn� seront export� vers un fichier |
67 | | plut�ue vers la sortie standard. Le nom sp�al '\-' |
68 | | est la valeur par d�ut indiquant la sortie standard. |
69 | | ATTENTION : les fichiers existants sont tronqu�! |
70 | | .TP |
71 | | \fB\-O\fR | \fB\-\-orderby\fR exp |
72 | | Change l'ordre des r�ltats. 'exp' est une liste |
73 | | s�r�par des virgules d'instructions de tri, par |
74 | | exemple '\-\-orderby +username,\-printername'. Seules |
75 | | certaines expressions on un sens, aussi utiliser cette |
76 | | option de ligne de commande n'est pas conseill�i |
77 | | vous ne connaissez pas la structure exacte de la base |
78 | | de donn� de PyKota. |
79 | | .TP |
80 | | \fB\-s\fR | \fB\-\-sum\fR |
81 | | Effectue la somme des donn� s�ctionn�. |
82 | | DISPONIBLE SEULEMENT AVEC \fB\-\-data\fR history ou payments |
| 102 | dumpykota \fB\-\-data\fR history printername=HP2100 username=jerome |
| 103 | This would dump jerome's printing history on printer HP2100. |
89 | | Les cl�autoris� pour l'instant sont : |
90 | | .TP |
91 | | username |
92 | | Nom de l'utilisateur |
93 | | .TP |
94 | | groupname |
95 | | Nom du groupe d'utilisateurs |
96 | | .TP |
97 | | printername |
98 | | Nom de l'imprimante |
99 | | .TP |
100 | | pgroupname |
101 | | Nom du groupe d'imprimantes |
102 | | .TP |
103 | | hostname |
104 | | Nom d'h�de la machine cliente |
105 | | .TP |
106 | | jobid |
107 | | Id du travail d'impression |
108 | | .TP |
109 | | billingcode |
110 | | Code de facturation du travail d'impression |
111 | | .TP |
112 | | start |
113 | | Date du travail d'impression |
114 | | .TP |
115 | | end |
116 | | Date du travail d'impression |
117 | | .IP |
118 | | Formatage des dates avec les cl�'start' et 'end' : |
119 | | .IP |
120 | | AAAA : limites d'ann�AAAAMM : limites de mois |
121 | | AAAAMMJJ : limites de jour |
122 | | AAAAMMJJhh : limites d'heures |
123 | | AAAAMMJJhhmm : limites de minutes |
124 | | AAAAMMJJhhmmss : limites de secondes |
125 | | yesterday[+\-NbJours] : hier plus ou moins N jours (ex : yesterday\-15) |
126 | | today[+\-NbJours] : aujoud'hui plus ou moins N jours (ex : today\-15) |
127 | | tomorrow[+\-NbJours] : demain plus ou moins N jours (ex : tomorrow\-15) |
128 | | now[+\-NbJours] : maintenant plus ou moins N jours (ex : now\-15) |
129 | | .IP |
130 | | \&'now' et 'today' ne sont pas exactement identiques car today repr�nte |
131 | | la premi� ou la derni� seconde du jour selon qu'il soit utilis�vec |
132 | | une expression de type start= ou end=. |
133 | | L'utilit�e pouvoir sp�fier une date dans le future est une question |
134 | | qui reste ouverte :\-) |
135 | | .IP |
136 | | Contrairement aux autres outils d'administration de PyKota, les caract�s |
137 | | jokers ne sont pas expans� aussi vous ne pouvez pas les utiliser. |
138 | | .IP |
139 | | NB : toutes les cl�ne sont pas autoris� pour chaque type de donn�, |
140 | | aussi le r�ltat peut �e vide si vous utilisez une cl�ndisponible |
141 | | pour un type de donn� particulier. |
142 | | .PP |
143 | | Exemples : |
144 | | .IP |
145 | | \f(CW$ dumpykota \-\-data history \-\-format csv >monfichier.csv\fR |
146 | | .IP |
147 | | Ceci va exporter l'historique dans un fichier �hamps s�r�par des |
148 | | virgules, par exemple pour r�portation dans un tableur. |
149 | | .IP |
150 | | \f(CW$ dumpykota \-\-data users \-\-format xml -o util.xml\fR |
151 | | .IP |
152 | | Exporte toutes les donn� des utilisateurs dans le fichier util.xml |
153 | | .IP |
154 | | \f(CW$ dumpykota \-\-data history printername=HP2100 username=jerome\fR |
155 | | .IP |
156 | | Exporte l'historique des travaux de l'utilisateur jerome sur l'imprimante |
157 | | HP2100 seulement. |
158 | | .IP |
159 | | \f(CW$ dumpykota \-\-data history start=200503 end=20050730234615\fR |
160 | | .IP |
161 | | Exporte tous les travaux imprim�entre le 1er Mars 2005 �inuit et |
162 | | le 30 Juillet 2005 �3 heures 46 minutes et 15 secondes inclus. |
163 | | .PP |
164 | | (c) 2003, 2004, 2005, 2006, 2007, 2008 Jerome Alet <alet@librelogiciel.com> |
| 111 | (c) 2003\-2009 Jerome Alet \- alet@librelogiciel.com |
167 | | the Free Software Foundation, either version 3 of the License, or |
168 | | (at your option) any later version. |
169 | | .PP |
170 | | This program is distributed in the hope that it will be useful, |
171 | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
172 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
173 | | GNU General Public License for more details. |
174 | | .PP |
| 114 | the Free Software Foundation, either version 3 of the License, or (at |
| 115 | your option) any later version. |
| 116 | .IP |
| 117 | This program is distributed in the hope that it will be useful, but |
| 118 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 119 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 120 | General Public License for more details. |
| 121 | .IP |