-
Notifications
You must be signed in to change notification settings - Fork 0
/
bacula-sd.conf
194 lines (179 loc) · 4.95 KB
/
bacula-sd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
#
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 9.4.4 (28 May 2019) -- redhat Enterprise release
#
# You may need to change the name of your tape drive
# on the "Archive Device" directive in the Device
# resource. If you change the Name and/or the
# "Media Type" in the Device resource, please ensure
# that dird.conf has corresponding changes.
#
#
# Copyright (C) 2000-2017 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
# Defintions:
# 01 = Backup Full
# 02 = Backup Differential
# 03 = Backup Incremental
Storage { # definition of myself
Name = bacula-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/opt/bacula/working"
Pid Directory = "/opt/bacula/working"
Plugin Directory = "/opt/bacula/plugins"
Maximum Concurrent Jobs = 20
}
# List Directors who are permitted to contact Storage daemon
Director {
Name = bacula-dir
Password = "tgw7QKL+Tc/4rts0PCt+keic7sF6F1BrjYpO2fmj962z"
}
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
Director {
Name = bacula-mon
Password = "KY1DwYRgw+GbYkqTw9O858f1w8hO2aq9gfnf2SBimf4Q"
Monitor = yes
}
# Note, for a list of additional Device templates please
# see the directory <bacula-source>/examples/devices
# Or follow the following link:
# http://www.bacula.org/git/cgit.cgi/bacula/tree/bacula/examples/devices?h=Branch-7.4
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
# Define a Virtual autochanger
Autochanger {
Name = AC-FileGr1
Device = AC-01-FileGr1-Dev1
Device = AC-02-FileGr1-Dev2
Device = AC-03-FileGr1-Dev3
Device = Restore-AC-FileGr1
Changer Command = ""
Changer Device = /dev/null
}
Device {
Name = AC-01-FileGr1-Dev1
Media Type = File11
Archive Device = /opt/bacula/my/bkp/FullBackupPool
LabelMedia = yes;
Random Access = Yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
Autochanger = yes
Drive Index = 2
}
Device {
Name = AC-02-FileGr1-Dev2
Media Type = File11
Archive Device = /opt/bacula/my/bkp/DifferentialBackupPool
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
Autochanger = yes
Drive Index = 1
}
Device {
Name = AC-03-FileGr1-Dev3
Media Type = File11
Archive Device = /opt/bacula/my/bkp/IncrementalBackupPool
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
Autochanger = yes
Drive Index = 0
}
Device {
Name = Restore-AC-FileGr1
Media Type = File11
Archive Device = /opt/bacula/working
LabelMedia = yes;
Random Access = Yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
AutoSelect = no
Autochanger = yes
Drive Index = 3
}
# Define a Virtual autochanger
# Example of a second Autochanger.
# The Archive Device, Name, Media Type should be different for each Autochanger group
#Autochanger {
# Name = AC-FileGr2
# Device = AC-FileGr2-Dev1
# Device = AC-FileGr2-Dev2
# Device = AC-FileGr2-Dev3
# Device = Restore-AC-FileGr2
# Changer Command = ""
# Changer Device = /dev/null
#}
#Device {
# Name = AC-FileGr2-Dev1
# Media Type = File12
# Archive Device = /opt/bacula/my/bkp/FullBackupPool2
# LabelMedia = yes;
# Random Access = Yes;
# AutomaticMount = yes;
# RemovableMedia = no;
# AlwaysOpen = no;
# Maximum Concurrent Jobs = 5
# Autochanger = yes
# Drive Index = 2
#}
#Device {
# Name = AC-FileGr2-Dev2
# Media Type = File12
# Archive Device = /opt/bacula/my/bkp/DifferentialBackupPool2
# LabelMedia = yes; # lets Bacula label unlabeled media
# Random Access = Yes;
# AutomaticMount = yes; # when device opened, read it
# RemovableMedia = no;
# AlwaysOpen = no;
# Maximum Concurrent Jobs = 5
# Autochanger = yes
# Drive Index = 1
#}
#Device {
# Name = AC-FileGr2-Dev3
# Media Type = File12
# Archive Device = /opt/bacula/my/bkp/IncrementalBackupPool2
# LabelMedia = yes; # lets Bacula label unlabeled media
# Random Access = Yes;
# AutomaticMount = yes; # when device opened, read it
# RemovableMedia = no;
# AlwaysOpen = no;
# Maximum Concurrent Jobs = 5
# Autochanger = yes
# Drive Index = 0
#}
#Device {
# Name = Restore-AC-FileGr2
# Media Type = File12
# Archive Device = /tmp/bacula-restores
# LabelMedia = yes;
# Random Access = Yes;
# AutomaticMount = yes;
# RemovableMedia = no;
# AlwaysOpen = no;
# AutoSelect = no
# Autochanger = yes
# Drive Index = 3
#}
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = bacula-dir = all
}