]> git.sur5r.net Git - bacula/bacula/blob - bacula/ReleaseNotes
e1282c023f432d253e5ddddc2964091df0c09ce0
[bacula/bacula] / bacula / ReleaseNotes
1
2           Release Notes for Bacula 1.39.26
3
4   Bacula code: Total files = 447 Total lines = 149,711 (*.h *.c *.in)
5
6 Version 1.39.26 contains mainly bug fixes to 1.39.24. Please
7   see the ChangeLog for more details.
8
9 ==== IMPORTANT a stock SuSE 10.1 kernel may crash  =====
10 - A stock SuSE 10.1 kernel may crash when Bacula runs and accesses
11   the tape drive. Workaround, load a Fedora kernel, which works fine,
12   or load the SuSE 10.2 rc5 kernel which also works fine.
13
14 ==== IMPORTANT Catalog update required =====
15 - The database format has been updated from what was used in    
16   Bacula 1.38.x.  You must manually update your database before 
17   running Bacula 1.39.x or higher.  Please backup your previous
18   version of the database before running the update.  The update
19   script will be automatically installed in your scripts directory,
20   or can also be found in <bacula-source>/src/cats.  It is called:
21
22      ./update_bacula_tables
23
24   It is necessary to run it only once the first time you move to
25   a 1.39.x beta or to 1.40.0.  Upgrading the Bacula version
26   thereafter does not require updating the database again.
27   Depending on the size of your database the script make take a
28   bit of time, to run, but in general, it should be very fast.
29
30 ==== IMPORTANT DVD Volume format changed ====
31 - The current Volume format written by 1.39.22 is different from
32   the format written by previous versions. The two formats
33   are not compatible. Thus any DVDs written prior to 1.39.22 will
34   be unreadable by version 1.39.22.
35
36 ==== IMPORTANT miscellaneous ====
37 - The Gnome console program (gconsole) no longer functions as it
38   should.  If you have multiple catalogs, you will need to select
39   the catalog (this I will fix).  More importantly, in restore
40   mode, the restore tree is no longer shown in the left pane.  I
41   suspect this is due to incompatible changes in the GTK+ API,
42   and hence have given up on gnome and gtk+, as this has already
43   happened several times previously.  At some point there
44   will be a new GUI console.
45 - The bacula-dir.conf directive Accept Any Volume has been
46   removed because it was never implemented. You must delete all
47   occurrence of this directive for the Director to run.
48 - The --mandir ./configure option now points to the top level man
49   directory.  The man files will be installed under mandir/man8 and
50   mandir/man1 as appropriate.
51 - The "Accept Any Volume" directive has been removed. It was never
52   implemented. Bacula will always accept any valid tape that is in   
53   the drive for appending.
54 - You *should* be able to use 1.38.x FDs with version 1.39.18 Director
55   and SD providing you do not use any of the new features (runscript,   
56   data encryption). It seems to work here, but we do not guarantee it.
57 - Your Director and SD must be simultaneously upgraded.
58 - The restore command no longer uses the MediaType as the primary method
59   of finding a suitable Storage device. Normally it will select the last
60   device used to write a Volume. If no storage device is defined, it
61   will use the old algorithm which selects the first Storage resource  
62   with the correct MediaType.
63 - The MD5/SHA1 hash codes kept in the database are now kept in a binary
64   format compatible with the rest of the world. If you are running verify 
65   jobs, you *must* do an InitCatalog or all files will show an MD5   
66   difference.  Also, authentication uses the new algorithm by
67   default, but *should* accept connections from older components (FD) using
68   the old non-compatible algorithm. This has been tested, but more
69   more testing is still needed.  
70
71 ==== IMPORTANT new Win32 install procedure =====
72   For Win32 migrations from versions prior to the new installer nothing special
73   needs to be done to upgrade.  Everything should be taken care of
74   automatically.  The only thing not done is to delete the old C:\Bacula
75   directory (mostly out of paranoia, we can change that prior to release if
76   everyone is comfortable with it).
77
78   Prior to using the current installer, if you used a prior 1.39.x 
79   beta version, you must do one of the following three things:
80
81    1)      Uninstall prior beta version and select the option to delete
82    the configuration and state files.  This will get rid of the bogus
83    configuration files.  Reinstall the new 1.39.22 version.
84
85    2)      Manually copy the *.conf files from C:\Bacula\bin to
86    C:\Documents and Settings\All Users\Application Data\Bacula.
87
88    3)      Manually edit the *.conf files in C:\Documents and
89    Settings\All Users\Application Data\Bacula.  The links in the Bacula menu
90    can be used to avoid having to enter that ugly path.
91
92   After one of these has been done the upgrade should work fine.
93
94   If you have problems with the above, try the following
95   The new Win32 installer requires that you deinstall any
96   previous 1.39.x beta version before installing the new version.
97   The following is not necessary if you are upgrading from
98   a 1.38.x installation.
99
100   The simplest way to do clean up a prior 1.39.x beta is in a DOS shell:
101           
102   cd c:\bacula\bin
103   net stop bacula
104   net stop baculfd
105   ./bacula-fd /remove
106   (Install the new Bacula)
107     
108   Note, one or both of the 'net stop' commands may fail. Don't
109   worry about it.      
110
111   If you didn't read the release notes or forgot to do those 
112   commands, try the following:
113
114   cd c:\bacula\bin
115   net stop bacula
116   net stop baculafd
117   sc delete bacula
118   sc delete baculafd
119
120   Note, at least one of the 'net' commands and possibly both
121   will fail, and at least one of the 'sc' commands will fail.
122   Don't worry about it.  After that, try again to install
123   the new Bacula.
124
125
126 New Features in 1.40.0:
127 - Windows tray status windows are scrollable and resizable.
128 - Win32 external script excution is much more flexible -- handles
129   spaces in names better, ...
130 - Lots of DVD fixes -- I think they now work!
131 - Fix opening of database in a restricted console to respect     
132   any Catalog ACL.
133 - Permit multiple console/director resources in bconsole.conf.
134   patch from Carsten Paeth calle@calle.in-berlin.de
135 - Character substitution in Job/JobDefs WriteBootStrap.
136   from Eric Bollengier.
137 - Apply patch supplied in bug #656 to pass priority field
138   in the run dialog to the Director in gnome console.
139 - Add support of encrypted data stream to bscan from Eric.
140   display data_len instead of data content (may be binary)
141 - Add Enabled=xxx on update slots command.
142 - Add host:port to connect failure messages to FD and SD from Dir
143 - Add WhereACL to console ACL list.  If nothing is specified, only
144   the default is permitted for restore. Otherwise, *all* allows any
145   path, or you can specify permitted paths. This should allow control
146   over where users can restore files. This is untested.
147 - Install man pages with 'make install'
148 - Add Media.Enabled flag to client backups for dotcmds.c
149 - Enforce Media.Enabled=1 for a current restore to work
150 - Require restore case 3 to have sqlquery permission to work.
151 - The basic features of Migration are now complete.
152 - There is a Migration chapter in the doc.
153   http://www.bacula.org/dev-manual/Migration.html
154 - There is an Encryption chapter in the doc.
155   http://www.bacula.org/dev-manual/Bacula_Data_Encryption.html
156 - Additional support for removable devices.  See the 
157   Requires Mount, Mount Point, Mount Command, and Unmount
158   Commands in the Storage daemon configuration chapter:
159   http://www.bacula.org/dev-manual/Storage_Daemon_Configuratio.html
160   Also see the Edit Codes for Mount and Unmount Directives in the
161   same chapter.
162 - Add -n option to bconsole to turn off conio.
163 - The bytes field in the terminated jobs part of the status
164   command now reports in KB, MB, ... units.
165 - When not descending into a directory, print the File= name that
166   triggered it -- makes why not descending a bit clearer
167 - Do not unload autochanger when doing "update slots"
168 - Implement mount command for autochanger
169 - Fix bug #462 incorrect error message printed when client script called
170   from File= was not found.
171 - Fix bug #558 (waiting for feedback) where Bacula needs too much time to
172   do a rewind on Solaris when no tape is in the drive (Solaris does not
173   have the detailed errno found on Linux).  Added Solaris specific code.
174   Note, this may apply to other OSes as well.
175 - Switch the Win32 build from using Microsoft C++ to using mingw32
176   cross-compiling.  The initial work was done by Howard Thomson,
177   then tweaked by me.  Robert Nelson then totally reworked the
178   cross-compiling code so that it not only cross-compiles, but
179   also compiles on Visual Studio, and at the same time, he added
180   all the current Unix features to the FD, such as selection on
181   drives, encryption support, building *all* the tools, ...
182   Finally, he also ported the Directory and the Storage daemon to
183   Win32.
184 - Data encryption done in the Client is now supported due to code
185   submitted by Landon Fuller.
186 - Bacula restore and bextract can now extract non-portable Win32 data to
187   any client (including Unix/Linux clients). Of course, in doing so,
188   the Microsoft specific permissions and ACLs will be lost.  Thanks
189   to Thorsten Engel for this code.
190 - The 260 character limitation for Win32 paths name lengths is now 
191   eliminated thanks to Thorsted Engel.
192 - Eric Bollengier wrote new RunScript directives that includes
193   the old RunBefore/AfterJob and ClientRunBefore/AfterJob features
194   plus a *lot* more, allowing you to control just about every aspect
195   of running scripts.  See the manual for detailed documentation.
196   http://www.bacula.org/dev-manual/Configuring_Director.html#5227
197 - The examples directory has a new bacula_mail_summary.sh file that
198   creates a single email summary of any number of jobs. Submitted by
199   Andrew J. Millar.
200 - SunOS ACLs should now work thanks to a patch from David Duchscher.
201 - The database Id records should be 32/64 bit independent now. 64 bits
202   can be enabled by changing one define, but this has never been tested.
203 - Apply days keyword patch from Alexander.Bergolth at wu-wien.ac.at
204   If this patch is applied, the number of days can be specified with
205   "list nextvol days=xx"
206   or
207   "status dir days=xx"
208   My use case is to be able to preview the next scheduled job (and the
209   next tape to be used) on Fridays if there are no scheduled jobs during
210   the weekend.  This patch was probably back ported to 1.38.x
211 - Add nagios plugin to the examples directory. Submitted by
212   Christian Masopust.
213 - Modify most restore error messages to be queued so that they
214   appear at the end of the job rather than mixed with the restore
215   listing where they could be "lost".
216 - Apply patch supplied by user (slightly modified) to fix
217   correct detection of holes in block devices and FIFOs.
218   Bug # 506.
219 - Added a report.pl program to the examples directory from Jonas Bjorklund.
220 - Add enable/disable job=<job-name>.  This command prevents
221   the specified job from being scheduled. Even when disabled,
222   the job can be manually started from the console.
223 - Add two new queries to query.sql provided by Arno. One
224   list volumes known to the Storage device, and the other
225   lists volumes possibly needing replacement (error, ...).
226 - Implement new code for changing userid and group at startup. This
227   should get Bacula into the correct groups.
228 - Implement support for removable filesystems.
229 - Transfer rates are now presented in a more readable format thanks
230   to a user submission.
231 - SD is now aware of what volumes are mounted. More information is printed
232   in the Status report.
233 - The Pool Maximum Volumes directive is now respected in all places.
234 - A Storage device can now be specified in a Pool resource. It will override
235   all other Storage specifications.
236 - Most but not all directives accept true/false in place of yes/no.
237 - A patch from Karl Hakimian that reads JobIds, FileIndexes
238   from a database table for restore.
239 - There are a number of new tables. Some such as the Location table are
240   designed for user use in doing Volume Management software.
241 - Maximum Changer Wait, Maximum Open Wait, Maximum Rewind Wait to
242   accept time qualifiers.
243 - Implement jobuid to replace old usage of job in keywords as
244   suggested by Eric Bollengier.
245 - Apply patch for enhancing wait from Eric Bollengier. One can now:
246    wait  (wait for all jobs to stop)
247    wait jobid=nn
248    wait jobuid=unique id
249    wait job=job-name
250 - Implement write variables for Python to set Priority (anytime), and
251   Job Level, only during JobInit event.
252 - Use the keyword ujobid to mean the unique job id; job or jobname
253   to mean the Job name given on the Name directive, and jobid to
254   be the numeric (non-unique) job id.
255 - Allow the SD to use multiple drives during a backup/restore (only
256   one at a time). This is not well tested.
257 - Integrate addition of line count limitation to bsmtp -l from
258   Sebastian Stark <stark at tuebingen.mpg.de>
259 - Split the bacula start/start script into four files:
260    bacula         -- starts and stops calling other scripts
261    bacula-ctl-dir -- starts/stops the director
262    bacula-ctl-fd  -- starts/stops the File daemon
263    bacula-ctl-sd  -- starts/stops the Storage daemon
264 - Remove automatic case folding on Windows FDs. You must
265   explicitly use the 'Ignore Case = yes' option.
266 - Implement wild program in tools directory for testing
267   wild-cards. Almost identical to the regex program.
268 - Use the new bregex.c to implement Regex expressions on Win32.
269 - Apply patch from Christopher Hull
270   - Allow multiple connections to database with different
271     parameters.
272   - Invalidate the scheduler when doing a reload. Fixes seg
273     fault, but still 60 second window.
274   - Additional info in Reschedule message.
275   - Use set_jcr_job_status() everywhere to prevent loss of
276     cancel, error.
277   - Display peer IP in FD if error from connecting DIR.
278   - Don't increment file count for DIRBEGIN.
279   - Replace illegal characters in Win32 filename by _.
280   - Add SE_CREATE_PERMANENT_NAME privilege in Win32.
281   - Hash hard link filenames rather than linked list (performance).
282   - Fix for security failure in chdir on Win32.
283   - Add CreateDirectoryA/W win32 API entry points.
284 - Add /silent option to Win32 FD for Install/Remove service.
285   programs to duplicate Bacula's base64 algorithm using standard
286   routines. This fixes bugs #296, and 565. Patch submitted by
287   author of bug #565.
288 - Fixes to reloading the Dir conf file from Eric Bollengier and Christopher
289   Hull.
290 - Modify LICENSE to correct some problems pointed out by Debian.
291 - Apply a patch submitted by cesarb in bug #606 to implement O_NOATIME support.
292     O_NOATIME is a open() flag which makes it possible to read a file without
293     updating the inode atime (and also without the inode ctime update which
294     happens if you try to set the atime back to its previous value). It also
295     prevents a race condition when two programs are reading the same file, but
296     only one does not want to change the atime. It's most useful for backup
297     programs and file integrity checkers (and bacula can fit on both
298     categories).                                                    
299   You enable it in the Bacula FileSet Options resource by setting:
300      noatime = yes
301   The effect of this option is similar to the keepatime option except
302   it is more efficient and avoids modifying ctime.
303 - Implement a pile of new man pages contributed by Jose Tallon.
304 - Implement a number of user supplied patches for DVD writing.
305 - Modify the database format for handling Migration jobs:
306    Add PriorJobId, RealEndTime to Job table
307    Delete MAC table
308    Remove Stripe from JobMedia record (not used, wasting space)
309    Add ScratchPoolId, RecyclePoolId, Enabled to Media record
310    Add Cost to Location table.
311    Enabled to Media table and Location table.
312 - Security: harden authentication failure in FD by single threading errors
313   and forcing a 6 second wait.
314 - If using GCC (actually g++) add the following compiler flags
315   -fno-strict-aliasing -fno-exceptions -fno-rtti
316 - Turn on new bsnprintf() code.  This could cause print output
317   to look different. The reason for this code is to eliminate the
318   security problems associated with using the system libraries
319   print routines.
320 - Implement job report that indicates where Storage and Pool
321   came from -- with overrides and Pool storage and NextPool,
322   it is all very complicated.
323 - Add more detail (Storage, Device) to list of volumes printed
324   for restore.
325 - Add new VOLMGMT message class. No messages are yet sent with this 
326   class.
327 - Add Catalog message destination in Messages resource that puts the
328   job report in the Log database table.
329 - Spend a lot of time integrating mkcdrec with the rescue disk.
330 - Add spooling/despooling info in status output of SD.
331 - Add Comment field to llist of a volume.
332 - Allow true/false in some yes/no questions.
333 - Implement update volume enable=(on|off|true|false|archived|0|1|2)
334
335 Additional Features Added for Win32:
336
337 Added DriveType directive to the Director's Include Option FileSet
338 resource.  Allowed values are: fixed, removable, cdrom, and remote.  There
339 is only an implementation for Windows because it is the only platform that
340 has the concept of drives.
341  
342 Adds EnhancedWild directive to the Director's Include Option FileSet
343 resource.  Allowed values are: yes and no.
344  
345 When EnhancedWild is enabled then the processing of the
346 Wild, WildDir and WildFile is changed in the following ways.
347  
348   Patterns conform to Posix
349       \ is not a special character in character classification []
350       To match a - it must be the first or last character
351       To match a ] it must be the first character
352  
353       fnmatch option FNM_FILE_NAME is specified * doesn't match a / 
354       so it won't match multiple directory levels in a path
355  
356 Relative WildFile patterns (ones without a leading /) match
357 against the filename portion.  This in combination with the
358 FNM_FILE_NAME fnmatch() flag makes directives such as WildFile =
359 abc*.def work as expected.
360  
361 Adds support for the shell's feature of brace expansion.
362
363 Here is an example where braces allow 24 lines to be expressed in 5.
364
365 # Exclude directories full of lots and lots of useless little files
366 WildDir = "[A-Z]:/{Documents and
367 Settings,{WINNT,Windows}/Profiles}/*/Cookies"
368 WildDir = "[A-Z]:/{Documents and
369 Settings,{WINNT,Windows}/Profiles}/*/Recent"
370 WildDir = "[A-Z]:/{Documents and Settings,{WINNT,Windows}/Profiles}/*/{Local
371 Settings,LOCALS~1}/History"
372 WildDir = "[A-Z]:/{Documents and Settings,{WINNT,Windows}/Profiles}/*/{Local
373 Settings,LOCALS~1}/Temp"
374 WildDir = "[A-Z]:/{Documents and Settings,{WINNT,Windows}/Profiles}/*/{Local
375 Settings,LOCALS~1}/Temporary Internet Files"
376
377
378
379 Here are some hints if you want to play with the Windows Director and/or
380 Storage daemon.
381  
382 Changer and Tape device names in Windows are Changer0, Changer1, etc and
383 Tape0, Tape1, etc.  If there isn't a device driver loaded for the Changer
384 then you need to use the address <Port>:<Bus>:<Target>:<Lun>.  Port is the
385 SCSI Adapter Number, Bus is the Bus Number on the adapter (usually 0 since
386 most adapters only have one bus), Target is the device's Target Device ID,
387 Lun is the Logical Unit Number.
388  
389 You must specify DeviceType = tape in the Device resource in bacula-sd.conf
390 since detection doesn't currently work.