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