1 =============================================================================
2 2003-01-24 Version 1.29 released
4 - Tightened up permissions on all .conf files to be 640 so they are not
7 - Added prefixlinks=yes/no Job record to specify applying the Where
8 prefix to absolute soft links. Code is not yet passed to FD, because
9 FD would then be incompatible with version 1.28.
10 - Added skeleton of installation for Gentoo release for Patrick Naubert.
11 - Add timer on open() for reading or writing a FIFO file.
12 - Put btraceback and btraceback.gdb in sysbin dir (a bit of polution,
13 but at least dumps will work).
15 - Added "append" all messages to a log to default bacula-dir.conf
16 - Added WriteBootstrap to default bacula-dir.conf
17 - Made smartall.c print "Out of memory" if malloc() fails.
18 - Added pthread btimer routines.
19 - Added timer to FIFO open statement
20 - George was still having problems with VolUseDuration failing.
21 On looking into it, one line of code subtracting 1900 was
22 mysteriously missing from the source -- bizarre.
24 - Yesterday's version corrects all the problems I was
25 previously having, and my production jobs are now completing
27 - Added a #define dev_cap() to test the capabilities bits. I just
28 makes the code a bit shorter and a bit simpler.
29 - Added phase 1 support for an output fifo device. The big
30 difference here is that it is a STREAM device, which means that
31 Bacula will only write to it and not read. Thus, Bacula assumes
32 that the correct "Volume" is mounted and will construct a valid
33 label (without needing the Volume to be prelabeled), and write
35 - Added phase 1 support for input from fifo device (suppress re-read,
36 add empty buffer flag).
38 - Improve printout of dbcheck with # files/path fixing.
39 - Zap SD authorization code after use.
40 - Added <> back to smtp (think about this some)
43 - Massive change to add jcr as the first argument to nearly
44 every db_ call. This is because I was storing the jcr in the
45 db structure, which will not work because everyone shares
46 exactly the same structure.
47 - More cleanups of error termination status in filed.
48 - Found another bug in message.c where %s was missing in JmsgN. A lot
49 of cleanup in message.c
50 - Found places where filename listing was made (restore, verify
51 vol) where the buffer could possibly overrun.
52 - Chain include files on the end of the list so that the
53 order will be correct.
54 - Rewrote mtx-changer to output one slot per line terminated by
55 a colon followed by an optional Volume Tag for the "list" command.
56 Preparation for handling Volume Tags.
57 - My production crash remains elusive. Adding debug code or running
58 under the debugger eliminates the problem. I found a case in
59 message.c where I was extending the message string by two
60 characters to send it to the console. VERY BAD. Rewritten.
61 - Started implementing fifo and program handlers (i.e. streams)
62 in the Storage daemon. Lots to do.
63 - Added a trace capability where trace statements are written
64 to a file. Tmsg(). Hopefully this won't be used much.
65 - Running lots of "production" saved by scheduling a few minutes
66 after the current time -- slow process ...
68 - Removed <> on From and To in smtp.c as suggested by James MacLean.
69 - Added code to suppress spurious error messages during cancel,
70 but I was unable to eliminate all errors -- to be worked
72 - Up size of print buffer from 2000 to 5000.
73 - My production run failed again. I'm beginnig to suspect
74 hardware problems because running by hand or under the
75 debugger always works -- we will see.
76 - Added Update Volume VolFiles to reset correct tape files
78 - Use the mysql_escape_string() rather than internal version.
80 - Cleanup handling of JobStatus by creating a subroutine.
81 - Fix a number of minor things with JobStatus.
82 - Print FD and SD JobStatus on backup report.
83 - Add JCR to findlib -- so now FD stops normally when cancelled.
84 - My production Director segment faulted during the second Job.
85 I haven't been able to track it down. After rebuilding, all
86 jobs finished correctly.
87 - In investigating the duplicated Paths, I found that there
88 were 10,552 of them -- only Path records. After checking the
89 code, I do not see the reason, but I've enhanced the code to
90 print the full path name.
91 - I made a few improvements to tools/dbcheck. Mostly it provides
92 a bit more feedback with verbose mode on when eliminating
93 duplicate filenames or paths.
95 - During four simultaneous backups, the File daemon started
96 detecting buffer corruptions. It turns out to be due to the
97 fact that the smartall.c routines were not thread safe. They
99 - Based on input from James MacLean and team, I eliminated a number
100 of places where printf could be recursively called by using "%s".
101 - It turns out that because of an error of my understanding of
102 mysql_escape_string(), the last argument was taken as the length
103 of the string to be escaped rather than the maximum length. I've
104 now corrected all my code -- Thanks James.
106 - George Motter reported problems with UseDurations, and it seems
107 that there were a number of inconsistencies and problems with
108 FirstWritten and LastWritten. Hopefully for the most part they
109 are now corrected. Also fixed LabelDate if done through Console.
110 - Try to chase down reasons why there would be buffer overruns.
111 Added P & V around referencing last_fname for status.
112 Rewrote find_one.c with MEMPOOL, but not yet tested enough
115 - Give extra margin to converting filenames from Unix to Windows
116 in attribs.c of findlib -- dumb cygwin API doesn't provide for
118 - Added file:line traceback to size_of_pool_memory, check... and
119 realloc in an attept to get closer to the memory overrun reported
122 - Made yet another fix to quoted string -- paths! Thanks to
123 Scott Medlock for reporting this.
125 - Implemented FIFO reading/writing. To do so, simply explicitly mention
126 the fifo file (named pipe) in the Include AND add the new option
129 - Started implementing | and < on Include names.
130 - Changed source to . in cats directory as requested by
133 =============================================================================
134 2003-01-05 Version 1.28b released
135 - Corrected a typo of working_directory in bacula-dir.conf
136 reported by James MacLean.
137 - Fixed the fact that path and filenames in some cases were not
138 being quoted before going into the database. Many thanks to
139 James MacLean for reporting this.
141 =============================================================================
142 2003-01-05 Version 1.28a released
143 - Corrected a missing quote in bacula-dir.conf reported by James MacLean
145 =============================================================================
146 2003-01-05 Version 1.28 released
148 - Implemented Bare Metal Recovery for Linux and manual procedures for Solaris
149 - Now using only a single technotes file kes-1.28 and will add to
150 it as the development goes on.
151 - Wrote a general purpose bi-directional pipe command. This replaces
152 previous use of pipes as well as the run_program previously used.
153 - Make BSRs stop if no more matches are possible.
154 - Allow unliminted number of devices in Storage daemon.
155 - Allow connections to Storage daemon before all devices are initialized.
156 - Better documentation (and btape test command) on using fixed block
159 Changes submitted this submission:
161 - Add cygreadline5.dll to Win32 release -- needed for console
163 - Add scripts make_catalog_backup and delete_catalog_backup that makes and
164 deletes an ASCII copy of the catalog for backup. An example of how
165 to use it is in the <bacula-src/src/dird/bacula-dir.conf file.
166 - Made a nicer column oriented listing of scheduled jobs for "status dir".
168 - Added backup/restore of raw partitions.
169 - Corrected restoration of files in root directory (problem with
170 splitting path from file).
172 - Finally decided to cleanup handling of splitting path and filenames
173 in the cats directory. Now the code is in one place sql.c and it
174 is done using Pool memory, so there are no length restrictions.
176 - Add start of Solaris bare metal recovery
177 - Add Site Visit usage statistics to Web page
178 - Got Bacula listed on www.backupcentral.com
180 - Retest bare metal recovery on Linux 2 times with verify
181 - Cleanup printout of verify differences using proper casting to
182 handle shorts and long longs.
184 - Added --enable-client-only to ./configure
185 - Modified --enable-static-sd to work better and documented it.
186 - Fixed Restore options (never,ifnewer, ...). They now work.
187 - Moved the stored.c Resource lock into the allocation thread so
188 that the same thread sets/clears it. This created a problem on
191 - Added more rescue documentation.
192 - Did a spell check of the Bacula doc.
193 - Modified bscan to use the working directory as specified in the
194 configuration file as the default.
196 - Fixed an important bug reported by George Motter that caused only
197 the last option on an Include record to be used (all previous options
200 - Chase down some inconsistencies in creating Media records from
201 the Pool defaults, and in updating/creating the Pool from the
202 resource. Also fixed the cats DB routines to include all
203 fileds (VolUseDuration was missing for example).
205 - Added building static versions of daemon static-bacula-dir, ...
206 - Fine tuned the rescue (bare metal) code including support for grub.
207 - Added skeleton freebsd rescue
208 - Corrected SQL syntax error in autoprune code (JobType => Type).
209 - Added error messages for SQL errors in autopruning.
211 - Documented Bare Metal Recovery
212 - Create new "rescue" directory containg the Bare Metal Recovery code.
213 - Fiddle with SQL a bit for pruning as apparently the last InitCatalog
214 was pruned after the expiration date eventhough it was the ONLY copy!
215 I'm not sure this is fixed yet.
217 - Allow Director to pass a NUL where string to FD (fix in FD).
218 - Fix installation mv of query.sql.
219 - Make sure btraceback.gdb is not wiped on "make distclean"
220 - Corrected a bug in mod of replace options pointed out by Dave Anderson.
222 - Started adding FileOptions ...
223 - Fixed and incorrect print out of the number of files restored (Jarif).
224 - Finally fixed EndBlock (and file address for Files) in catalog!
225 - Added hostname to tape header as always planned.
226 - Removed Level code (will not implement unless strong demand exists).
227 - Tweaked bscan to print number of errors ignored before first SOS.
228 - Enhanced btape "fill" to permit using one tape and to dump last
229 block before writing and upon read back.
230 - Make fsf_dev() return 0 on fail and 1 on success.
231 - Use new db_get_job_volume_parameters() to enhance Write Bootstrap to
232 contain more info (start/end file/block, file indexes).
233 - Added --enable-static-fd, sd, and dir to configuration to enable making
234 static versions of the daemons.
236 - The btape test program was indicating errors on Adrian's machine
237 using the ATAPI (ide-scsi) tape drive. It turns out that this
238 is a fixed block driver as a consequence, Bacula must be setup
239 to write fixed blocks. btape was not always using the fixed
240 blocks defined in the Bacula config, so that has been updated.
241 It now works fine. A lot of tips added to the Bacula test command
242 to help guide the user.
243 - Documentation of the above significantly improved in the manual.
245 - Added code in watchdog to permit setting and clearing child timers. If
246 the timer expires, the child process is killed.
247 - Modified restore to handle differential jobs.
248 - Added a new test to the btape "test" command
250 - More documentation of new features (week position in scheduler, bsr).
251 - Re-read last block written on full tape to verify it.
252 - Fix segmentation fault with btape fill command due to missing FileSet MD5.
254 - Created better SQL input editing routines str_to_int64 and str_to_uint64()
255 - Pull Client from database in Console restore command.
256 - Create a Unique list of Volumes to be mounted (previously had repeats).
257 - Made many of the SQL searches better by using the ClientId rather than the name
258 in the restore Console command.
259 - Modified reading of a tape to include the VolFile info. Once the
260 tape is past the specified file, reading stops. The BSR now includes
261 both the VolFile and VolBlock. Currently VolBlock is not used.
262 - Handle multiple volumes better by creating a real volume list with all
264 - Display "At prompt waiting for input" in gnome console when at subcommand
266 - Broke ascii to internal and internal to string editing routines out into
269 - Added a readme and an afs-bacula script to the examples directory
270 that permits Bacula to backup an AFS filesystem. Thanks to
271 Lucas Mingarro for the submission.
272 - Added A Sun-desktop autoloader script and Device definition to the
273 examples/devices subdirectory. Thanks to Lucas Mingarro for the
275 - If the WriteBootStrap fails, the job will now be marked in error.
276 - Added a week position to the scheduler syntax that allows you to
277 specify 1st, 2nd, 3rd, 4th, or 4th, or first, ... fifth as a week
278 position specification in front of a day. So if you say
282 the scheduler will start only on the first sunday of the month. The
283 day specification can also be a day range e.g. sun-fri.
284 This code is untested.
285 - Implemented bpipe.h and bpipe.c in src/lib, which defines a bi-directional
286 pipe. This allows executing other programs and sending them information
287 as well as getting info from them.
288 - Replaced the previous pipe usage with bpipes in RunBeforeJob and
290 - The mail program now uses bpipes rather than pipes, which means that any
291 error output will appear in the job output (truly bi-directional).
292 - Modified BSR to handle counts and to stop when no more matches are possible.
294 - Improved error messages in smtp.
296 =============================================================================
297 2002-12-12 Version 1.27d
298 - This is a minor update that fixes a segmentation fault in btape
299 as well as reduces non-important error messages in bscan.
301 2002-11-29 Version 1.27c
302 - Yet another silly error duplicating a column name in the SQLite
303 make tables. No code change, just a make file.
305 2002-11-29 Version 1.27b
306 - Set DB version to 5 in DB make files.
308 2002-11-28 Version 1.27a
309 - Use g++ instead of gcc for testfind in tools
311 2002-11-27 Version 1.27 (26Nov02) released 28 November 2002
313 General: from kes25Nov02
314 - Mostly Cygwin changes
316 Changes submitted this submission:
317 - Updated bdb_find.c to have new calling sequence for db_find_job_start_time
318 - dird/catreq.c edit in Volume name in error messages to SD
319 - attribs.c switch to using the cygwin API to convert from POSIX paths
320 to Win32 paths. This now permits Win32 path specifications in Include
321 statements (all combinations not yet tested). It also avoids the large
322 number of errors seen by Lutz if a Win32 path is specified in the Dir.
323 - Update testfind help and remove set_attribsEx debug code.
324 - Build testfind as default.
325 - Turn off debug message in stored/askdir.c
327 General: from kes21Nov02
328 - Another change in the database. You MUST either re-initialize
329 your database or use the appropriate ./alter_xxx_tables in
330 the src/cats directory.
332 Changes submitted this submission:
333 - Additional documentation.
334 - Added MaxVolFiles to the database (not yet implemented in code).
335 - Increased the database version from 3 to 4.
336 - Change VolMaxBytes to MaxVolBytes, which is much more descriptive.
337 - Compressed unnecessary spaces out of a lot of SQL statements.
338 - Changed many %d to %u where unsigned integers are used.
339 - Added the Bacula version and build date to each backup output.
340 This will help knowing what version of Bacula was used.
341 - Implemented VolUseDuration MaxVolBytes, MaxVolFiles, and MaxVolJobs
342 based on maximums set in the Volume (Media) record rather than in the
343 resource. This means the values can be individually set on a Volume basis.
344 - Allow commas separating Include options (this was a subtle bug).
345 - Added maximum string length argments to a number of subroutines to
346 prevent buffer overflows. Most notably was do_prompt().
347 - Replaced MANY occurrences of strcpy() with bstrncpy(), which guarantees
348 both that the length is not exceeded and that the string is properly terminated.
349 This has a risk of a certain destabilization -- as does the changes to
351 - In cram-md5 routine use my_name if gethostname() returns an error.
352 - Increase timeout from 2 minutes to 3 minutes in authorization code.
353 - Check the full string including \n in authorization.
354 - Throw away any response longer than MAXSTRING.
355 - Added a number of additional error checks on subroutine return statuses.
356 - Replaced as many lld's with edit_uint64 as I could find.
358 - Added MaxVolBytes to Pool record - had forgotten it. Updated DB version.
360 - Update manual to document new Pool/Volume attributes
361 - Correct make_sqlite_tables (typo, plus missing value in Pool)
362 - Fix bizarre behavior in gnome-console and console when auth fails.
363 - Add Pool attribute query
364 - Add a few more error messages in askdir.c
365 - More strcpy() conversions to bstrncpy().
367 General: from kes18Nov02
368 - Did a number of cleanups of string copying to limit the length
369 and prevent buffer overflows.
371 Changes submitted this submission:
372 - Added a mutex arount the gethostbyname() so that multiple simultaneous
373 jobs get the correct address.
374 - Added the MaxVolJobs to the Media alter tables script for MySQL (forgot it).
375 - Changed arg to db_find_job_start_time to be POOLMEM for returning the string.
376 - Add the new VolUseDuration and MaxVolJobs to all the db_ routines.
377 - Use bstrncpy() in most places in the db_ routines to prevent a bad
378 database from crashing Bacula (self protection).
380 General: from kes13Nov02
381 - You MUST either re-initialize your databases or use the
384 ./alter_sqlite_tables
385 in the <bacula-src>/src/cats directory to modify your database tables.
386 - Major improvements to dbcheck including an interactive mode.
388 Changes submitted this submission:
389 - Implemented VolumeUseDuration and MaximumVolumeJobs which control
390 when a tape can be marked Used.
391 - New tape status "Used" means it was used and cannot be used any more.
392 - Defined utime_t which is 64 bit epoch time in seconds. btime_t is
393 64 bit epoch time in microseconds.
394 - Created alter_xxx_tables to add new columns (VolUseDuration, MaxVolJobs) to
395 database. Incremented db version.
396 - Changed a few subroutine names concerning dates to be more descriptive.
397 - Fixed several places where the last filename was not stored in JCR in
398 FD verify_vol.c and restore.c
399 - Major update to dbcheck. Unfortunately I used subselects, which work
400 perfectly fine in SQLite, but not at all in MySQL. I must now rework
401 it for MySQL. What a pain!
402 - Removed "Database found" from configure output. It was no longer used or valid.
403 - Corrected doc --working-dir => --with-working-dir Thanks to Tuck for
405 - Added the database name to the error message for mismatched DB version.
406 - Commented out GMP and CWEB from configure as they are not currently used.
408 General: from kes09Nov02
409 - Converted the manual over to a new format written in wml. This
410 gives navigation buttons on the top and bottom of each page
411 as well as a standard page size.
412 - Updated the main Web site, providing a menu bar to the left
413 and much better organization and presentation of the information.
414 - Added code to recognize a Volume written with a larger block
415 size than specified. The code automatically adjusts.
417 Changes submitted this submission:
418 - Created a new scripts directory and moved most of the scripts
419 previously in the main directory there. This cleans things up
421 - Moved the randpass stuff into autoconf.
422 - ensure that the generic make_bacula_tables and drop_bacula_tables
424 - Added code to filed to allow it to be run from inetd. Just add the
425 -i option. I have not tested it.
427 General: from kes30Oct02
428 - Alex found a problem with GZIP compression -- fixed.
429 - bacula stript fixes.
430 - Segment fault in Director fixed.
431 - Added openbsd to platforms
433 Changes submitted this submission:
434 - GZIP compression was broken for large files due to a variable that
435 is changed during the compression. This was relatively easy to fix.
436 However, there were a number of fixes required to make GZIP and SPARSE
437 files work together. Found one more place in bextract where SPARSE_GZIP
439 - During testing of the above, I ran into the restore problem of multiple
440 FileSet records. Fixed by including the FileSetId and the MD5 on the
441 selection string, then always using the FileSetId. It is a bit
442 confusing for the user, but ...
443 - Francis found a problem with bacula.in (fixed - thanks)
444 - I found another problem with bacula.in, so now it REALLY should work
446 - Added the Replace options code for restores. Not tested.
447 - Fixed an ugly stack overrun bug in reading the config file
448 that has been in for a long time. I found this in testing on FreeBSD
449 where the Director seg faulted.
451 General: from kes29Oct02
452 - Major change to the bnet communications routines.
454 Changes submitted this submission:
455 - Modified the bacula script to use pid files, so this script should
456 now work on more platforms. Updated devel_bacula as well.
457 - Added the full GNU hostname on the configuration print output.
458 - Added gettimeofday() to configure, and tweaked a few variables for
460 - Added a chapter to the manual on Porting Bacula to other platforms.
461 - Documented in Tips how to use the WriteBootstrap record.
462 - Modified bc_types.h to error if 64 bit types are not found.
463 - Pass replace option for restore to the FD (no code to use it yet).
464 - Modify the FD to pass back the GNU OS string as well as the DISTNAME
465 and DISTVER. This needs to be put in the Client record in the catalog.
466 - Major reworking of the bnet routines to eliminate the zero length which
467 previously indicated a signal. This risks to create some subtle communications
468 bugs. The changes now permit blank lines to be sent from the user to the
470 - Found and corrected a few more places where the Win32 attributes were not
472 - Permit spaces in the Where string (restore) by bashing/unbashing them.
473 - Handle quotes correctly in the Console program (actually Dir ua code).
474 Previously they were not handled in the middle of a string.
475 - Corrected two error message (error reading file), which previously stated
476 it was a network error.
477 - Reworked the files in the binary Windows release. Removed unused programs
478 and added a README with the copyright as suggested by John. Also added
479 console.exe to the release.
480 - Found and corrected an autoloader mount problem where the wrong tape
481 was specified. Previously it looped, then gave up. Now it correctly
482 detects the volume is not correct and zaps the Slot in the catalog.
484 General: from kes23Oct02
485 - I have mainly worked on getting all the details of a Restore
486 to work correctly (new tape format, support for Win32
488 - Trademarked name Bacula.
489 - Implement Bacula tape format 11 (1.0 Immortal). This format
490 will be maintained forever.
491 - Accept Any Volume is yes by default. This modifies Bacula's behavior
494 Changes submitted this submission:
495 - Corrected a bug on FreeBSD where CFLAGS would get a "yes". I was
496 unable to reproduce this, but a user confirmed the correction.
497 It was a problem with detection of largefile support, which FreeBSD
499 - Added a new "license" chapter in the manual. Re-licensed a number of
500 library routines (bnet.c, hmac.c md5.c, cram-md5, ...) with LGPL so that they
501 can be used in proprietary software to access Bacula if so desired.
502 - Move Director's AutoChanger doc to correct location (in Storage
504 - Document why trademark (to protect compatibility).
505 - Implement and turned on Bacula tape format 11 (also BB02). This
506 format moves the VolSessionId and VolSessionTime from each record
507 header into the Block header. This is MUCH more efficient when reading
508 records as now whole blocks can be skipped.
509 Also added JobStatus in End Of Session record, and added MD5 for
510 FileSet, which is necessary to insure uniqueness.
511 - Implement a new Bacula time format for btime_t. It is Epoch time
512 in microseconds (i.e. base 1 Jan 1970 in microseconds).
513 This replaces previous floating point times.
514 - Added Win32 extended attributes. In doing so, I moved all attribute
515 handling from src/lib into src/findlib. Added new streams for
516 Win32 attributes and for GZIP Win32 attributes.
517 - Modified "Accept Any Volume" so that it really permits any volume
518 in the pool to be mounted.
519 - Removed "Mount Anonymous Volumes" from Storage daemon config.
520 - Implemented sparse files. You must add "sparse=yes" on the include line
521 for it to be enabled.
522 - Print "None" in backup summary rather than 0.0% if there is no compression
524 - Improved error checking in daemon connection/authentication code to prevent
525 garbage data from harming a Bacula daemon.
526 - All daemon tools MUST have a config file.
527 - Completely strip drive specification on Win32 if a Where prefix is specified.
528 - Corrected DB info for writing to files. Now the File Address is stored
529 in File-Block variables in the catalog.
530 - All Storage daemon tools now use common code for acquiring/reading
532 - If a device is unmounted, report it even if the device is not open. This
533 will help inform users who have BLOCKED Bacula by unmounting a drive.
536 =============================================================================
537 2002-10-12 Version 1.26 (10Oct02)
538 General: from kes10Oct02
539 - Changed Job name conventions to avoid : which is an illegal
540 character on Windows.
542 Changes submitted this submission:
543 - Added check for inet_pton to configure.in. If it does not
544 exist (e.g. Windows) use inet_aton
545 - Documentation on GZIP.
546 - Another restore doc example.
547 - Documented btape fill command.
548 - Set default restore directory from /tmp to /tmp/bacula-restores
549 - Add additional no find error messages to sql_get.c
550 - Creating a bootstrap file on Windows failed because the Job name
551 contained colons which are illegal on Windows. Replaced the
552 colons with periods. This corrects the Windows restore problem.
553 - Print number of files to be restored in "restore" command.
554 - On Windows systems, if there is a prefix, completely eliminate
555 any drive: at the beginning of a path.
556 - Minor corrections to the tree routines to handle Windows
557 files such as c:/ better. Previously it insisted on /c:/, which
558 would then not be found in the catalog for a "dir" command.
559 - Modified cd command in restore to try /c: if c: fails.
560 - Add a new S_ISWIN32 bit to the st_mode word so that low level
561 routines that create files do not print error messages.
562 - More work must be done to restore all Windows files correctly.
563 Currently the following bits are not handled:
567 Also, all the dates are not properly restored.
569 General: from kes09Oct02
570 - More documentation.
571 - Implemented new fill command in btape that permits filling
572 a tape and then reading it back to ensure that it works
575 Changes submitted this submission:
576 - Added ReadBytes to JCR, which contains Job bytes read by
577 FD, JobBytes contains compressed output of FD.
578 - Modified FD to pass back JobStatus, ReadBytes, JobBytes, ...
579 for backup jobs. This is upward compatible.
580 - Modified backup termination status report to contain the
581 compression ratio 100 * (1 - compressed-bytes/uncompressed-bytes)
582 This will always be zero if no software compression was
583 done, or if you are using a version 1.25 or older FD.
584 - Pickup Job termination status of FD in backup, so now
585 the termination status represents the state of all three
587 - Implemented new fill command in btape that permits filling
588 a tape and then reading it back to ensure that it works
591 General: From kes06Oct02
592 - Implemented first major cut of bscan -- program to scan a tape
593 and recreate a Bacula catalog.
594 - Fixed lseek() relative negative seek that prevented writing multiple
595 jobs to a File volume.
596 - Implemented BB02 tape format -- currently turned off for writing.
598 Changes submitted this submission:
600 - Implemented new BB02 tape format, which moves the VolSessionId and
601 VolSessionTime from the record headers into the Block header. It
602 is currently turned off.
603 - Implemented new btime time/date format on the tape. This is currently
605 - Added JobStatus to EOS tape label. This is currently turned off.
606 - Changed start_block, ... to StartBlock in JCR for uniformity.
607 - Print a message telling which tables were dropped/made with
608 ./drop_bacula_tables.
609 - Return JobType and JobLevel in db_get_job_record().
610 - Implemented get_current_btime(), which returns btime_t.
611 - Bump debug message max size to 2000 bytes.
612 - Add btime_t serial/unserial routines.
613 - Rework all tape label routines to integrate btime and other
614 label format changes (currently turned off -- for writing).
615 - Fix lseek() to always be positive -- block.c
616 - Consolidate record, block, and label major #defines in block.h.
617 - Major implementation of bscan. Some more minor tweaking will be
618 necessary. E.g. add multiple records for multiple simultaneous
620 - Cleanup lseek() to always use off_t as second argument.
621 - Add new "created" tape label (EOT_LABEL). This generates a callback
622 to the read_records() routine when the final end of all tapes is
623 reached allowing proper termination and updating of the media records.
625 General: From kes25Sep02
626 - Added means to bind servers to specific address.
629 Changes submitted this submission:
630 - Added DirAddress, FDAddress, and SDAddress records to the corresponding
631 resources that allow the server to bind to a specific address
632 rather than any address. This security improvement was suggested by
634 - Eliminated deprecated "Address" record from all sample Storage resources.
635 - Made quite a lot of improvements to the bscan program. Much more
636 to do. Aside from details, it is able to recreate a database
637 from which you can do a restore.
638 - The s option is not accepted on all versions of ar, so replaced it
639 by an explicit ranlib call.
640 - Fixed a bug that caused the Director to crash if you rudely bring
641 down the console program in the middle of an SQL command.
642 - Fixed a bug (missing break) that caused scheduled Admin jobs to
643 be listed as "Unknown type".
644 - Removed old code from Storage daemon that used a separate FD port.
646 General: From kes14Sep02
647 - Better key generation on non OpenSSL systems.
648 - 64 bit file address support if available.
649 - Implement autochanger for reading
650 - Lots of cleanup of tape reading code.
651 - Automatically create all Pool resources when Bacula starts.
653 - Implement autochanger use via the Console commands "add" and "label"
654 - Begin implementation of a regression script
655 - Write bootstrap after ever job
657 Changes submitted this submission:
658 - After noticing that the non OpenSSL random key generator was
659 not good on Solaris, John wrote a very nice randpass generator.
660 - Integrated John's makeSessionKey for generating the FD->SD
662 - Statically link tools (doesn't work on Solaris).
663 - Document how to debug Bacula (new chapter in the manual)
664 - Remove unneeded printing of error message in sql_get.c
665 - Free SD description config record (previous oversight)
666 - Bash spaces when sending Director names, and unbash them when
668 - Ensure no divide by zero in rate computation in backup.c
669 - Implement WriteBootstrap in backup.c
670 - Allow tape reading to request volume information for any
672 - Create all Pool resources at startup.
673 - Show only Backup jobs in Restore listing of last 20 Jobs.
674 - Handle 64 bit stat packets in restore.
675 - Don't do shell expansion on store_dir in config if string
676 starts with |. This is used for piping the program for the
678 - Ignore SIGHUP -- Déjà Gnu was triggering this.
679 - Implement autochanger for reading, many changes to
680 acquire_device_for_read()
681 - Implement callback for reading Volume. Implement in bextract,
686 - Move autochanger code to new subroutine in mount.c
688 =============================================================================
689 2002-09-05 Version 1.25a (05Sep02) Released
690 - Fix unitialized stack variable in bextract so it
691 will always read the currently mounted tape.
693 =============================================================================
694 2002-09-04 Version 1.25 (01Sep02) Released
696 - Added .cvsignore files in each directory to cut down on the
697 CVS output when scanning directories and finding Makefiles
698 and such which are not part of the CVS tree.
700 Changes submitted this submission:
701 - Cleaned up a lot of the error messages in Verify, including
703 - Had to remove some of the "automatic" error message printing
704 in the DB because they are in fact things that come up
705 for Verify but not really errors.
708 2002-08-30 Version 1.25 (30Aug02) Beta
710 - Fixed a bug where only the first file was restored if
711 it is hard linked. The other links were lost.
712 - In some cases of restoring to alternate directories, softlinks
713 were not properly restored.
717 - Bacula backups now run up to 12 times faster than version 1.24
718 - Bacula can run multiple simultaneous Jobs.
719 - Had to turn off TRANSACTIONS in SQLite because it doesn't work
720 with multiple simultaneous jobs (I'm working on this).
721 - Added a better Job printout for Restore Jobs.
722 - Added a save/restore Rate to backup and restore jobs. This
723 does not yet subtract out operator wait time so it will be
724 underestimated it the Job waits on the tape (mount/label).
725 - Fixed a major bug caused by free()ing a buffer twice in
726 the Restore code. This made the SD more or less useless after
727 any restore Job. Arrggg!
728 - DIR - SD protocol changed, both must be updated at the same time.
729 - DIR - FD protocol changed in upward compatible way. Upgrade of
730 FD not required, but recommended.
732 Changes submitted this submission:
733 - Added bell to "make" when errors are detected.
734 - Changed default compile option from -g to -g -O2
735 - Additional documentation as usual -- much based on questions or
736 feedback from users. Thanks.
737 - Fixed example config files to use new syntax and to have a
739 - Define ETIME to ETIMEOUT for Irix
740 - Added JCR filed to DB structure permitting direct printing error
741 messages from within the Database subroutines.
742 Some error messages may be printed twice as a consequence.
743 When I see them or someone reports them, I will remove the double.
744 - Added JCR to the bsock structure. This allows direct printing
745 of network errors from within the network code.
746 - Made most "trivial" debug messages have level 100 or greater. This
747 allows for easier debugging of new code using the range below 100.
748 - Began replacing all Emsg() with Jmsg() using a NULL as the JCR in
749 Jmsg() is the same as Emsg().
750 - Fixed several crashes in the Director because of malformed config files.
751 - Added SpoolAttributes to Job resource.
752 - Pass CatalogFiles to SD. If set to no, the attributes are dropped
753 within the SD rather than being sent to the DIR.
754 - Cleaned up a number of information/error messages in user interface.
755 This includes eliminating the "pretty please" response in favor of
756 "yes/no" to delete volumes and pools.
757 - Cleaned up quite a number of uninitialized variables reported when going
758 to -O2, most were harmless, but a couple could cause problems.
759 - The cd command in restore was not working correctly (it didn't allow some
761 - Fixed a segmentation violation in the directory tree handling code in
763 - Handle a few error conditions in the restore command better.
764 - Permit "Where" to be set to nul in modification of a run command.
765 - Clarified the error message for Verify if an InitCatalog has not previously
766 been done -- thanks Chuck.
767 - Add MaximumConcurrentJobs to FD.
768 - Added code to mem_pool to die if a buffer is released twice.
769 - Lots of work done on SD for multiple simultaneous jobs. Split device.c
770 into device.c, mount.c and acquire.c
771 - Started writing new lock code for SD, but may back it out -- needs more
772 thought. Current code works, but is too complicated. Maybe can simplify it.
773 - Cleaned up the SD tools code quite a bit. Added bootstrap to all tools.
774 - Ensure that tape session labels are not split across two blocks. This makes
775 reading them back much easier.
776 - Fixed another restore bug concerning tape labels on multi-volume saves.
778 =============================================================================
779 2002-08-14 Version 1.24
781 - Made a new tools directory.
782 - Moved smtp into the tools directory.
783 - Created a dbcheck program in the tools directory that
784 checks for certain database errors and if requested fixes them.
785 - Put the database link flags on DB_LIBS so that it now only is
786 on binaries that actually need it.
787 - Document dbcheck and testfind programs.
788 - Move testfind to tools directory.
789 - Check for FileSet after getting Client name in Restore command.
790 Modify all necessary SQL commands to accept FileSetId.
791 - Add a db_get_fileset_record in cats directory.
792 - Correct list last 20 files concatenation to be MySQL
793 dependent. They aren't SQL standard. Use SQL standard || for
795 - Modify dir command in file selection to produce a long form
796 listing of the file/directory name.
797 - Add platforms/irix/*.in files to CVS
798 - Make Console command scanner accept quoted value fields.
799 - If after selecting Client to restore, there are multiple
800 FileSets, ask user to select one.
801 - After obtaining JobIds for restore, ensure that there is only
802 one MediaType, and select a Storage resource to be used.
805 - Made restore actually work.
806 - Made console and gconsole be configured (requested by Chuck)
808 - changed fs in Job record to fileset for clarity
809 - The console run command was not properly picking up the command
810 line arguments. Fixed!
811 - Changed add/remove/rm to mark/unmark
812 - Volume keyword VolumeName was wrong, changed to Volume (in restore bsr).
813 - Pass jcr to parse_bsr, and if non-NULL, it will output error messages
814 to Job stream rather than Emsg.
815 - Modified lexical scanner to include caller context so that jcr can
816 be stored in lex context allowing error messages to be properly
818 - Renamed the Job message chain to be jcr_msgs. This eliminated the
819 previous confusion with the default value, now named jcr->messages.
820 - Implemented multi-volume bsr records.
821 - Implemented pm_strcat() and pm_strcpy() to cat/add to memory pool
822 buffers in same way as strcat/strcpy, but expanding buffer.
823 - Modified db_get_volume_names to handle arbitrarily long Volume list.
826 - If the Console program terminated during the printing of messages,
827 the message file was left locked. This was corrected by using the
828 new read-write lock code.
829 - Implemented Pw() and Vw() for obtaining and releasing a write lock
830 using the rwl_xxx routines.
831 - Deleted some old pthread_mutex code from mysql.c
832 - In making the Irix port, I previously corrected the base64 routine so
833 they were not sensitive to the machine definition of char. This made
834 them incompatible with previous versions invalidating MD5 signatures
835 which are in base64 format. I have now corrected this, making the
836 routines compatible with the previous version but also insensitive
837 to the default definition of char.
838 - Removed some unnecessary NPRT() usage in signal.c (pointed out by
840 - Add back BNET_NONO for compatibility with older File daemons.
841 - Implement runing a restore Job in the restore command.
842 - Make installation of query.sql unconditional. To prevent you own file
843 from being overwritten, give it a different name.
844 - Made parse_command_args() in ua take command from ua->cmd, this
845 simplifies it and allows usage in other places -- e.g. building
846 arguments for created run command in restore.
847 - Cleaned the naming of s_full_ctx to be s_jobids.
848 - Write the bsr created in restore to "working-directory"/restore.bsr
849 - Fix bugs in command line scanner in run command -- also some misplaced
851 - Eliminate static cmd in ua_server.c
852 - Eliminate segmentation fault when using the Run command in the
853 Console -- forgot to init_msgs().
856 - Did a good amount of documentation.
857 - Added sql_cmds.c to CVS, forgot, pointed out by Chuck.
858 - Added new platforms/irix directory to CVS
859 - Turn off transaction debug code in sql.c
860 - Reworked the scheduler so that it handles the same Job starting
861 twice in the same hour. Previously it took one or the other.
862 - Tightened up the "slop" in the timings that I programmed to ensure
863 that the same job isn't run twice or that no job was missed.
864 - Increase the sleep time.
865 - Used job_type_to_str() in status so that Admin jobs are correctly reported.
866 - Add internationalization message chars to a number of routines
868 - Make the watchdog timer clear the mutex when it exits.
869 - Some tweaks to the Restore command. It needs fixing when a Job spans
873 - Initial cut at adding Irix File daemon support.
874 - Lots of work on the restore command.
875 - Take a stab at eliminating the "broken pipe message"
876 when the console program prematurely terminates.
877 - Reimplemented transactions for SQLite by keeping
878 them all in the same thread.
879 - quit in the Console program now waits for Bacula to
880 quit. To immediately quit, you must enter .quit
881 - Eliminated BNET_EOF -- this COULD have some negative consequences
882 on interdaemon communications.
883 - Define Job termination status for Admin jobs.
884 - Write new bstrncpy() function that guarantees that strcpy is
886 - Fixed command input in ua_input.c to accept quoted items as a
890 - The changes that added indexes to the SQLite database were
891 lost -- thanks to Chuck for pointing this out. Redone.
892 - Fixed a problem quoting strings in SQLite. This showed up
893 as database errors with files containing ' or " in the filename.
894 - Implemente restore command -- still in progress.
895 - Added indexes to all fields in SQLite that exist in MySQL.
896 - Moved unused immortal files from src/lib to src/immortal.
897 This will permit splitting depkgs.
898 - Started work on adding embedded MySQL. Cannot get the tables
899 to work for the moment. Please don't try to use this option.
900 - Convert to using single quotes for enclosing all strings.
901 - Implement correct quoting algorithm for SQLite strings.
903 - Started centralizing SQL statments in the Director in sql_cmds.c
904 - Changed a number of M_ABORTs to M_ERROR_TERM so that program terminates
905 but does not produce a dump.
906 - Allow wild-card matches in bsr for Client name, and Job.
907 - Change OflineOnUnmount=no as default.
908 - Fixed improper printing of filenames containing a space in bls.c
909 Thanks to Carlos for reporting this.
911 ===========================================================================
912 2002-07-26 Release 1.23a
913 - Fix segmentation fault is FD status.
914 - Turn off TRANSACTIONs for SQLite.
916 ===========================================================================
917 2002-07-23 Release 1.23
919 - Updated Bacula to handle some minor differences in MySQL 4.0.2
920 (still works with older MySQLs).
921 - Updated MySQL documentation to correct some minor errors.
922 - Added kernstodo to CVS
923 - Fixed create_mysql_database, which I recently accidently broke.
924 - Disallow zero length volume names in Console program.
925 - Create alter_mysql_tables and alter_sqlite_tables for conversion
926 from 1.22 table format to 1.23 table format.
929 - Investigation of SQLite performace problems reported by Chuck.
932 - made root@localhost the default email address because many smtp
933 servers reject root but accept root@localhost
934 - Added an autochangers chapter to the manual.
935 - Documented most of the new features in 1.23
936 - Modified the SQLite interface code to start a transaction at the
937 beginning of a job and commit it at the end of the job. It
938 also commits it after 10000 changes. Hopefully this will
940 - Set the default cache pages from 2000 to 10000 for SQLite (i.e.
941 about 15Megs of memory) hoping to improve performance.
942 - Terminate last filename referenced in FD prior to copy to
943 avoid race problem with multiple threads and no locking.
944 - Enhanced the status output to include the JobType
945 - Print an error message if the email program terminates in error.
946 - If your machine has an MTUNLOCK, do it before doing an OFFLINE to
947 ensure that the door is unlocked.
948 - Added code to stored/append.c to spool attributes. This is in
949 a testing stage and must be explicitly enabled.
950 - Added a no_attributes variable to stored/append.c that prevents
951 the attributes from being sent to the Director. As yet, no way
953 - Modified SQLite code so that after 10000 updates any transaction
954 is committed, then restarted. This keeps it from using too much
956 - Set the default cache size to 10000 pages (previously 2000).
957 - Fixed a segmentation fault on Sun due to no default value for
959 - Added the same indexes to SQLite that I exist in MySQL. This
960 VASTLY reduces CPU usage for lots of inserts.
961 - Added spooling to bnet_send().
964 - The following two changes were prompted by questions/suggestions
966 - If you have "AlwaysOpen = no" in your SD Device
967 resource, Bacula will free() the drive when it
968 is finished with the Job.
969 - If you have "Offline On Unmount = yes", in your
970 SD Device resource, Bacula will offline (or eject)
971 the tape prior to freeing it.
972 - Added Maximum Open Wait to allow open() to wait if drive is busy.
973 - Added RunBeforeJob and RunAfterJob records to Job records.
974 This permits running an external program with the following editing
987 - Added autochanger support to devices.c
988 - Allow user to change Slot in the Volume record.
989 - Implemented code in lib to run an external program
991 - Implemented a changer script for mtx.
992 - Currently the changer commands used are:
993 loaded -- returns number of slot loaded or 0
994 load -- loads a specified slot
995 unload -- unloads the device (returns casette to slot)
996 - Other changer commands defined but not yet used:
997 list -- returns list of slots containing a cassette
998 slots -- returns total number of slots
999 - Implemented ChangerCommand, specified in the SD Device
1000 resource, permits editing of:
1002 %a = archive device name
1003 %c = changer device name
1010 - Implemented MaximumChangerWait default 120 seconds. It is
1011 specified in the SD Device resource.
1014 - Moved techlogs from main directory to be subdirectory of doc
1015 - Added code for strerror_r, and detection of gethostbyname_r().
1016 - The protocol between the Director and the SD has changed.
1017 - Major rework of SD tape mounting to prepare for Changer commands.
1018 - Separated Update Media record and Create JobMedia record. These
1019 are done from the SD by calling the Director. Need separate Create
1020 JobMedia so that when a Job spans a volume, all other Jobs writing
1021 the same volume will also have JobMedia records created.
1022 - Added message to user indicating selection aborted if he enters .
1023 to a Console selection request.
1024 - Create a jobstatus_to_ascii() routine for use in status commands.
1025 This makes a single routine from three separate pieces of code.
1026 Updated the code to properly handle more (all) termination statuses.
1027 - Tried to fix the gnome-console to handle history a bit better. There
1028 are still some problems with focus not being properly set to the edit
1029 box after history replacement.
1030 - Removed the shutdown() from bnet_close() hoping to fix Console termination
1031 errors that are occassionally seen -- no luck.
1032 - Moved add_str() to lib/util and renamed it add_str_to_pool_mem() so that
1033 it can be used to edit Job termination codes and Changer command codes.
1034 - Reworked how the SD mounts tapes (in device.c) so that control passes through
1035 only a single routine. The logic is much simpler than previously, and now
1036 adding AutoChanger code is straight forward.
1037 - Made SD tape mounting much more fault tolerant -- more cases retry instead
1038 of terminating the Job.
1039 - Wrote code to edit_device_codes() for Changer commands. Not yet fully
1041 - Added a ChangerDevice directive to the Device resource. Still need to add
1045 - This documents what I did while on vacation.
1046 - A fair amount of documentation.
1047 - Implemented Verify Volume to Catalog (needs renaming)
1048 - Modified the database to include new MarkId field as
1049 well as Counters. Database level is incremented from 1 to 2.
1050 - Added first cut of managing autochangers by implementing Slot in DB.
1051 - Fixed a good number of M_ERROR messages to be M_FATAL where appropriate.
1052 Also converted a number of Emsg() to Jmsg() permitting better Job error
1054 - First cut at implementing a general packet passing mechanism for bsock
1055 to replace printf and sscanf for passing data.
1056 - Made make_xxx_tables and drop_xxx_tables and create_xxx_database
1057 for bdb as well as sqlite. With this each database has the
1058 same set of scripts (with the exception that MySQL has grant_privileges).
1059 - Modified Makefile to only install the database scripts for the
1060 database that you are using.
1061 - Updated the pdf script to include all the html files.
1062 - Did quite a lot of documentation.
1063 - Made Bacula compile correctly with DEBUG turned off.
1064 - Implemented Pmsg() macros that permit using the debug print
1065 routines even with DEBUG off.
1066 - Updated job_cancelled() macro to handle JS_FatalError.
1067 - Changed db_find_last_full_verify() to db_find_last_jobid(). This
1068 permits working with Verify Volume to Catalog.
1069 - Removed TRANSACTION code from incrementing NextId for SQLite.
1070 - Implemented quick and dirty (not fully functional code) so that
1071 console program does not die if ctl-Z is entered.
1072 - Cleaned up backup.c a bit adding a bail_out goto to ensure proper
1073 handling of errors with minimum code.
1074 - Added passing Slot back and forth to Storage daemon with Volume info.
1075 - Implemented Slot in Media record in DB.
1076 - Implemented first cut of Counter resource in dird_conf.c. A counter
1077 resource is part of the Pool resource.
1078 - Implemented necessary database record. However, the resource doesn't
1079 yet create a DB record.
1080 - Implemented onefs (One File System) and recurse options on Include
1082 - Implemented autopruning of Verify and Restore Jobs.
1083 - Did a better job of calculating thread_concurrency() for Sun systems.
1084 This permits better multi-threading allowing all the threads to run
1086 - Implemented a wait_for_storage_daemon_termination(), which is used by
1087 backup and verify volume.
1088 - Clarified a number of UA prompts, and add feedback where certain commands
1089 completed but printed nothing. (More work to be done here).
1090 - Added a pile of new code to implement Verify Volume to Catalog. It is sort
1091 of a hybrid of "restore" and "verify" in that it actually reads the tape,
1092 then compares it to the catalog. Need Verify Volume to Client.
1093 - Added a good number of checks for job_cancelled() this should permit
1094 quicker and more reliable cancelling of jobs.
1095 - Fixed one bug in restore where I used ofile instead of lname, which means
1096 that if the lname was too long, the memory was not properly reallocated.
1097 - Cleaned up find_one.c in findlib quite a bit.
1098 - Link smtp static so that it works even if the libraries are messed up.
1099 - If mail host is not found, retry with local host in smtp.
1100 - Added slot and stream to the bootstrap record processing.
1101 - Do offline on tape cartrige for unmount command. This can be turned off
1102 by the user in the config file. OffLineOnUnmount in Device resource.
1103 - Implemented AutoChanger = yes/no in Device resource.
1105 ===========================================================================
1106 2002-07-07 Release 1.22
1107 - All the basic Restore code to handle the boostrap file is
1108 now implemented with the exception of the Console Restore command.
1109 - Retained compatibility with previous Restore providing no
1110 bootstrap file is specified. However, the old code (JobId based)
1111 will go away in a future release.
1112 - Fixed a number of segmentation faults in the Console program due
1113 to printing of NULL pointers -- thanks to Chuck and his Sun for
1114 finding and reporting them -- mostly in ua_output.c.
1117 - Null pointers now are printed as *None* if NPRT() is used.
1118 - At the request of Phil, all resources are now chained in in the
1119 order they appear in the config file.
1120 - Implement Bootstrap record in the Director's config file, which
1121 allows you to specify a predefined bootstrap file for Restore Jobs.
1122 - Allow Bootstrap on the Restore record. This is deprecated.
1123 - Implemented code to pass the Bootstrap file, if defined, to the
1124 File daemon, then from the File daemon to the Storage daemon.
1125 - Added ability to set Bootstrap file in the Console when running a Restore.
1126 - Allow scan_error() routine to be passed to lex_open_file(). This permits
1127 using lex in the Storage daemon without worrying that it will ABORT on
1128 a syntax error. More work is needed to direct the error messages correctly.
1129 - Improved error messages a bit when config syntax errors are found.
1130 - Tested and corrected some errors in match_bsr.c
1131 - Removed askdir.c from bls and bextract by defining dummy entry points.
1132 - bextract now has bootstrap pretty well integrated.
1133 - Changed bextract ABORTs into FATAL and exit(1) or ERROR_TERMINATE.
1135 - Eliminated at least one lld and replaced it by edit_uint64()
1136 - Eliminated a few more _PROTO()s.
1137 - Corrected a problem with the SQL for in query.sql for
1138 Listing Volumes to Restore All Files
1141 - Additional documentation.
1142 - Reduce the time the jcr mutex is locked in lib/jcr.c
1143 - More null pointer printing fixes in lib/parse_conf.c (debug output only).
1144 - Added daemon filename to Kaboom message so I know what daemon died.
1145 - Fix big bad bug introduced in watchdog.c last update that caused
1146 a segmentation violation (forgot to check for NULL pointer).
1147 - Add a bit more info to bad returns from Stored when starting
1152 - Fixed backup scanning forgot one T_STRING -> T_UNQUOTED_STRING
1153 - changed all rwlock_t to brwlock_t to avoid conflicts with
1155 - Added NPRT() macro to allow printing of NULL pointers, which
1156 segment fault on Solaris.
1157 - Cast printing of pid_t to int for Solaris compiler.
1160 - Added expect argment to lex_get_token().
1161 - Added tree.c and tree.h to lib directory.
1164 - Improvements to the bootstrap compiler
1165 - Implemented first cut of bootstrap code in the Storage daemon
1166 - Modified the authentication code to be more explicit during
1168 - Added a few more debug message numbers with more arguments (Dmsg10, ...)
1169 - Added more and more precise error messages when authentication fails.
1170 - Implemented new "expect" codes in the lexical scanner that allows
1171 the caller to specify what he wants.
1172 - Added integer, positive integer, 64 bit integer, and integer ranges,
1173 and name scanning to lex.
1174 - Implemented new lex code in parse_conf.c, this reduces significantly
1176 - Hopefully fixed a watchdog race bug that caused the watchdog to time
1177 out a line after 1 hour rather than 6 days.
1180 - Implemented a Bootstrap file parser and matcher.
1181 - Implemented first cut of bootstrap code in bextract
1182 - Started clarifying different termination codes.
1183 - Added M_ERROR_TERM to immediately terminate the daemon -- no dump.
1184 Also changed a few termination codes as appropriate.
1185 - Fixed create_jobmedia_record() to include all the fields such as
1186 StartFile/EndFile, StartBlock/EndBlock.
1187 - Print user friendly message when query mode ends.
1188 - Fixed ls style print routines (bextract, bls, restore) to check
1189 buffer size, to print the link if any, and to used edit_uint64()
1191 - Moved scan_to_eol() and s_err() to lex.c to avoid dragging in
1192 parse_conf.c for new bsr scanning code.
1193 - New files: bsr.h, parse_bsr.c and match_bsr.c. parse_bsr.c parses
1194 a Bootstrap file, and match_bsr.c matches a bsr against a tape.
1195 - use strcasecmp() in several places instead of lcase().
1196 - Add first cut of bootstrap to bextract.
1197 - Added File Size limit -- writes EOF after limit exeeded.
1199 ===========================================================================
1200 2002-06-12 Release 1.21
1201 - Fixed several problems with filenames being truncated if
1202 they contain spaces. Thanks to the user that reported this.
1203 - N.B. To get the new queries, after the "make" and
1204 "make install" you must explicitly replace the
1205 existing query.sql by query.sql.new. query.sql is a
1206 user configuration file, so it is not overwritten.
1207 - Added GZIP compression of Included files.
1208 - Added additional fields to tape SOS record permitting better
1209 recovery with no database.
1210 - Be sure to remove any !terminate statements you may have
1211 in your config files.
1212 - MUST UPDATE ALL DAEMONS due to protocol change to handle new
1216 - Updated examples directory with my most recent config files.
1217 - Modified the M_TERM meaning to mean that Bacula has
1218 terminated in error without producing a dump. Previously,
1219 it meant that Bacula terminate (with or without error).
1220 You should remove any !terminate from your messages
1222 - Changed the order of the libraries in the link so that
1223 tcp wrappers link properly. Thanks Phil for reporting this.
1224 - A user reported that filenames containing spaces were truncated
1225 in bextract. This was indeed the case. They were also truncated
1226 in Restore as well as in Verify. They are, hopefully, all fixed
1228 - Made a few error conditions in Verify non-fatal.
1229 - Modified the Console "query" command to permit multiple SQL
1230 statements per command.
1231 - Implemented three new "query" options:
1232 List last 10 Full Backups for a Client
1233 List Volumes used by selected JobId
1234 List Volumes to Restore All Files
1235 To use them, simply type "query" to the Console program, and
1236 select the one you want.
1237 - Modified bextract to default to extracting all files (i.e. /).
1238 - Cleaned up the code in bextract a bit.
1241 - Improve Verify command to include files examined.
1242 - Eliminate fcntl() locking of the console file and replaced
1243 it with a pthreads mutex.
1244 - Note Director - SD protocol is changed to handle new tape
1245 information (Fileset, JobType, JobLevel).
1246 - Create config.out that contains a summary of ./configure
1247 to see what you previously configured: "cat config.out"
1248 - Implemented GZIP compression. Added addition syntax to
1249 Include { } resource to permit setting of any GZIP compression
1256 Level 1 is minimum compression and level 9 is maximum. Using just
1257 GZIP gives the default (level 6).
1258 - Enhanced the tape format to include the unique Job name, FileSetName,
1259 JobType, and JobLevel in the Start/End of Session records. The code
1260 detects that tape level difference and acts accordingly. You can
1261 add data in the new format to old tapes.
1262 - Fixed an incorrect display message in the prune command.
1263 - Began implementation of Verify Volume and Verify Data.
1264 - Cleaned up File daemon restore.c a bit ensuring that termination
1265 cleanup is done and all possible Emsgs are converted to Jmsgs.
1266 - Modify bls.c to use common setup routines. This reduced the big
1267 code duplication that creeped in when I added different listing
1268 options. Also, changing tapes is now handled uniformily in a subroutine.
1270 ===========================================================================
1271 2002-05-27 Release 1.20
1272 - Started documenting Catalog Pruning and Recycling.
1273 Added catmaintenance.html and recycling.html
1274 - Fixed the query command bug.
1275 - Implemented PID files to prevent two copies of Bacula
1276 from running at the same time. Be sure you --with-pid-dir
1277 points to a working directory.
1278 - Modified ASSERT() to cause a segmentation violation. This
1279 permits a core dump.
1280 - Worked on gnome-console. It paints better, it tells you if it
1281 is ready to accept a command or processing one, and it is
1282 almost entirely GTK+ (rather than GNOME, I'm removing GNOME
1284 - Limit to 100 the number of tape labeling errors in a single Job.
1285 - Add some additional ASSERT()s to the database routines. I don't
1286 like ASSERTs but they do catch bugs.
1287 - Tested and debugged recycling of Volumes. Needed to change
1288 the Director-SD protocol slightly.
1289 - Removed the experimental SIGHUP in the Director as it is a
1290 potential source of errors.
1291 - Added Level, Pool, Messages, and Storage keyword/value scanning
1292 to the Schedule Run record.
1293 - Improved printing of Schedule resources with "show schedules"
1294 - Do not autoprune Jobs/Files if the Job errs.
1295 - Updated newvol() to pass back the updated Media record.
1296 - Fixed the "update pool" command, which was broken during a much
1297 earlier code reorganization.
1298 - Improved a few of the pruning messages.
1299 - Removed readline inclusions from gnome-console (hang over from console).
1300 - Make Jmsg use daemon message handler if no message handler is defined.
1301 This is always the case in the SD and FD.
1302 - Started removing __PROTO(). With C++ prototypes are manditory, so why
1303 keep around legacy code.
1304 - Added a good deal of message internationalization -- more to be done.
1305 - Move cached Path into mdb structure and use POOLMEM.
1306 - Fix verify bug introduced last update causing incorrect diffs
1307 by turning off autopruning.
1308 - Started adding code to distinguish Errors from Fatal Errors.
1309 - Errors are now counted in message.c for a Job.
1310 - More POOLMEM cleanups.
1311 - Implemented Automatic pruning.
1312 - Implemented Automatic recycling of Volumes.
1313 - Added PruneJobs/Files/Volumes=yes or no to Job resource. If set,
1314 it forces the specified pruning.
1315 - Modified rwlock to accept multiple nested write lock
1317 - Modified the cats directory to use the new rwlock mechanism
1318 in place of P() and V().
1319 - Defined db_lock(mdb) and db_unlock(mdb). They are in effect
1321 - Add CVS Id's to most files.
1322 - Made first cut at AutoPrune
1323 - Added new autoprune file that is called at the end of
1324 each Job. It then decides when and what to prune and
1325 calls the UA prune routines.
1326 - Modified Run (in Schedule resource) to permit overrides of
1327 Level, Pool, Storage, and Messages. (not tested).
1328 - Added more POOLMEM in place of char.
1329 - Implemented daemon pid files. This prevents multiple
1330 daemons from running simultaneously. You can run multiple
1331 daemons if they listen on different ports.
1332 - Documented the Schedule resource a bit better.
1333 - Began gently adding a POOLMEM type (perviously void).
1334 For the moment it is a #define to char, but long term
1335 it should be its own typedef.
1336 - Corrected a bit of spacing on the status bar of gnome-console
1337 - Added Admin and Archive Job types.
1338 - Implemented multiple Messages resources. Each daemon has
1339 its own message resource, which defaults if not defined.
1340 Jobs may now have different message handlers.
1341 - Cleaned up a bit of duplicate code in backup, verify, and
1342 restore by creating appropriate subroutines in job.c
1343 - Added Type, Client, FileSet, and Level resource record
1344 definitions to the Director. These can be used in place
1345 of the Backup = ..., Verify = ..., ... commands. This needs
1347 - Corrected an incorrect message in the prune code and added
1348 the number of Files pruned in the message.
1349 - Corrected several paint problems with gnome-console.
1350 - Added a bit of printout in signal handler during traceback.
1351 - Cleaned up most of sm_check() to be turned on/off by define
1354 ===========================================================================
1355 2002-05-10 Release 1.19
1356 - Allow the user to select a new period for pruning.
1357 - Lots of additions to the manual -- prune and purge
1358 commands documented.
1359 - Applied Phil's configure.in fix for --prefix, ...
1360 - Fixed bug found by Phil (patch supplied) in updating
1361 MD5 signatures (revert to 32 bit FileId, move "static"
1362 variables into JCR) (catreq.c fd-cmds.c).
1363 - Reverted to using INTEGER for FileId in make_sql_tables
1364 due to a bug in MySQL.
1365 - Change editing code to %d for FileId.
1366 - Remove sqlite in make distclean in cats directory.
1367 - Remove console.conf in console during make distclean.
1368 - Remove gnome-console.conf during make distclean.
1369 - Remove bacula-dir.conf during make distclean.
1370 - Set default level when using Console if none specified.
1371 Bug reported by Phil.
1372 - A simple . command from Console is ignored.
1373 - Change program named from filed to bacual-fd in winmain.cpp
1374 - Change default config file for Win32 in winmain.cpp
1375 - Free namebuf on early return from find_one.c. Bug reported by Phil.
1376 - Modify testfind.c to dump orphaned buffers.
1377 - Removed terabytes from parse_conf.c because of problems with
1378 older gcc compilers.
1379 - Turn off gnome options in gnome-console by constructing empty argv.
1380 - Fixes to Verify when only MD5 differs.
1381 - Insert 0 for MD5 as default rather than space.
1382 - Allow .messages "transparent" command while reading input
1383 in UserAgent server.
1384 - In dird/verify.c ensure that correct filename is printed if only
1385 the MD5 differs. Minor reindenting caused large diff.
1386 - Delete unused code from backup.c
1387 - In filed/verify.c ensure that same algorithm as backup.c is used
1388 to pass back MD5 signatures -- especially for directories and files
1389 that cannot be read. Change dummy filename from X to *MD5-id*.
1390 This dummy value should never be printed.
1391 - Make gnome-console poll Director every 5 seconds for output.
1392 This means that queued up messages are displayed at reasonable
1393 intervals. Delete some unused code hanging around from the tty
1395 - Begin implementation of prune commands.
1396 - Add command line history to gnome-console. Not yet saved across sessions.
1397 - Fixed some broken URLs in the manual.
1399 - Wrote first cut of "prune files" and "prune jobs".
1400 - Added command line history to gnome-console 2500 lines max.
1401 - Widened store_time() and associated variables to 64 bits using
1402 new btime_t definition.
1403 - Removed GNOME about box and replaced it with
1404 a somewhat crude Gtk+ about box in the gnome-console.
1405 - Widened StartDay in the Job DB record to be 64 bits.
1406 - Changed edit_uint_ to edit_uint64_ everywhere. Much more
1407 descriptive of what is done.
1408 - Removed most llds and replaced them with %s and edit_uint64.
1409 This makes the code a bit easier to read for beginners.
1410 - Added a btime_t typedef which is 64 bits wide.
1411 - Added most of the code needed to do Purge and Prune of
1412 database. Not yet tested. Please do not use.
1413 - Additional config options for Console.
1414 - Started adding code for Automatic Recycling of Volumes.
1415 - Allow arbitrary length filenames in Verify code.
1416 - Fix incorrect filename in Verify code.
1417 - Significant enhancement to number scanning in config parser.
1418 - Requires initializing MySQL tables, or applying cats/alter.sql
1419 to modify Media table.
1420 - Modified Makefile to printer a much more visible
1421 message if the make ends in error.
1422 - Added the Purge value to the VolStatus in the Media table.
1423 This value is set if the Volume is purged.
1424 - Enhanced the db_delete_media_record() routine to delete
1425 all associated records in the database.
1426 - Modified Console to always write to the variable "output"
1427 rather than stdout. This will permit directing output to a file.
1428 - Enhanced the Console configuration file to have a Console
1429 resource. This will allow us to add an rcfile and history file.
1430 - Modified Find_next_vol in catreq.c to search for "Recycle"
1431 volumes if there are none marked Append. Also made Get_Vol_info
1432 return the VolStatus to the Storage daemon.
1433 - Allow upper/lower case match on job level names.
1434 - Added another warning message to the Console "delete media" command.
1435 - Corrected a number of FileId types from uint64_t to FileId_t in
1437 - In ua server close database before freeing JCR (because pointer is
1438 kept in ua and jcr structures).
1439 - parse all numbers as doubles. Do lots of checking for valid number
1440 formats. Allow numbers in scientific form (e.g. 1.5e+10).
1441 - Remove terabyte modifier as it doesn't work in some compilers.
1442 - Fix bug in handling some modifiers.
1443 - Added all necessary code for Recycle to Storage daemon. A Volume
1444 marked Recycle will now be overwritten.
1445 - Filled out the prune command a bit and did some testing.
1446 - Make console accept redirected input.
1447 - Altered the Table definitions to include Recycle,
1448 FileRetention, JobRetention, and AutoPrune.
1449 - Widened StartDay to 64 bits.
1450 - Use JobId_t in more places.
1451 - Added the new table fields to the database record definitions.
1452 - Changed Recycle from string to a binary quantity.
1453 - Added a Version table with a VersionId to detect.
1454 future changes in the database. This should prevent
1455 a Bacula from working with a database that is not in sync.
1456 - Modify Console to accept input from a file. This will permit
1457 the .read command and allow reading a .rc file.
1458 - Added new retention and recycle variables to the Director's configuration.
1459 - The UA subroutines or commands can now be called from core
1460 code because the output routines detect the absence of a
1461 UA socket and direct output to the Job.
1462 - Added a verbose flage to the ua packet to permit reduction of
1463 output while running a UA command (prune) from a Job.
1464 - Did a fair amount of work on the prune command. Prune Volume now works.
1465 - Purge Volume now works.
1466 - Made last changes for integrating prune and purge commands.
1467 - Add -ltermcap to CONS_LIBS when readline is configured.
1468 More work to be done to search for termcap.
1469 - Added cats/drop_sqlite_tables.in, which will delete the SQLite database.
1470 - Got CWEB working so that we can compile filesys.w and immortal.w
1471 - Modified depkgs to include cweb.
1472 - Note, CWEB is not yet used by the core Bacula code.
1473 - Made cats/alter.sql, which alters an old database to bring it
1474 up to the new format. This only works with MySQL since SQLite does
1475 not have the ALTER SQL command.
1476 - Changed the old StartDay field in the db to be JobTDate, which is
1477 the latest time/date in widened Unix time format that the Job ran.
1478 This value is used when doing pruning.
1479 - Added code in cats/sql.c to verify that the database internal version
1480 corresponds to the db version compiled in Bacula. It is set to 1 currently.
1481 - Lots of changes to cats to bring the SQL up to date with the new
1482 retention period changes.
1483 - Added Console command code to permit changing a Volume's retention period.
1484 - Removed old code that used date_encode() and replaced it with widened
1486 - Started modifying Message resource scanner so that we can have multiple
1487 message resources. Much more work to be done.
1488 - Moved scanning for time into new library routine string_to_btime().
1490 ===========================================================================
1491 2002-04-22 Release 1.18
1492 - Applied Phil's configure.in fix for --prefix, ...
1493 - Fixed bug found by Phil (patch supplied) in updating
1494 MD5 signatures (revert to 32 bit FileId, move "static"
1495 variables into JCR) (catreq.c fd-cmds.c).
1496 - Reverted to using INTEGER for FileId in make_sql_tables
1497 due to a bug in MySQL.
1498 - Change editing code to %d for FileId.
1499 - Remove sqlite in make distclean in cats directory.
1500 - Remove console.conf in console during make distclean
1501 - Remove gnome-console.conf during make distclean
1502 - Remove bacula-dir.conf during make distclean
1503 - Set default level when using Console if none specified.
1504 Bug reported by Phil.
1505 - A simple . command from Console is ignored.
1506 - Change program named from filed to bacual-fd in winmain.cpp
1507 - Change default config file for Win32 in winmain.cpp
1508 - Free namebuf on early return from find_one.c. Bug reported by
1510 - Modify testfind.c to dump orphaned buffers.
1511 - Removed terabytes from parse_conf.c because of problems with
1512 older gcc compilers.
1513 - Turn off gnome options in gnome-console by constructing empty
1516 ===========================================================================
1517 2002-04-18 Release 1.17 Kern Sibbald
1518 - Ensure that platforms Makefiles are called for clean
1520 - Hide a lot of Makefile messages with @
1521 - Applied Phil's configure.in patch. Thanks.
1522 - Doc updates, many to clarify points brought up by Phil.
1523 - Applied Phil's make_mysql_tables.in patch. Thanks.
1524 - Made authenticate.c in dird test bnet_send status.
1525 - Make label a bit more friendly with extra info message.
1526 - Add level 200 to debug info in run command.
1527 - Remove old code from findlib/testfind.c so that it compiles.
1528 - Add two minute max wait to cram-md5 authentication. Hopefully,
1529 this will catch non-responding WinNT daemons.
1530 - Allow time and size modifiers to be upper or lower case.
1531 - Turn off old CYGWIN patch for pthread_cond_timedwait() bug that
1532 now causes File daemon hangs on WinNT.
1533 - Fix mount messages for restore. Previous updates to save
1534 broke the restore code.
1535 - By default write fixed block sizes rather than variable block
1536 sizes. My Sony DAT simply does not work (reread failures) with
1537 variable block sizes.
1538 - Data split across tapes was not being correctly restored
1539 (at least on DAT tapes).
1540 - Implement MaximumBlockSize and MinumBlockSize statements in
1541 Storage daemon so user can specify variable block sizes if
1543 - Return error if block checksum error on read (previously
1545 - Fixed some error messages in bls, and in some cases exit(1)
1546 rather than ABORT. There remain ABORTs to be examined.
1547 - Made a local copy of tcpd.h and corrected the function
1548 prototype problem for C++.
1550 ===========================================================================
1551 2002-04-14 First public release 1.16 Kern Sibbald
1552 - Many intervening changes/updates.
1554 2001-09-29 Release 1.0 Kern Sibbald
1555 - Fixes to problems found at John's
1557 - See techlogs/kes25Sep01 for details
1559 2001-09-25 Release 1.0 Kern Sibbald
1560 - Helped John install at his site.
1561 He is backing up one Linux machine and
1562 one Win2000 machine.
1564 2001-mm-dd Many releases
1565 - Released internally.
1567 2000-04-09 Release 0.4 Kern Sibbald
1568 - Added a lot of Director configuration code. In
1569 part (a small part), the Director now uses the
1570 bacula.conf file to know what to do. There still
1571 remains a lot to do.
1572 - The file search code is now integrated into the
1573 MySQL database routines, and Bacula is now hooked
1574 into the MySQL database (if so configured). Thus
1575 all the database records are being created, though
1576 there still remains some work in getting all the
1577 details into the records (such as the Storage
1579 - I've defined how Volume pools work (see manual).
1580 - I've defined error message handling though no code
1582 - The following resources and records are implemented
1583 in the Director configuration file (bacula.conf):
1586 Name (passed to Storage daemon)
1589 Password (not yet used)
1591 Name, Address, Port, Password, MediaType
1595 Backup (only one permitted)
1598 Schedule, Messages, Pool (not used)
1601 Include (options ignored)
1602 Exclude (no options)
1607 Debug, syslog, mail, append (not used)
1610 Address, Port, Password (not used)
1613 PoolType, MediaType (not used)
1615 - Added Storage configuration routines.
1617 Name, password (verified against those sent by Director)
1619 Name, Address, Port (address, port must correspond to Director's values)
1622 Name, MediaType (must correspond to those sent by Director)
1623 Archive Device (defines device name)
1626 2000-03-10 Release 0.3 Kern Sibbald
1627 - Implemented new base64 encoding for attributes.
1628 This eliminates some of the error messages in the
1629 sprintfs on the Solaris due to different stat() sizes.
1630 - Implemented the first cut of the file search routines for
1631 the File daemon. The exclusion lists work including wild
1632 cards. There is a lot of work to be done, but the basic
1633 structure is now in place (wild cards do not yet work for
1635 - Completed writing the memory pool code. Now I must
1636 implement it in the daemons.
1637 - Modified the bacula start/stop script so that it has a
1638 better chance of working on SGI and Solaris.
1639 - The catalog code has not been converted to the new file
1642 2000-03-06 Release 0.2 Kern Sibbald
1643 - Integrated John's fixes.
1644 - Made Makefiles self configuring when Makefile.in is changed.
1645 - Added a runit script in the top level that runs bacula
1646 - Added a "bacula" script in the top level directory that
1647 starts and stops the File daemon and the Storage daemon.
1649 2000-03-03 Release 0.1 Kern Sibbald
1650 - Basic Director, File, and Storage daemons.
1651 Standalone Catalog services using MySQL
1653 2000-01-22 Kern Sibbald
1654 * Setup basic file structure with ./configure