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