Package: bacula / 7.4.4+dfsg-6

fix-default-config Patch series | download
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
Description: Change default configs for correct processing by postinst script
Last-Update: 2012-06-01

--- a/src/dird/bacula-dir.conf.in
+++ b/src/dird/bacula-dir.conf.in
@@ -16,7 +16,7 @@
 #
  
 Director {                            # define myself
-  Name = @basename@-dir
+  Name = @debian_hostname@-dir
   DIRport = @dir_port@                # where we listen for UA connections
   QueryFile = "@scriptdir@/query.sql"
   WorkingDirectory = "@working_dir@"
@@ -24,13 +24,14 @@
   Maximum Concurrent Jobs = 20
   Password = "@dir_password@"         # Console password
   Messages = Daemon
+  DirAddress = 127.0.0.1
 }
 
 JobDefs {
   Name = "DefaultJob"
   Type = Backup
   Level = Incremental
-  Client = @basename@-fd
+  Client = @debian_hostname@-fd
   FileSet = "Full Set"
   Schedule = "WeeklyCycle"
   Storage = File1
@@ -52,7 +53,7 @@
 
 #Job {
 #  Name = "BackupClient2"
-#  Client = @basename@2-fd
+#  Client = @debian_hostname@2-fd
 #  JobDefs = "DefaultJob"
 #}
 
@@ -90,7 +91,7 @@
 Job {
   Name = "RestoreFiles"
   Type = Restore
-  Client=@basename@-fd
+  Client=@debian_hostname@-fd
   FileSet="Full Set"
   Storage = File1
   Pool = File
@@ -168,7 +169,7 @@
 
 # Client (File Services) to backup
 Client {
-  Name = @basename@-fd
+  Name = @debian_hostname@-fd
   Address = @hostname@
   FDPort = @fd_port@
   Catalog = MyCatalog
@@ -183,7 +184,7 @@
 #  You should change Name, Address, and Password before using
 #
 #Client {
-#  Name = @basename@2-fd
+#  Name = @debian_hostname@2-fd
 #  Address = @hostname@2
 #  FDPort = @fd_port@
 #  Catalog = MyCatalog
@@ -312,7 +313,7 @@
 # Restricted console used by tray-monitor to get the status of the director
 #
 Console {
-  Name = @basename@-mon
+  Name = @debian_hostname@-mon
   Password = "@mon_dir_password@"
   CommandACL = status, .status
 }
--- a/src/filed/bacula-fd.conf.in
+++ b/src/filed/bacula-fd.conf.in
@@ -15,7 +15,7 @@
 # List Directors who are permitted to contact this File daemon
 #
 Director {
-  Name = @basename@-dir
+  Name = @debian_hostname@-dir
   Password = "@fd_password@"
 }
 
@@ -24,7 +24,7 @@
 #   status of the file daemon
 #
 Director {
-  Name = @basename@-mon
+  Name = @debian_hostname@-mon
   Password = "@mon_fd_password@"
   Monitor = yes
 }
@@ -33,16 +33,17 @@
 # "Global" File daemon configuration specifications
 #
 FileDaemon {                          # this is me
-  Name = @basename@-fd
+  Name = @debian_hostname@-fd
   FDport = @fd_port@                  # where we listen for the director
   WorkingDirectory = @working_dir@
   Pid Directory = @piddir@
   Maximum Concurrent Jobs = 20
   Plugin Directory = @plugindir@
+  FDAddress = 127.0.0.1
 }
 
 # Send all messages except skipped files back to Director
 Messages {
   Name = Standard
-  director = @basename@-dir = all, !skipped, !restored
+  director = @debian_hostname@-dir = all, !skipped, !restored
 }
--- a/src/stored/bacula-sd.conf.in
+++ b/src/stored/bacula-sd.conf.in
@@ -15,18 +15,19 @@
 #
 
 Storage {                             # definition of myself
-  Name = @basename@-sd
+  Name = @debian_hostname@-sd
   SDPort = @sd_port@                  # Director's port
   WorkingDirectory = "@working_dir@"
   Pid Directory = "@piddir@"
   Maximum Concurrent Jobs = 20
+  SDAddress = 127.0.0.1
 }
 
 #
 # List Directors who are permitted to contact Storage daemon
 #
 Director {
-  Name = @basename@-dir
+  Name = @debian_hostname@-dir
   Password = "@sd_password@"
 }
 
@@ -35,7 +36,7 @@
 #   status of the storage daemon
 #
 Director {
-  Name = @basename@-mon
+  Name = @debian_hostname@-mon
   Password = "@mon_sd_password@"
   Monitor = yes
 }
@@ -284,5 +285,5 @@
 #
 Messages {
   Name = Standard
-  director = @basename@-dir = all
+  director = @debian_hostname@-dir = all
 }
--- a/src/stored/stored.conf.in
+++ b/src/stored/stored.conf.in
@@ -16,6 +16,7 @@
   WorkingDirectory = "@working_dir@"
   Pid Directory = "@piddir@"
   Subsys Directory = "@subsysdir@"
+  SDAddress = 127.0.0.1
 }
 
 #
--- a/src/console/bconsole.conf.in
+++ b/src/console/bconsole.conf.in
@@ -6,7 +6,7 @@
 #
 
 Director {
-  Name = @basename@-dir
+  Name = @debian_hostname@-dir
   DIRport = @dir_port@
   address = @hostname@
   Password = "@dir_password@"
--- a/src/qt-console/bat.conf.in
+++ b/src/qt-console/bat.conf.in
@@ -3,7 +3,7 @@
 #
 
 Director {
-  Name = @basename@-dir
+  Name = @debian_hostname@-dir
   DIRport = @dir_port@
   address = @hostname@
   Password = "@dir_password@"
--- a/src/qt-console/tray-monitor/tray-monitor.conf.in
+++ b/src/qt-console/tray-monitor/tray-monitor.conf.in
@@ -3,27 +3,27 @@
 #
 
 Monitor {
-  Name = @basename@-mon
+  Name = @debian_hostname@-mon
   Password = "@mon_dir_password@"         # password for the Directors   
   RefreshInterval = 30 seconds
 }
    
 Client {
-  Name = @basename@-fd
+  Name = @debian_hostname@-fd
   Address = @hostname@
   FDPort = @fd_port@
   Password = "@mon_fd_password@"          # password for FileDaemon
 }
 
 Storage {
-  Name = @basename@-sd
+  Name = @debian_hostname@-sd
   Address = @hostname@
   SDPort = @sd_port@
   Password = "@mon_sd_password@"          # password for StorageDaemon
 }
 
 Director {
-  Name = @basename@-dir
+  Name = @debian_hostname@-dir
   DIRport = @dir_port@
   address = @hostname@
 }