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