2 Release Notes for Bacula 1.38.6-beta3
4 Bacula code: Total files = 418 Total lines = 136,328 (*.h *.c *.in)
5 20,440 additional lines of code since version 1.36.3
8 - For autochanger get Scratch tape if in autochanger if
9 no appendable Volumes are available.
10 - New virtual disk autochanger. See scripts/disk-changer for
12 - New optional Device resource directive in SD. 'Device Type =',
13 which may have types: File, DVD, Tape, or FIFO. This can
14 be useful for writing DVDs on FreeBSD where Bacula cannot
15 correctly detect the DVD.
16 - Faster restore tree building and uses less memory.
17 - The command line keyword job (or jobname) now refers to the
18 name of the job specified in the Job resource; jobid refers
19 as before to the non-unique numeric jobid; and ujobid refers
20 to the unique job identification that Bacula creates for each
22 - The job report for Backups has a few more user friendly ways
23 of displaying the information submitted by John Kodis
24 <kodis at comcast.net>.
25 - The wait command can now be made to wait for jobids.
26 - New command line keywords are permitted in update volume. They
27 are Inchanger=yes/no, slot=nn.
30 - Fix race condition in multiple-drive autochangers where
31 both drives want the same Volume.
32 - Do not allow opening default catalog for restricted console
34 - Writable FIFOs now work for restore.
35 - ACLs are now checked in all dot commands.
36 - Multiple drive autochangers and multiple different autochangers
37 should now work correctly (no race conditions for Volume names,
38 update slots use correct StorageId).
39 - Fix bug where drive was always reserved if a restore job failed
40 while in the reservation process.
47 Release 1.38.6 beta3 4Mar06
49 - The po files should now be current.
50 - Fix new sql_use_result() code to properly release the
52 - Convert to using new Python class definitons with (object).
53 - Use the keyword ujobid to mean the unique job id; job or jobname
54 to mean the Job name given on the Name directive, and jobid to
55 be the numeric (non-unique) job id.
56 - Allow listing by any of the above.
57 - Add the user friendly job report code for reporting job elapsed time
58 and rates with suffexes submitted by John Kodis <kodis at comcast.net>
59 - Add Priority and JobLevel as Python settable items.
60 - Use TEMPORARY table creation where the table is created by
62 - Add new code submitted by Eric for waiting on specific jobid.
63 - Add ACL checking for the dot commands.
64 - Fix restore of writable FIFOs.
65 - Fix a bug in bpipe where the string was freed too early.
68 - Fix bug reported by Arno listing blocks with bls
69 - Update the po files at Eric's request.
71 Release 1.38.6-beta2 25Feb06
73 - Add sql_use_result() define.
75 Changes to 1.38.6-beta1
76 - Don't open default catalog if not in ACL.
77 - Add virtual disk autochanger code.
78 - Add user supplied bug fix to make two autochangers work
79 correctly using StorageId with InChanger checks.
80 - Correct new/old_jcr confusion in copy_storage().
81 - Remove & from Job during scan in msgchan.c -- probably
83 - When getting the next Volume if no Volume in Append mode
84 exists and we are dealing with an Autochanger, search
86 - Check for missing value in dot commands -- bug fix.
87 - Fix bug in update barcodes command line scanning.
88 - Make sure Pool Max Vols is respected.
89 - Check that user supplied a value before referencing
90 it in restore -- pointed out by Karl Hakimian.
91 - Add Karl Hakimian's table insert code.
92 - Don't ask user to select a specific Volume when
93 updating all volumes in a Pool.
94 - Remove reservation if set for read when removing dcr.
95 - Lock code that requests next appendable volume so that
96 two jobs to get the same Volume at the same time.
97 - Add new Device Type = xxx code. Values are file, tape,
99 - Preserve certain modes (ST_LABEL|ST_APPEND|ST_READ) across
100 a re-open to change read/write permission on a device.
101 - Correct a misplaced double quote in certain autochanger
103 - Make make_catalog_backup.in a bit more portable.
104 - Implement Karl Hakimian's sql_use_result(), which speeds
105 up restore tree building and reduces the memory load.
106 - Correct a number of minor bugs in getting a Volume from
108 - Implement additional command line options for update Volume.
109 - Don't require user to enter a Volume name when updating
110 all Volumes in a pool.
112 Release 1.38.5 released 19Jan06:
113 - Apply label barcodes fix supplied by Rudolf Cejka.
114 - Modify standard rpm installation to set SD group to disk
115 so that SD will by default have access to tape drives.
116 - Allow users to specify user/group and start options
117 for each daemon in /etc/sysconf/bacula file.
119 Changes to 1.38.4 released 17Jan06:
120 - The main changes are to the Director and the Storage daemon,
121 thus there is no need to update your File daemons. Just the
122 same, I do recommend running with the release 1.38.3 Win32
124 - Add two new queries to query.sql provided by Arno. One
125 list volumes known to the Storage device, and the other
126 lists volumes possibly needing replacement (error, ...).
127 - Add periodic (every 24 hours) garbage collection of memory
128 pool by releasing free buffers.
129 - Correct bug counting sized (for display only) in smartall.c
130 - Print FD mempool stats if debug > 0 rather than 5.
131 - Correct bug in alist.c that re-allocated the list if the
132 number of items goes to zero.
133 - Move the reservation system thread locking to the top level
134 so that one job at a time tries all possible drives before
136 - Implement a reservation 'fail' message queue that is built
137 and destroyed on each pass through the reservation system.
138 These messages are displayed in a 'Jobs waiting to reserve
139 a drive' list during a 'status storage='. Note, multiple
140 messages will generally print for each JobId because they
141 represent the different problems with either the same drive
142 or different drives. If this output proves too confusing
143 of voluminous, I will display it only when debug level 1
144 or greater is enabled in the SD.
145 - Add enable/disable job=<job-name>. This command prevents
146 the specified job from being scheduled. Even when disabled,
147 the job can be manually started from the console.
148 - During 'update slots' clear all InChanger flags where the
149 StorageId is zero (old Media records).
150 - Fix autochanger code to strip leading spaces from returned
151 slots number. Remove bc from chio-changer.
152 - Back port a bit of 1.39 crypto code to reduce diffs.
153 - Fix first call to autochanger that missed close()ing the
154 drive. Put close() just before each run_program(). Fixes
156 - Add PoolId to Job record when updating it at job start time.
157 - Pull in more code from 1.39 so that there are fewer file
158 differences (the new ua_dotcmds.c, base64.h, crypto.h
159 hmac.c jcr.c (dird and lib) lib.h md5.h parse_conf.c
160 util.c. Aside from ua_dotcmds.c these are mostly crypto
162 - Implement new method of walking the jcr chain. The
163 incr/dec of the use_count is done within the walking
164 routines. This should prevent a jcr from being freed
165 from under the walk routines.
168 Changes to 1.38.3 released 05Jan06:
169 - This is mainly a bug release fix. In addition, the multiple drive
170 reservation algorithm has been rewritten.
171 - In addition, the method of handling waiting for tapes to be
172 mounted and the mount messages has been modified.
173 (the above two items are a potential source of problems).
174 - Simplify code in askdir.c that waits for creating an appendable
175 volume so that it can handle multiple returns from the wait code.
176 - Modify the wait code to permit multiple returns.
177 - Return a zero when 'autochanger drives' is called and
178 it is not an autochanger.
179 - Make rewind_dev() a method taking a DCR as an argument.
180 This permits closing and reopening the drive if the
181 rewind fails as happens if the drive was loaded while the
182 file descriptor was open. This refreshes the file descriptor.
183 - Remove the ST_OPENED flag and always rely on fd < 0 for knowing
184 if the device is open or not. This should eliminate
186 - Return error if reserve cannot find at least one suitable device.
187 - Make wait_for_sysop() return correct state information.
188 - Fix Win32 state file problem. write was not using compat
189 code. This should fix bug #500.
190 - Modify gui on command to set only GUI mode and not batch.
191 - Modify .messages command to always print messages regardless
193 - If GUI mode is on, suppress automatic printing of
195 - Modify restore command in wx-console to set gui on and to use
196 only .messages instead of messages. Hopefully this fixes bug
198 - Implement load balancing code with multiple drive autochangers.
199 - Rewrite reservation algorithm again. Rename variables to be
200 more logical, add HEARTBEAT with Director, allow cancel of
201 jobs stuck in reservation, add last resourt any_drive.
202 - Fix seg fault if user labels a drive directly bug #513
203 - Remove quotes around Version as it breaks things.
204 - Merge in Aleksandar Milivojevic's mods to the spec file.
205 - Apply sparse code fix for raw drives and fifos. Bug 506
206 - Thorsten fixed Unicode cd problem with wx-console bug 505.
207 - Correct reservation system to do a last ditch try
208 for any mounted volume, then anyone anywhere.
209 - Updates to ssh-tunnel from Joshua Kugler.
210 - Added a report.pl program from Jonas Bjorklund.
211 - Simplify the O_NONBLOCK open() code for tape drives,
212 and always open nonblocking.
213 - Do not wait for open() if EIO returned (shouldn't happen).
214 - Eliminate 3 argument to tape open().
215 - Correct the slot # edited in the 3995 Bad autochanger unload
217 - With -S on bscan (show progress) do not divide by zero.
218 - Make cancel pthread_cond_signal() pthread_cond_broadcast().
219 - When dcr is freed, also broadcast dev->wait_next_vol signal.
220 - Remove unused code in wait_for_device.
221 - Make wait_for_device() always return after 60 seconds of wait.
222 - Use localhost if no network configured
223 - Eliminated duplicate MaxVolBytes in cat update -- bug 509.
224 - Update specs to include mysql4 define.
225 - Return rec->FileIndex in dcr->VolLastIndex for normal
226 and partial records in read_record(). This allows bscan
227 to get FileIndex at EOT correct.
228 - Fix butil.c to correctly set dcr -- fixes seg fault in bls.
229 - Apply patch supplied by user (slightly modified) to fix
230 correct detection of holes in block devices and FIFOs.
232 - Apply patch supplied by user (slightly modified)
233 to fix SD hang with multiple pools and bad client
235 - Add nagios plugin to the examples directory. Submitted by
237 - Remove warning message about multiple saves of hardlinked files
238 from find_one.c as it can generate too many warning messages.
239 - Reset timeout values before select() per patch from
240 Frank Sweetser for problems with non-blocking sockets.
241 - Unlink the state file if either reading or writing it gets
242 errors. Hopefully this will fix Win32 exit problems.
243 - Get next volume from Scratch pool before creating a volume.
244 - Set new Pool defaults in Vol when moved from Scratch Pool.
245 - Remove argument from create_bacula_database for SQLite as it
247 - Fix reservation so that mutexes are properly applied.
248 - Rework reservation algorithm so that two drives can be used
250 - Apply days keyword patch from Alexander.Bergolth at wu-wien.ac.at
251 If this patch is applied, the number of days can be specified with
252 'list nextvol days=xx'
255 My use case is to be able to preview the next scheduled job (and the
256 next tape to be used) on fridays if there are no scheduled jobs during
258 - Fix font code in gnome2 console user patch. Fixes bug #501.
259 - Fix malformatted bnet error message that caused seg fault
261 - Applied user patch to improve README.vc8 in src/win32.
262 - Ensure that StorageId is stored in Media record when ever possible.
263 - Remove old code from winservice.cpp
264 - Break on error in scan.
265 - Fix typo in signal.c
266 - Separate read/write DCR in SD. Add jcr->read_dcr.
267 - Cleanup how find_device() works.
268 - Remove abs() in bfile.c so that it compiles on Solaris. Bug #491.
271 - Fix crash in tray-monitor when daemon disconnects. Bug #479.
272 - Fix bnet-server bug found on OpenBSD. Bug #486
273 - Fix cancel failure bug. Bug #481
274 - Fix failure when Pool name has spaces. Bug #487
275 - Fix SD crash in autochanger code. Mutex failure. Bug #488
276 - Fix a couple of free()s in src/filed/acl.c
277 - Fix memory overrun in bfile.c in building OS X resource
278 fork filename. Bug #489
279 - Add Pool name to SD status output.
280 - Add Python install dir for Solaris to configure. Bug #492
283 - Corrected ACL for Solaris (David Duchscher and Attila Fulop).
284 - Add bacula_mail_summary.sh to examples directory. It makes
285 a single email summary of any number of jobs. Submitted
287 - Unmount command now unloads autochanger.
288 - Fix hang in FD (Martin Simmons)
289 - Fix Win98 stat() problem in FD (Thorsten Engel)
290 - Fix update slots which did not clear missing tapes.
291 - Fix autostart install for FreeBSD (user reported)
292 - Fix several problems with PostgreSQL scripts (Eric Bollinger)
293 - Critical: allow restore of the first file of non-portable Win32 backup.
294 - Important: with muliple concurrent jobs the autochanger could get
295 confused because of a missing mutex.
296 - Fix accessing last slot in label and update slots.
297 - Modify configure.in to add execute option to sqlite3 catalog
299 - Create update_xxx_table_8_to_9 scripts for updatedb
300 - Move the -lcrypt for PostgreSQL after the PostgreSQL libs in
301 autoconf/bacula-macros/db.m4 as suggested by user. Fixes bug #457.
302 - Remove @STATIC_CONS@ from tray-monitor Makefile as suggested
303 by user. Fixes bug #456.
304 - AMD64 users see compiler bug warning below!!!!!!!!!
306 Major Changes in 1.38:
307 - Fixed out of order Volumes in restore.
308 - Improved algorithm for reserving drives in multiple drive
309 autochangers. Autochange users MUST use the new Autochanger
310 resource in the Storage daemon.
311 - There is a new database format that is not compatible
312 with previous databases. You must upgrade if converting
313 from 1.36.x. No changes from version 1.37.30.
314 - The Director, Storage daemon, and File daemons are
315 Deamons are not compatible with prior versions.
316 All FDs must be upgraded at the same time.
317 - Support for ANSI/IBM labels.
318 - Faster database inserts due to combining the MD5/SHA1 into
319 the attributes record, eliminating one INSERT/file backed up.
320 - Python Event support has been added. See below for
321 configuration and details. The implementation is somewhat minimal,
322 so the functionality is not complete. The Python interface
323 has not been extensively tested, so please consider it BETA.
324 - DVD writing support, using parts, and some new directives in
325 the Device resource of the Storage configuration file thanks
326 to Nicolas Boichat. Please note that this code is still
327 BETA and should be carefully tested before using in
329 - Seven new options keywords in a FileSet resource:
330 ignorecase, fstype, hfsplussupport, wilddir, wildfile, regexdir,
331 and regexfile thanks to Pruben Guldberg). See below for details.
332 - Restore of all files for a Job or set of jobs even if the file
333 records have been removed from the catalog.
334 - Restore of a directory (non-recursive, i.e. only one level).
335 - Support for TLS (ssl) between all the daemon connections thanks
337 - Any Volume in the Pool named Scratch may be reassigned to any
338 other Pool when a new Volume is needed.
339 - You may clone a Job and thus write (almost) the same data
340 to multiple Volumes simultaneously (see below). Actually,
341 any Job may start any other Job with this mechanism, so it
342 also be used to group jobs.
343 - Unicode filename support for Win32 (thanks to Thorsten Engel)
344 - Volume Shadow Copy support for Win32 thus the capability to
345 backup exclusively opened files (thanks to Thorsten Engel).
346 A VSS enabled Win32 FD is available. You must explicitly
347 turn on VSS with 'Enable VSS = yes' in your FileSet resource.
348 - New manual format with an index (thanks to Karl Cunningham).
349 - New Web site format (thanks to Michael Scherer).
351 - Web-bacula, previously a separate project by Juan Luis Frances,
352 is now included in the Bacula GUI release. This is a management
353 level tool for reporting the state of Bacula jobs.
354 - The code is now Internationalized so that it can be localized
355 in native languages. Thanks to Nicolas Boichat.
358 - New Job directive 'Prefer Mounted Volumes = yes|no' causes the
359 SD to select either an Autochanger or a drive with a valid
360 Volume already mounted in preference. If none is available,
361 it will select the first available drive.
362 - New Run directive in Job resource of DIR. It permits
363 cloning of jobs. To clone a copy of the current job, use
364 Run = 'job-name level=%l since=\'%s\''
365 Note, job-name is normally the same name as the job that
366 is running but there is no restriction on what you put. If you
367 want to start the job by hand and use job overrides such as
368 storage=xxx, realize that the job will be started with the
369 default storage values not the overrides. The level=%l guarantees
370 that the chosen level of the job is the same, and the since=...
371 ensures that the job uses *exactly* the same time/date for incremental
372 and differential jobs. The since=... is ignored when level=Full.
373 A cloned job will not start additional clones, so it is not possible
375 - New Options keywords in a FileSet directive (backported to 1.36.3):
377 Will do a wild card match against directories (files will not
380 Will do a wild card match against files (directories will not
383 Will do a regular expression match against directories (files
384 will not be matched).
386 Will do a regular expression match against files( directories
387 will not be matched).
388 - IgnoreCase = yes | no
389 Will ignore case in wild card and regular expression matches.
390 This is handy for Windows where filename case is not significant.
392 where string is a filesystem type: ext2, jfs, ntfs, proc,
393 reiserfs, xfs, usbdevfs, sysfs, smbfs, iso9660. For ext3
394 systems, use ext2. You may have multiple fstype directives
395 and thus permit multiple filesystem types. If the type
396 specified on the fstype directive does not match the
397 filesystem for a particular directive, that directory will
398 not be backed up. This directive can be used to prevent
399 backing up non-local filesystems.
400 - HFS Plus Support = yes | no
401 If set, Mac OS X resource forks will be saved and restored.
402 - Label Type = ANSI | IBM | Bacula
403 Implemented in Director Pool resource and in SD Device resource.
404 If it is specified in the SD Device resource, it will take
405 precedence over the value passed from the Director to the SD.
406 - Check Labels = yes | no
407 Implemented in the SD Device resource. If you intend to read
408 ANSI or IBM labels, this *must* be set. Even if the volume
409 is not ANSI labeled, you can set this to yes, and Bacula will
410 check the label type.
411 - Scripts Directory = <directory> name. Defines the directory from
412 which Bacula scripts will be called for events. In fact, Bacula
413 appends this name to the standard Python list of search directories,
414 so the script could also be in any of the Python system directories.
415 - In FileSet, you can exclude backing up of hardlinks (if you have
416 a lot, it can be very expensive), by using:
418 in the Options section. Patch supplied by David R Bosso. Thanks.
419 - MaximumPartSize = bytes (SD, Device resource)
420 Defines the maximum part size.
421 - Requires Mount = Yes/No (SD, Device resource)
422 Defines if the device require to be mounted to be read, and if it
423 must be written in a special way. If it set, the following directives
424 must be defined in the same Device resource:
425 + Mount Point = directory
426 Directory where the device must be mounted.
427 + Mount Command = name-string
428 Command that must be executed to mount the device. Before the command
429 is executed, %a is replaced with the Archive Device, and %m with the
431 + Unmount Command = name-string
432 Command that must be executed to unmount the device. Before the
433 command is executed, %a is replaced with the Archive Device, and
434 %m with the Mount Point.
435 + Write Part Command = name-string
436 Command that must be executed to write a part to the device. Before
437 the command is executed, %a is replaced with the Archive Device, %m
438 with the Mount Point, %n with the current part number (0-based),
439 and %v with the current part filename.
440 + Free Space Command = name-string
441 Command that must be executed to check how much free space is left
442 on the device. Before the command is executed, %a is replaced with
443 the Archive Device, %m with the Mount Point, %n with the current part
444 number (0-based), and %v with the current part filename.
445 - Write Part After Job = Yes/No (DIR, Job Resource, and Schedule Resource)
446 If this directive is set to yes (default no), a new part file will be
447 created after the job is finished.
448 - A pile of new Directives to support TLS. Please see the TLS chapter
452 - 'python restart' restarts the Python interpreter. Rather brutal, make
453 sure no Python scripts are running. This permits you to change
454 a Python script and get Bacula to use the new script.
456 New configure options:
457 - --with-libintl-prefix for defining alternate locations for
458 the NLS internationalization libraries. Not normally required.
459 - --datadir for defining where the language files will be installed
460 required only if you do not want the default /usr/share.
463 - The Storage daemon now keeps track of what tapes it is using
464 (was not the case in 1.36.x). This means that you must be much
465 more careful when removing tapes and putting up a new one. In
466 general, you should always do a 'unmount' prior to removing a
467 tape, and a 'mount' after putting a new one into the drive.
468 - If you use an Autochanger, you MUST update your SD conf file
469 to use the new Autochanger resource. Otherwise, certain commands
470 such as 'update slots' may not work.
471 - You must add --with-python=[DIR] to the configure command line
472 if you want Python support. Python 2.2, 2.3 and 2.4 should be
473 automatically detected if in the standard place.
474 - When linking with --with-python, there are a few warnings that
476 - You must either create a new catalog database or upgrade your
477 old database. After installation, run from your scripts
480 ./upgrade_bacula_tables
482 You can also find this script in the <bacula-source>/src/cats
484 - The Director, Storage daemon, and File daemons are
485 Deamons are not compatible with prior versions.
486 All FDs must be upgraded at the same time.
487 - You must add --with-openssl to the configure command line if
488 you want TLS communications encryption support.
489 - Disk seeking during restores does not yet work correctly in
490 all cases, so it is turned off.
491 - Note, with gcc (GCC) 4.0.1 20050727 (Red Hat 4.0.1-5) on an
492 AMD64 CPU running 64 bit CentOS4, there is a compiler bug that
493 generates bad code that causes Bacula to segment fault.
494 Typically you will see this in the Storage daemon first. The
495 solution is to compile Bacula ensuring that no optimization is
496 turned on (normally it is -O2).
497 This same compiler bug has been reported and confirmed with
498 gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) running on
499 an AMD64 CPU. This for the moment, I would recommend that all
500 users of GCC 4.0.1 or greater turn off all optimization when
505 - Security fixes for temp files created in mtx-changer, during
506 ./configure, and during making of Rescue disk.
507 - A new script, dvd-handler, in the scripts directory,
508 which is designed to be used as parameters to Write Part Command and
509 Free Space Command. They need the dvd+rw-tools to be installed
510 (http://fy.chalmers.se/~appro/linux/DVD+RW/) AND, the growisofs
511 program must be patched using the
512 <bacula-source>/patches/dvd+rw-tools-5.21.4.10.8.bacula.patch
513 You must have Python installed to run the scripts.
514 - Part files support: File volumes can now be split into multiple
515 files, called 'parts'.
516 - For the details of the Python scripting support, please see the new
517 Python Scripting chapter in the manual.
518 - The default user/group for the Director and Storage daemon installed
519 by rpms is bacula/bacula, thus you may need to add additional permissions
520 to your database, or modify the permissions of the tape drive. If
521 all else fails, change to using user=root. However, it is more secure