1 | # -*- coding: utf-8 -*-
|
---|
2 | # $Id: prettynames.py 12290 2011-02-10 14:02:38Z pstorz $
|
---|
3 | import sys
|
---|
4 | PrettyNames = {
|
---|
5 | '3des' : '3DES' ,
|
---|
6 | 'abortjobonerror' : 'Abort Job On Error',
|
---|
7 | 'accurate' : 'Accurate',
|
---|
8 | 'aclsupport' : 'ACL Support',
|
---|
9 | 'actiononpurge' : 'Action On Purge',
|
---|
10 | 'addprefix' : 'Addprefix',
|
---|
11 | 'address' : 'Address',
|
---|
12 | 'addr' : 'Addr',
|
---|
13 | 'addsuffix' : 'Addsuffix',
|
---|
14 | 'admin' : 'Admin',
|
---|
15 | 'alertcommand' : 'Alert Command',
|
---|
16 | 'allowcompression' : 'Allow Compression',
|
---|
17 | 'allowduplicatejobs' : 'Allow Duplicate Jobs',
|
---|
18 | 'allowhigherduplicates' : 'Allow Higher Duplicates',
|
---|
19 | 'allowmixedpriority' : 'Allow Mixed Priority',
|
---|
20 | 'alwaysopen' : 'Always Open',
|
---|
21 | 'always' : 'Always',
|
---|
22 | 'append' : 'Append' ,
|
---|
23 | 'archivedevice' : 'ArchiveDevice',
|
---|
24 | 'autochanger' : 'AutoChanger',
|
---|
25 | 'automaticmount' : 'Automatic Mount',
|
---|
26 | 'autoprune' : 'Auto Prune',
|
---|
27 | 'autoselect' : 'Auto Select',
|
---|
28 | 'backup' : 'Backup',
|
---|
29 | 'backwardspacefile' : 'Backward Space File',
|
---|
30 | 'backwardspacerecord' : 'Backward Space Record',
|
---|
31 | 'base' : 'Base',
|
---|
32 | 'basejob' : 'Base Job',
|
---|
33 | 'blockchecksum' : 'BlockChecksum',
|
---|
34 | 'blockpositioning' : 'Blockpositioning',
|
---|
35 | 'blowfish' : 'Blowfish' ,
|
---|
36 | 'bootstrap' : 'Bootstrap',
|
---|
37 | 'bsfateom' : 'BSF At EOM',
|
---|
38 | 'cancellowerlevelduplicates' : 'Cancel Lower Level Duplicates',
|
---|
39 | 'cancelqueuedduplicates' : 'Cancel Queued Duplicates',
|
---|
40 | 'cancelrunningduplicates' : 'Cancel Running Duplicates',
|
---|
41 | 'catalogacl' : 'Catalog ACL',
|
---|
42 | 'catalog' : 'Catalog',
|
---|
43 | 'catalogfiles' : 'Catalog Files',
|
---|
44 | 'changercommand' : 'Changer Command',
|
---|
45 | 'changerdevice' : 'Changer Device',
|
---|
46 | 'checkfilechanges' : 'Check File Changes',
|
---|
47 | 'checklabels' : 'Check Labels',
|
---|
48 | 'cleaningprefix' : 'Cleaning Prefix',
|
---|
49 | 'clientacl' : 'Client ACL',
|
---|
50 | 'client' : 'Client',
|
---|
51 | 'clientconnectwait' : 'Client Connect Wait',
|
---|
52 | 'clientrunafterjob' : 'Client Run After Job',
|
---|
53 | 'clientrunbeforejob' : 'Client Run Before Job',
|
---|
54 | 'closeonpoll' : 'Close On Poll',
|
---|
55 | 'commandacl' : 'Command ACL',
|
---|
56 | 'command' : 'Command',
|
---|
57 | 'compression' : 'Compression',
|
---|
58 | 'console' : 'Console',
|
---|
59 | 'copy' : 'Copy',
|
---|
60 | 'copypool' : 'Copy Pool',
|
---|
61 | 'counter' : 'Counter',
|
---|
62 | 'data' : 'Data',
|
---|
63 | 'dbaddress' : 'DB Address',
|
---|
64 | 'dbdriver' : 'DB Driver',
|
---|
65 | 'dbname' : 'DB Name',
|
---|
66 | 'dbpassword' : 'DB Password',
|
---|
67 | 'dbport' : 'DB Port',
|
---|
68 | 'dbsocket' : 'DB Socket',
|
---|
69 | 'dbuser' : 'DB User',
|
---|
70 | 'description' : 'Description',
|
---|
71 | 'device' : 'Device',
|
---|
72 | 'devicetype' : 'Device Type',
|
---|
73 | 'differential' : 'Differential',
|
---|
74 | 'differentialpool' : 'Differential Pool',
|
---|
75 | 'differentialbackuppool' : 'Differential Backup Pool',
|
---|
76 | 'differentialmaxruntime' : 'Differential Max Run Time',
|
---|
77 | 'differentialmaxwaittime' : 'Differential Max Wait Time',
|
---|
78 | 'diraddress' : 'Dir Address',
|
---|
79 | 'diraddresses' : 'Dir Addresses',
|
---|
80 | 'director' : 'Director',
|
---|
81 | 'dirport' : 'Dirport',
|
---|
82 | 'dirsourceaddress' : 'Dir Source Address',
|
---|
83 | 'disktocatalog': 'Disk To Catalog',
|
---|
84 | 'driveindex' : 'Drive Index',
|
---|
85 | 'drivetype' : 'Drive Type',
|
---|
86 | 'enabled' : 'Enabled',
|
---|
87 | 'enablevss' : 'Enable Vss',
|
---|
88 | 'enhancedwild' : 'Enhanced Wild',
|
---|
89 | 'encryption' : 'Encryption' ,
|
---|
90 | 'exclude' : 'Exclude',
|
---|
91 | 'excludedircontaining' : 'Exclude Dir Containing',
|
---|
92 | 'failjobonerror' : 'Fail Job Onerror',
|
---|
93 | 'fastforwardspacefile' : 'Fast Forward Spacefile',
|
---|
94 | 'fdaddresses' : 'FD Addresses',
|
---|
95 | 'fdaddress' : 'FD Address',
|
---|
96 | 'fdconnecttimeout' : 'FD Connect Timeout',
|
---|
97 | 'fdpassword' : 'FD Password',
|
---|
98 | 'fdport' : 'FD Port',
|
---|
99 | 'fdsourceaddress' : 'FD Source Address',
|
---|
100 | 'filedaemon' : 'Filedaemon' ,
|
---|
101 | 'file' : 'File' ,
|
---|
102 | 'fileretention' : 'File Retention',
|
---|
103 | 'filesetacl' : 'Fileset ACL',
|
---|
104 | 'fileset' : 'Fileset',
|
---|
105 | 'forwardspacefile' : 'Forward Space File',
|
---|
106 | 'forwardspacerecord' : 'Forward Space Record',
|
---|
107 | 'freespacecommand' : 'Free Space Command',
|
---|
108 | 'fstype' : 'FS Type',
|
---|
109 | 'full' : 'Full',
|
---|
110 | 'fullbackuppool' : 'Full Backup Pool',
|
---|
111 | 'fullmaxruntime' : 'Full Max Run Time',
|
---|
112 | 'fullmaxwaittime' : 'Full Max Wait Time',
|
---|
113 | 'fullpool' : 'Full Pool',
|
---|
114 | 'gzip' : 'gzip',
|
---|
115 | 'gzip1' : 'gzip1',
|
---|
116 | 'gzip2' : 'gzip2',
|
---|
117 | 'gzip3' : 'gzip3',
|
---|
118 | 'gzip4' : 'gzip4',
|
---|
119 | 'gzip5' : 'gzip5',
|
---|
120 | 'gzip6' : 'gzip6',
|
---|
121 | 'gzip7' : 'gzip7',
|
---|
122 | 'gzip8' : 'gzip8',
|
---|
123 | 'gzip9' : 'gzip9',
|
---|
124 | 'hardlinks' : 'Hard Links',
|
---|
125 | 'hardwareendoffile' : 'Hardware End Of File',
|
---|
126 | 'hardwareendofmedium' : 'Hardware End Of Medium',
|
---|
127 | 'heartbeatinterval' : 'Heartbeat Interval',
|
---|
128 | 'hfsplussupport' : 'HFS Plus Support',
|
---|
129 | 'historyfile' : 'Historyfile',
|
---|
130 | 'honornodumpflag' : 'Honor Nodump Flag',
|
---|
131 | 'ifnewer': 'If Newer',
|
---|
132 | 'ifolder': 'If Older',
|
---|
133 | 'ignorecase' : 'Ignore Case',
|
---|
134 | 'ignorefilesetchanges' : 'Ignore Fileset Changes',
|
---|
135 | 'include' : 'Include',
|
---|
136 | 'incremental' : 'Incremental',
|
---|
137 | 'incrementalpool' : 'Incremental Pool',
|
---|
138 | 'incrementalbackuppool' : 'Incremental Backup Pool',
|
---|
139 | 'incrementalmaxruntime' : 'Incremental Maxrun Time',
|
---|
140 | 'incrementalmaxwaittime' : 'Incremental Max Wait Time',
|
---|
141 | 'initcatalog':'Init Catalog',
|
---|
142 | 'ip' : 'IP' ,
|
---|
143 | 'ipv4' : 'IPv4',
|
---|
144 | 'ipv6' : 'IPv6',
|
---|
145 | 'jobacl' : 'Job ACL',
|
---|
146 | 'jobdefs' : 'JobDefs',
|
---|
147 | 'job' : 'Job',
|
---|
148 | 'jobretention' : 'Job Retention',
|
---|
149 | 'jobtoverify' : 'Job To Verify',
|
---|
150 | 'keepatime' : 'Keep atime',
|
---|
151 | 'labelformat' : 'Label Format',
|
---|
152 | 'labelmedia' : 'Label Media',
|
---|
153 | 'labeltype' : 'Label Type',
|
---|
154 | 'level' : 'Level',
|
---|
155 | 'mailcommand' : 'Mail Command',
|
---|
156 | 'mail' : 'Mail' ,
|
---|
157 | 'mailonerror' : 'Mail On Error' ,
|
---|
158 | 'mailonsuccess' : 'Mail On Success',
|
---|
159 | 'maxdiffinterval' : 'Max Diff Interval',
|
---|
160 | 'maxfullinterval' : 'Max Full Interval',
|
---|
161 | 'maximumblocksize' : 'Maximum Block Size',
|
---|
162 | 'maximumchangerwait' : 'Maximum Changer Wait',
|
---|
163 | 'maximumconcurrentjobs' : 'Maximum Concurrent Jobs',
|
---|
164 | 'maximumconsoleconnections' : 'Maximum Console Connections',
|
---|
165 | 'maximumfilesize' : 'Maximum File Size',
|
---|
166 | 'maximumjobspoolsize' : 'Maximum Job Spool Size',
|
---|
167 | 'maximum' : 'Maximum',
|
---|
168 | 'maximumnetworkbuffersize' : 'Maximum Network Buffer Size',
|
---|
169 | 'maximumopenvolumes' : 'Maximum Open Volumes',
|
---|
170 | 'maximumopenwait' : 'Maximum Open Wait',
|
---|
171 | 'maximumpartsize' : 'Maximum Part Size',
|
---|
172 | 'maximumrewindwait' : 'Maximum Rewind Wait',
|
---|
173 | 'maximumspoolsize' : 'Maximum Spool Size',
|
---|
174 | 'maximumvolumebytes' : 'Maximum Volume Bytes',
|
---|
175 | 'maximumvolumefiles' : 'Maximum Volume Files',
|
---|
176 | 'maximumvolumejobs' : 'Maximum Volume Jobs',
|
---|
177 | 'maximumvolumesize' : 'Maximum Volume Size',
|
---|
178 | 'maximumvolumes' : 'Maximum Volumes',
|
---|
179 | 'maxrunschedtime' : 'Max Run Sched Time',
|
---|
180 | 'maxruntime' : 'Max Run Time',
|
---|
181 | 'maxstartdelay' : 'Max Start Delay',
|
---|
182 | 'maxwaittime' : 'Max Wait Time',
|
---|
183 | 'md5' : 'md5' ,
|
---|
184 | 'mediatype' : 'Media Type',
|
---|
185 | 'messages' : 'Messages',
|
---|
186 | 'migrate' : 'Migrate',
|
---|
187 | 'migrationhighbytes' : 'Migration High Bytes',
|
---|
188 | 'migrationlowbytes' : 'Migration Low Bytes',
|
---|
189 | 'migrationtime' : 'Migration Time',
|
---|
190 | 'minimumblocksize' : 'Minimum Block Size',
|
---|
191 | 'minimum' : 'Minimum',
|
---|
192 | 'monitor' : 'Monitor',
|
---|
193 | 'mountcommand' : 'Mount Command',
|
---|
194 | 'mountpoint' : 'Mount Point',
|
---|
195 | 'mtimeonly' : 'mtime only',
|
---|
196 | 'multipleconnections' : 'Multiple Connections',
|
---|
197 | 'name' : 'Name',
|
---|
198 | 'never':'never',
|
---|
199 | 'nextpool' : 'Nextpool',
|
---|
200 | 'no': 'No',
|
---|
201 | 'noatime' : 'no atime',
|
---|
202 | 'oldestvolume': 'Oldest Volume',
|
---|
203 | 'offlineonunmount' : 'Offline On Unmount',
|
---|
204 | 'onefs' : 'one FS',
|
---|
205 | 'operatorcommand' : 'Operator Command' ,
|
---|
206 | 'operator' : 'Operator' ,
|
---|
207 | 'options' : 'Options' ,
|
---|
208 | 'password' : 'Password',
|
---|
209 | 'piddirectory' : 'Pid Directory',
|
---|
210 | 'pkiencryption' : 'Pki Encryption',
|
---|
211 | 'pkikeypair' : 'Pki Keypair',
|
---|
212 | 'pkimasterkey' : 'Pki Masterkey',
|
---|
213 | 'pkisignatures' : 'Pki Signatures',
|
---|
214 | 'pkisigner' : 'Pki Signer',
|
---|
215 | 'plugindirectory' : 'Plugin Directory',
|
---|
216 | 'pluginoptionsacl' : 'Plugin Options ACL',
|
---|
217 | 'pluginoptions' : 'Plugin Options',
|
---|
218 | 'plugin' : 'Plugin',
|
---|
219 | 'poolacl' : 'Pool ACL',
|
---|
220 | 'pool' : 'Pool',
|
---|
221 | 'pooloccupancy':'Pool Occupancy',
|
---|
222 | 'pooltime':'Pool Time',
|
---|
223 | 'pooltype' : 'Pool Type',
|
---|
224 | 'pooluncopiedjobs':'Pool Uncopied Jobs',
|
---|
225 | 'portable' : 'Portable',
|
---|
226 | 'port' : 'Port',
|
---|
227 | 'prefermountedvolumes' : 'Prefer Mounted Volumes',
|
---|
228 | 'prefixlinks' : 'Prefix Links',
|
---|
229 | 'priority' : 'Priority',
|
---|
230 | 'prunefiles' : 'Prune Files',
|
---|
231 | 'prunejobs' : 'Prune Jobs',
|
---|
232 | 'prunevolumes' : 'Prune Volumes',
|
---|
233 | 'purgeoldestvolume' : 'Purge Oldest Volume',
|
---|
234 | 'queryfile' : 'Query File',
|
---|
235 | 'randomaccess' : 'Random Access',
|
---|
236 | 'rcfile' : 'Rcfile',
|
---|
237 | 'readfifo' : 'Read Fifo',
|
---|
238 | 'recurse' : 'Recurse',
|
---|
239 | 'recyclecurrentvolume' : 'Recycle Current Volume',
|
---|
240 | 'recycleoldestvolume' : 'Recycle Oldest Volume',
|
---|
241 | 'recyclepool' : 'Recycle Pool',
|
---|
242 | 'recycle' : 'Recycle',
|
---|
243 | 'regexdir' : 'Regex Dir',
|
---|
244 | 'regexfile' : 'Regex File',
|
---|
245 | 'regex' : 'Regex',
|
---|
246 | 'regexwhere' : 'Regex Where',
|
---|
247 | 'removablemedia' : 'Removable Media',
|
---|
248 | 'replace' : 'Replace',
|
---|
249 | 'requiresmount' : 'Requires Mount',
|
---|
250 | 'rerunfailedlevels' : 'Rerunfailed Levels',
|
---|
251 | 'restore': 'Restore',
|
---|
252 | 'rescheduleinterval' : 'Reschedule Interval',
|
---|
253 | 'rescheduleonerror' : 'Reschedule On Error',
|
---|
254 | 'rescheduletimes' : 'Reschedule Times',
|
---|
255 | 'runacl' : 'Run ACL',
|
---|
256 | 'runafterfailedjob' : 'Run After Failed Job',
|
---|
257 | 'runafterjob' : 'Run After Job',
|
---|
258 | 'runbeforejob' : 'Run Before Job',
|
---|
259 | 'run' : 'Run',
|
---|
260 | 'runscript' : 'RunScript',
|
---|
261 | 'runsonclient' : 'Runs On Client',
|
---|
262 | 'runsonfailure' : 'Runs On Failure',
|
---|
263 | 'runsonsuccess' : 'Runs On Success',
|
---|
264 | 'runswhen' : 'Runs When',
|
---|
265 | 'saved' : 'saved' ,
|
---|
266 | 'scheduleacl' : 'Schedule ACL',
|
---|
267 | 'schedule' : 'Schedule',
|
---|
268 | 'scratchpool' : 'Scratch Pool',
|
---|
269 | 'scriptsdirectory' : 'Scripts Directory',
|
---|
270 | 'sdaddresses' : 'SD Addresses',
|
---|
271 | 'sdaddress' : 'SD Address',
|
---|
272 | 'sdconnecttimeout' : 'SD Connect Timeout',
|
---|
273 | 'sddport' : 'SD port',
|
---|
274 | 'sdpassword' : 'SD Password',
|
---|
275 | 'sdport' : 'SD Port',
|
---|
276 | 'selectionpattern' : 'Selection Pattern',
|
---|
277 | 'selectiontype' : 'Selection Type',
|
---|
278 | 'sha1' : 'sha1' ,
|
---|
279 | 'sha256' : 'sha256' ,
|
---|
280 | 'sha512' : 'sha512' ,
|
---|
281 | 'since' :'Since',
|
---|
282 | 'signature' : 'Signature',
|
---|
283 | 'skipped' : 'skipped',
|
---|
284 | 'smallestvolume': 'Smallest Volume',
|
---|
285 | 'sparse' : 'Sparse',
|
---|
286 | 'spoolattributes' : 'Spool Attributes',
|
---|
287 | 'spooldata' : 'Spool Data',
|
---|
288 | 'spooldirectory' : 'Spool Directory',
|
---|
289 | 'spoolsize' : 'Spool Size',
|
---|
290 | 'sqlquery':'SQL Query',
|
---|
291 | 'statisticsretention' : 'Statistics Retention',
|
---|
292 | 'started' : 'started' ,
|
---|
293 | 'stderr' : 'stderr',
|
---|
294 | 'stdout' : 'stdout',
|
---|
295 | 'storageacl' : 'Storage ACL',
|
---|
296 | 'storage' : 'Storage',
|
---|
297 | 'strippath' : 'Strip Path',
|
---|
298 | 'stripprefix' : 'Strip Prefix',
|
---|
299 | 'subsysdirectory' : 'Subsys Directory',
|
---|
300 | 'syslog' : 'Syslog',
|
---|
301 | 'target' : 'Target',
|
---|
302 | 'tlsallowedcn' : 'TLS Allowed CN',
|
---|
303 | 'tlsauthenticate' : 'TLS Authenticate',
|
---|
304 | 'tlscacertificatedir' : 'TLS CA Certificate Dir',
|
---|
305 | 'tlscacertificatefile' : 'TLS CA Certificate File',
|
---|
306 | 'tlscertificate' : 'TLS Certificate',
|
---|
307 | 'tlsdhfile' : 'TLS DH File',
|
---|
308 | 'tlsenable' : 'TLS Enable',
|
---|
309 | 'tlskey' : 'TLS Key',
|
---|
310 | 'tlsrequire' : 'TLS Require',
|
---|
311 | 'tlsverifypeer' : 'TLS Verify Peer',
|
---|
312 | 'twoeof' : 'Two EOF',
|
---|
313 | 'type' : 'Type',
|
---|
314 | 'unmountcommand' : 'Unmount Command',
|
---|
315 | 'usecatalog' : 'Use Catalog',
|
---|
316 | 'usemtiocget' : 'Use Mtiocget',
|
---|
317 | 'user' : 'User',
|
---|
318 | 'usevolumeonce' : 'Use Volume Once',
|
---|
319 | 'verid' : 'VerID',
|
---|
320 | 'verifyjob' : 'Verify Job',
|
---|
321 | 'verify' : 'Verify',
|
---|
322 | 'virtualfull': 'Virtual Full',
|
---|
323 | 'volume':'Volume',
|
---|
324 | 'volumecapacity' : 'Volume Capacity',
|
---|
325 | 'volumepollinterval' : 'Volume Poll Interval',
|
---|
326 | 'volumeretention' : 'Volume Retention',
|
---|
327 | 'volumetocatalog' : 'Volume To Catalog' ,
|
---|
328 | 'volumeuseduration' : 'Volume Useduration',
|
---|
329 | 'whereacl' : 'Where ACL',
|
---|
330 | 'where' : 'Where',
|
---|
331 | 'wilddir' : 'wilddir',
|
---|
332 | 'wildfile' : 'wildfile',
|
---|
333 | 'wild' : 'wild',
|
---|
334 | 'workingdirectory' : 'Working Directory',
|
---|
335 | 'wrapcounter' : 'Wrap Counter',
|
---|
336 | 'writebootstrap' : 'Write Bootstrap',
|
---|
337 | 'writepartafterjob' : 'Write Part After Job',
|
---|
338 | 'writepartcommand' : 'Write Partcommand',
|
---|
339 | 'writeverifylist' : 'Write Verify List',
|
---|
340 | 'xattrsupport' : 'xattrsupport',
|
---|
341 | 'yes': 'Yes',
|
---|
342 |
|
---|
343 | }
|
---|
344 |
|
---|
345 | # Format internal name to pretty name
|
---|
346 | def prettyName(name):
|
---|
347 | if not PrettyNames.has_key(name):
|
---|
348 | print >> sys.stderr, 'warning: no key %s' % (name)
|
---|
349 | return PrettyNames.get(name, name)
|
---|
350 | #
|
---|