1# BAREOS - Backup Archiving REcovery Open Sourced
2#
3# Copyright (C) 2013-2014 Bareos GmbH & Co. KG
4#
5# This program is Free Software; you can redistribute it and/or
6# modify it under the terms of version three of the GNU Affero General Public
7# License as published by the Free Software Foundation, which is
8# listed in the file LICENSE.
9#
10# This program is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Affero General Public License for more details.
14#
15# You should have received a copy of the GNU Affero General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18# 02110-1301, USA.
19#
20# Author: Marco van Wieringen
21#
22bJobMessageType = dict(
23    M_ABORT=1,
24    M_DEBUG=2,
25    M_FATAL=3,
26    M_ERROR=4,
27    M_WARNING=5,
28    M_INFO=6,
29    M_SAVED=7,
30    M_NOTSAVED=8,
31    M_SKIPPED=9,
32    M_MOUNT=10,
33    M_ERROR_TERM=11,
34    M_TERM=12,
35    M_RESTORED=13,
36    M_SECURITY=14,
37    M_ALERT=15,
38    M_VOLMGMT=16,
39)
40
41bVariable = dict(
42    bVarJobId=1,
43    bVarFDName=2,
44    bVarLevel=3,
45    bVarType=4,
46    bVarClient=5,
47    bVarJobName=6,
48    bVarJobStatus=7,
49    bVarSinceTime=8,
50    bVarAccurate=9,
51    bVarFileSeen=10,
52    bVarVssClient=11,
53    bVarWorkingDir=12,
54    bVarWhere=13,
55    bVarRegexWhere=14,
56    bVarExePath=15,
57    bVarVersion=16,
58    bVarDistName=17,
59    bVarPrevJobName=18,
60    bVarPrefixLinks=19,
61)
62
63bFileType = dict(
64    FT_LNKSAVED=1,
65    FT_REGE=2,
66    FT_REG=3,
67    FT_LNK=4,
68    FT_DIREND=5,
69    FT_SPEC=6,
70    FT_NOACCESS=7,
71    FT_NOFOLLOW=8,
72    FT_NOSTAT=9,
73    FT_NOCHG=10,
74    FT_DIRNOCHG=11,
75    FT_ISARCH=12,
76    FT_NORECURSE=13,
77    FT_NOFSCHG=14,
78    FT_NOOPEN=15,
79    FT_RAW=16,
80    FT_FIFO=17,
81    FT_DIRBEGIN=18,
82    FT_INVALIDFS=19,
83    FT_INVALIDDT=20,
84    FT_REPARSE=21,
85    FT_PLUGIN=22,
86    FT_DELETED=23,
87    FT_BASE=24,
88    FT_RESTORE_FIRST=25,
89    FT_JUNCTION=26,
90    FT_PLUGIN_CONFIG=27,
91    FT_PLUGIN_CONFIG_FILLED=28,
92)
93
94bRCs = dict(
95    bRC_OK=0,
96    bRC_Stop=1,
97    bRC_Error=2,
98    bRC_More=3,
99    bRC_Term=4,
100    bRC_Seen=5,
101    bRC_Core=6,
102    bRC_Skip=7,
103    bRC_Cancel=8,
104)
105
106bCFs = dict(CF_SKIP=1, CF_ERROR=2, CF_EXTRACT=3, CF_CREATED=4, CF_CORE=5)
107
108bEventType = dict(
109    bEventJobStart=1,
110    bEventJobEnd=2,
111    bEventStartBackupJob=3,
112    bEventEndBackupJob=4,
113    bEventStartRestoreJob=5,
114    bEventEndRestoreJob=6,
115    bEventStartVerifyJob=7,
116    bEventEndVerifyJob=8,
117    bEventBackupCommand=9,
118    bEventRestoreCommand=10,
119    bEventEstimateCommand=11,
120    bEventLevel=12,
121    bEventSince=13,
122    bEventCancelCommand=14,
123    bEventRestoreObject=15,
124    bEventEndFileSet=16,
125    bEventPluginCommand=17,
126    bEventOptionPlugin=18,
127    bEventHandleBackupFile=19,
128    bEventNewPluginOptions=20,
129    bEventVssInitializeForBackup=21,
130    bEventVssInitializeForRestore=22,
131    bEventVssSetBackupState=23,
132    bEventVssPrepareForBackup=24,
133    bEventVssBackupAddComponents=25,
134    bEventVssPrepareSnapshot=26,
135    bEventVssCreateSnapshots=27,
136    bEventVssRestoreLoadComponentMetadata=28,
137    bEventVssRestoreSetComponentsSelected=29,
138    bEventVssCloseRestore=30,
139    bEventVssBackupComplete=31,
140)
141
142bIOPS = dict(IO_OPEN=1, IO_READ=2, IO_WRITE=3, IO_CLOSE=4, IO_SEEK=5)
143
144bLevels = dict(
145    L_FULL="F",
146    L_INCREMENTAL="I",
147    L_DIFFERENTIAL="D",
148    L_SINCE="S",
149    L_VERIFY_CATALOG="C",
150    L_VERIFY_INIT="V",
151    L_VERIFY_VOLUME_TO_CATALOG="O",
152    L_VERIFY_DISK_TO_CATALOG="d",
153    L_VERIFY_DATA="A",
154    L_BASE="B",
155    L_NONE=" ",
156    L_VIRTUAL_FULL="f",
157)
158