2 2002-xx-xx Version 1.26 (xxOct02)
4 - Better key generation on non OpenSSL systems.
5 - 64 bit file address support if available.
6 - Implement autochanger for reading
7 - Lots of cleanup of tape reading code.
8 - Automatically create all Pool resources when Bacula starts.
10 - Implement autochanger use via the Console commands "add" and "label"
11 - Begin implementation of a regression script
12 - Write bootstrap after ever job
14 Changes submitted this submission:
15 - After noticing that the non OpenSSL random key generator was
16 not good on Solaris, John wrote a very nice randpass generator.
17 - Integrated John's makeSessionKey for generating the FD->SD
19 - Statically link tools (doesn't work on Solaris).
20 - Document how to debug Bacula (new chapter in the manual)
21 - Remove unneeded printing of error message in sql_get.c
22 - Free SD description config record (previous oversight)
23 - Bash spaces when sending Director names, and unbash them when
25 - Ensure no divide by zero in rate computation in backup.c
26 - Implement WriteBootstrap in backup.c
27 - Allow tape reading to request volume information for any
29 - Create all Pool resources at startup.
30 - Show only Backup jobs in Restore listing of last 20 Jobs.
31 - Handle 64 bit stat packets in restore.
32 - Don't do shell expansion on store_dir in config if string
33 starts with |. This is used for piping the program for the
35 - Ignore SIGHUP -- DéjàGnu was triggering this.
36 - Implement autochanger for reading, many changes to
37 acquire_device_for_read()
38 - Implement callback for reading Volume. Implement in bextract,
43 - Move autochanger code to new subroutine in mount.c
46 2002-09-05 Version 1.25a (05Sep02) Released
47 - Fix unitialized stack variable in bextract so it
48 will always read the currently mounted tape.
50 2002-09-04 Version 1.25 (01Sep02) Released
52 - Added .cvsignore files in each directory to cut down on the
53 CVS output when scanning directories and finding Makefiles
54 and such which are not part of the CVS tree.
56 Changes submitted this submission:
57 - Cleaned up a lot of the error messages in Verify, including
59 - Had to remove some of the "automatic" error message printing
60 in the DB because they are in fact things that come up
61 for Verify but not really errors.
64 2002-08-30 Version 1.25 (30Aug02) Beta
66 - Fixed a bug where only the first file was restored if
67 it is hard linked. The other links were lost.
68 - In some cases of restoring to alternate directories, softlinks
69 were not properly restored.
73 - Bacula backups now run up to 12 times faster than version 1.24
74 - Bacula can run multiple simultaneous Jobs.
75 - Had to turn off TRANSACTIONS in SQLite because it doesn't work
76 with multiple simultaneous jobs (I'm working on this).
77 - Added a better Job printout for Restore Jobs.
78 - Added a save/restore Rate to backup and restore jobs. This
79 does not yet subtract out operator wait time so it will be
80 underestimated it the Job waits on the tape (mount/label).
81 - Fixed a major bug caused by free()ing a buffer twice in
82 the Restore code. This made the SD more or less useless after
83 any restore Job. Arrggg!
84 - DIR - SD protocol changed, both must be updated at the same time.
85 - DIR - FD protocol changed in upward compatible way. Upgrade of
86 FD not required, but recommended.
88 Changes submitted this submission:
89 - Added bell to "make" when errors are detected.
90 - Changed default compile option from -g to -g -O2
91 - Additional documentation as usual -- much based on questions or
92 feedback from users. Thanks.
93 - Fixed example config files to use new syntax and to have a
95 - Define ETIME to ETIMEOUT for Irix
96 - Added JCR filed to DB structure permitting direct printing error
97 messages from within the Database subroutines.
98 Some error messages may be printed twice as a consequence.
99 When I see them or someone reports them, I will remove the double.
100 - Added JCR to the bsock structure. This allows direct printing
101 of network errors from within the network code.
102 - Made most "trivial" debug messages have level 100 or greater. This
103 allows for easier debugging of new code using the range below 100.
104 - Began replacing all Emsg() with Jmsg() using a NULL as the JCR in
105 Jmsg() is the same as Emsg().
106 - Fixed several crashes in the Director because of malformed config files.
107 - Added SpoolAttributes to Job resource.
108 - Pass CatalogFiles to SD. If set to no, the attributes are dropped
109 within the SD rather than being sent to the DIR.
110 - Cleaned up a number of information/error messages in user interface.
111 This includes eliminating the "pretty please" response in favor of
112 "yes/no" to delete volumes and pools.
113 - Cleaned up quite a number of uninitialized variables reported when going
114 to -O2, most were harmless, but a couple could cause problems.
115 - The cd command in restore was not working correctly (it didn't allow some
117 - Fixed a segmentation violation in the directory tree handling code in
119 - Handle a few error conditions in the restore command better.
120 - Permit "Where" to be set to nul in modification of a run command.
121 - Clarified the error message for Verify if an InitCatalog has not previously
122 been done -- thanks Chuck.
123 - Add MaximumConcurrentJobs to FD.
124 - Added code to mem_pool to die if a buffer is released twice.
125 - Lots of work done on SD for multiple simultaneous jobs. Split device.c
126 into device.c, mount.c and acquire.c
127 - Started writing new lock code for SD, but may back it out -- needs more
128 thought. Current code works, but is too complicated. Maybe can simplify it.
129 - Cleaned up the SD tools code quite a bit. Added bootstrap to all tools.
130 - Ensure that tape session labels are not split across two blocks. This makes
131 reading them back much easier.
132 - Fixed another restore bug concerning tape labels on multi-volume saves.
134 =============================================================================
135 2002-08-14 Version 1.24
137 - Made a new tools directory.
138 - Moved smtp into the tools directory.
139 - Created a dbcheck program in the tools directory that
140 checks for certain database errors and if requested fixes them.
141 - Put the database link flags on DB_LIBS so that it now only is
142 on binaries that actually need it.
143 - Document dbcheck and testfind programs.
144 - Move testfind to tools directory.
145 - Check for FileSet after getting Client name in Restore command.
146 Modify all necessary SQL commands to accept FileSetId.
147 - Add a db_get_fileset_record in cats directory.
148 - Correct list last 20 files concatenation to be MySQL
149 dependent. They aren't SQL standard. Use SQL standard || for
151 - Modify dir command in file selection to produce a long form
152 listing of the file/directory name.
153 - Add platforms/irix/*.in files to CVS
154 - Make Console command scanner accept quoted value fields.
155 - If after selecting Client to restore, there are multiple
156 FileSets, ask user to select one.
157 - After obtaining JobIds for restore, ensure that there is only
158 one MediaType, and select a Storage resource to be used.
161 - Made restore actually work.
162 - Made console and gconsole be configured (requested by Chuck)
164 - changed fs in Job record to fileset for clarity
165 - The console run command was not properly picking up the command
166 line arguments. Fixed!
167 - Changed add/remove/rm to mark/unmark
168 - Volume keyword VolumeName was wrong, changed to Volume (in restore bsr).
169 - Pass jcr to parse_bsr, and if non-NULL, it will output error messages
170 to Job stream rather than Emsg.
171 - Modified lexical scanner to include caller context so that jcr can
172 be stored in lex context allowing error messages to be properly
174 - Renamed the Job message chain to be jcr_msgs. This eliminated the
175 previous confusion with the default value, now named jcr->messages.
176 - Implemented multi-volume bsr records.
177 - Implemented pm_strcat() and pm_strcpy() to cat/add to memory pool
178 buffers in same way as strcat/strcpy, but expanding buffer.
179 - Modified db_get_volume_names to handle arbitrarily long Volume list.
182 - If the Console program terminated during the printing of messages,
183 the message file was left locked. This was corrected by using the
184 new read-write lock code.
185 - Implemented Pw() and Vw() for obtaining and releasing a write lock
186 using the rwl_xxx routines.
187 - Deleted some old pthread_mutex code from mysql.c
188 - In making the Irix port, I previously corrected the base64 routine so
189 they were not sensitive to the machine definition of char. This made
190 them incompatible with previous versions invalidating MD5 signatures
191 which are in base64 format. I have now corrected this, making the
192 routines compatible with the previous version but also insensitive
193 to the default definition of char.
194 - Removed some unnecessary NPRT() usage in signal.c (pointed out by
196 - Add back BNET_NONO for compatibility with older File daemons.
197 - Implement runing a restore Job in the restore command.
198 - Make installation of query.sql unconditional. To prevent you own file
199 from being overwritten, give it a different name.
200 - Made parse_command_args() in ua take command from ua->cmd, this
201 simplifies it and allows usage in other places -- e.g. building
202 arguments for created run command in restore.
203 - Cleaned the naming of s_full_ctx to be s_jobids.
204 - Write the bsr created in restore to "working-directory"/restore.bsr
205 - Fix bugs in command line scanner in run command -- also some misplaced
207 - Eliminate static cmd in ua_server.c
208 - Eliminate segmentation fault when using the Run command in the
209 Console -- forgot to init_msgs().
212 - Did a good amount of documentation.
213 - Added sql_cmds.c to CVS, forgot, pointed out by Chuck.
214 - Added new platforms/irix directory to CVS
215 - Turn off transaction debug code in sql.c
216 - Reworked the scheduler so that it handles the same Job starting
217 twice in the same hour. Previously it took one or the other.
218 - Tightened up the "slop" in the timings that I programmed to ensure
219 that the same job isn't run twice or that no job was missed.
220 - Increase the sleep time.
221 - Used job_type_to_str() in status so that Admin jobs are correctly reported.
222 - Add internationalization message chars to a number of routines
224 - Make the watchdog timer clear the mutex when it exits.
225 - Some tweaks to the Restore command. It needs fixing when a Job spans
229 - Initial cut at adding Irix File daemon support.
230 - Lots of work on the restore command.
231 - Take a stab at eliminating the "broken pipe message"
232 when the console program prematurely terminates.
233 - Reimplemented transactions for SQLite by keeping
234 them all in the same thread.
235 - quit in the Console program now waits for Bacula to
236 quit. To immediately quit, you must enter .quit
237 - Eliminated BNET_EOF -- this COULD have some negative consequences
238 on interdaemon communications.
239 - Define Job termination status for Admin jobs.
240 - Write new bstrncpy() function that guarantees that strcpy is
242 - Fixed command input in ua_input.c to accept quoted items as a
246 - The changes that added indexes to the SQLite database were
247 lost -- thanks to Chuck for pointing this out. Redone.
248 - Fixed a problem quoting strings in SQLite. This showed up
249 as database errors with files containing ' or " in the filename.
250 - Implemente restore command -- still in progress.
251 - Added indexes to all fields in SQLite that exist in MySQL.
252 - Moved unused immortal files from src/lib to src/immortal.
253 This will permit splitting depkgs.
254 - Started work on adding embedded MySQL. Cannot get the tables
255 to work for the moment. Please don't try to use this option.
256 - Convert to using single quotes for enclosing all strings.
257 - Implement correct quoting algorithm for SQLite strings.
259 - Started centralizing SQL statments in the Director in sql_cmds.c
260 - Changed a number of M_ABORTs to M_ERROR_TERM so that program terminates
261 but does not produce a dump.
262 - Allow wild-card matches in bsr for Client name, and Job.
263 - Change OflineOnUnmount=no as default.
264 - Fixed improper printing of filenames containing a space in bls.c
265 Thanks to Carlos for reporting this.
267 ===========================================================================
268 2002-07-26 Release 1.23a
269 - Fix segmentation fault is FD status.
270 - Turn off TRANSACTIONs for SQLite.
272 ===========================================================================
273 2002-07-23 Release 1.23
275 - Updated Bacula to handle some minor differences in MySQL 4.0.2
276 (still works with older MySQLs).
277 - Updated MySQL documentation to correct some minor errors.
278 - Added kernstodo to CVS
279 - Fixed create_mysql_database, which I recently accidently broke.
280 - Disallow zero length volume names in Console program.
281 - Create alter_mysql_tables and alter_sqlite_tables for conversion
282 from 1.22 table format to 1.23 table format.
285 - Investigation of SQLite performace problems reported by Chuck.
288 - made root@localhost the default email address because many smtp
289 servers reject root but accept root@localhost
290 - Added an autochangers chapter to the manual.
291 - Documented most of the new features in 1.23
292 - Modified the SQLite interface code to start a transaction at the
293 beginning of a job and commit it at the end of the job. It
294 also commits it after 10000 changes. Hopefully this will
296 - Set the default cache pages from 2000 to 10000 for SQLite (i.e.
297 about 15Megs of memory) hoping to improve performance.
298 - Terminate last filename referenced in FD prior to copy to
299 avoid race problem with multiple threads and no locking.
300 - Enhanced the status output to include the JobType
301 - Print an error message if the email program terminates in error.
302 - If your machine has an MTUNLOCK, do it before doing an OFFLINE to
303 ensure that the door is unlocked.
304 - Added code to stored/append.c to spool attributes. This is in
305 a testing stage and must be explicitly enabled.
306 - Added a no_attributes variable to stored/append.c that prevents
307 the attributes from being sent to the Director. As yet, no way
309 - Modified SQLite code so that after 10000 updates any transaction
310 is committed, then restarted. This keeps it from using too much
312 - Set the default cache size to 10000 pages (previously 2000).
313 - Fixed a segmentation fault on Sun due to no default value for
315 - Added the same indexes to SQLite that I exist in MySQL. This
316 VASTLY reduces CPU usage for lots of inserts.
317 - Added spooling to bnet_send().
320 - The following two changes were prompted by questions/suggestions
322 - If you have "AlwaysOpen = no" in your SD Device
323 resource, Bacula will free() the drive when it
324 is finished with the Job.
325 - If you have "Offline On Unmount = yes", in your
326 SD Device resource, Bacula will offline (or eject)
327 the tape prior to freeing it.
328 - Added Maximum Open Wait to allow open() to wait if drive is busy.
329 - Added RunBeforeJob and RunAfterJob records to Job records.
330 This permits running an external program with the following editing
343 - Added autochanger support to devices.c
344 - Allow user to change Slot in the Volume record.
345 - Implemented code in lib to run an external program
347 - Implemented a changer script for mtx.
348 - Currently the changer commands used are:
349 loaded -- returns number of slot loaded or 0
350 load -- loads a specified slot
351 unload -- unloads the device (returns casette to slot)
352 - Other changer commands defined but not yet used:
353 list -- returns list of slots containing a cassette
354 slots -- returns total number of slots
355 - Implemented ChangerCommand, specified in the SD Device
356 resource, permits editing of:
358 %a = archive device name
359 %c = changer device name
366 - Implemented MaximumChangerWait default 120 seconds. It is
367 specified in the SD Device resource.
370 - Moved techlogs from main directory to be subdirectory of doc
371 - Added code for strerror_r, and detection of gethostbyname_r().
372 - The protocol between the Director and the SD has changed.
373 - Major rework of SD tape mounting to prepare for Changer commands.
374 - Separated Update Media record and Create JobMedia record. These
375 are done from the SD by calling the Director. Need separate Create
376 JobMedia so that when a Job spans a volume, all other Jobs writing
377 the same volume will also have JobMedia records created.
378 - Added message to user indicating selection aborted if he enters .
379 to a Console selection request.
380 - Create a jobstatus_to_ascii() routine for use in status commands.
381 This makes a single routine from three separate pieces of code.
382 Updated the code to properly handle more (all) termination statuses.
383 - Tried to fix the gnome-console to handle history a bit better. There
384 are still some problems with focus not being properly set to the edit
385 box after history replacement.
386 - Removed the shutdown() from bnet_close() hoping to fix Console termination
387 errors that are occassionally seen -- no luck.
388 - Moved add_str() to lib/util and renamed it add_str_to_pool_mem() so that
389 it can be used to edit Job termination codes and Changer command codes.
390 - Reworked how the SD mounts tapes (in device.c) so that control passes through
391 only a single routine. The logic is much simpler than previously, and now
392 adding AutoChanger code is straight forward.
393 - Made SD tape mounting much more fault tolerant -- more cases retry instead
394 of terminating the Job.
395 - Wrote code to edit_device_codes() for Changer commands. Not yet fully
397 - Added a ChangerDevice directive to the Device resource. Still need to add
401 - This documents what I did while on vacation.
402 - A fair amount of documentation.
403 - Implemented Verify Volume to Catalog (needs renaming)
404 - Modified the database to include new MarkId field as
405 well as Counters. Database level is incremented from 1 to 2.
406 - Added first cut of managing autochangers by implementing Slot in DB.
407 - Fixed a good number of M_ERROR messages to be M_FATAL where appropriate.
408 Also converted a number of Emsg() to Jmsg() permitting better Job error
410 - First cut at implementing a general packet passing mechanism for bsock
411 to replace printf and sscanf for passing data.
412 - Made make_xxx_tables and drop_xxx_tables and create_xxx_database
413 for bdb as well as sqlite. With this each database has the
414 same set of scripts (with the exception that MySQL has grant_privileges).
415 - Modified Makefile to only install the database scripts for the
416 database that you are using.
417 - Updated the pdf script to include all the html files.
418 - Did quite a lot of documentation.
419 - Made Bacula compile correctly with DEBUG turned off.
420 - Implemented Pmsg() macros that permit using the debug print
421 routines even with DEBUG off.
422 - Updated job_cancelled() macro to handle JS_FatalError.
423 - Changed db_find_last_full_verify() to db_find_last_jobid(). This
424 permits working with Verify Volume to Catalog.
425 - Removed TRANSACTION code from incrementing NextId for SQLite.
426 - Implemented quick and dirty (not fully functional code) so that
427 console program does not die if ctl-Z is entered.
428 - Cleaned up backup.c a bit adding a bail_out goto to ensure proper
429 handling of errors with minimum code.
430 - Added passing Slot back and forth to Storage daemon with Volume info.
431 - Implemented Slot in Media record in DB.
432 - Implemented first cut of Counter resource in dird_conf.c. A counter
433 resource is part of the Pool resource.
434 - Implemented necessary database record. However, the resource doesn't
435 yet create a DB record.
436 - Implemented onefs (One File System) and recurse options on Include
438 - Implemented autopruning of Verify and Restore Jobs.
439 - Did a better job of calculating thread_concurrency() for Sun systems.
440 This permits better multi-threading allowing all the threads to run
442 - Implemented a wait_for_storage_daemon_termination(), which is used by
443 backup and verify volume.
444 - Clarified a number of UA prompts, and add feedback where certain commands
445 completed but printed nothing. (More work to be done here).
446 - Added a pile of new code to implement Verify Volume to Catalog. It is sort
447 of a hybrid of "restore" and "verify" in that it actually reads the tape,
448 then compares it to the catalog. Need Verify Volume to Client.
449 - Added a good number of checks for job_cancelled() this should permit
450 quicker and more reliable cancelling of jobs.
451 - Fixed one bug in restore where I used ofile instead of lname, which means
452 that if the lname was too long, the memory was not properly reallocated.
453 - Cleaned up find_one.c in findlib quite a bit.
454 - Link smtp static so that it works even if the libraries are messed up.
455 - If mail host is not found, retry with local host in smtp.
456 - Added slot and stream to the bootstrap record processing.
457 - Do offline on tape cartrige for unmount command. This can be turned off
458 by the user in the config file. OffLineOnUnmount in Device resource.
459 - Implemented AutoChanger = yes/no in Device resource.
461 ===========================================================================
462 2002-07-07 Release 1.22
463 - All the basic Restore code to handle the boostrap file is
464 now implemented with the exception of the Console Restore command.
465 - Retained compatibility with previous Restore providing no
466 bootstrap file is specified. However, the old code (JobId based)
467 will go away in a future release.
468 - Fixed a number of segmentation faults in the Console program due
469 to printing of NULL pointers -- thanks to Chuck and his Sun for
470 finding and reporting them -- mostly in ua_output.c.
473 - Null pointers now are printed as *None* if NPRT() is used.
474 - At the request of Phil, all resources are now chained in in the
475 order they appear in the config file.
476 - Implement Bootstrap record in the Director's config file, which
477 allows you to specify a predefined bootstrap file for Restore Jobs.
478 - Allow Bootstrap on the Restore record. This is deprecated.
479 - Implemented code to pass the Bootstrap file, if defined, to the
480 File daemon, then from the File daemon to the Storage daemon.
481 - Added ability to set Bootstrap file in the Console when running a Restore.
482 - Allow scan_error() routine to be passed to lex_open_file(). This permits
483 using lex in the Storage daemon without worrying that it will ABORT on
484 a syntax error. More work is needed to direct the error messages correctly.
485 - Improved error messages a bit when config syntax errors are found.
486 - Tested and corrected some errors in match_bsr.c
487 - Removed askdir.c from bls and bextract by defining dummy entry points.
488 - bextract now has bootstrap pretty well integrated.
489 - Changed bextract ABORTs into FATAL and exit(1) or ERROR_TERMINATE.
491 - Eliminated at least one lld and replaced it by edit_uint64()
492 - Eliminated a few more _PROTO()s.
493 - Corrected a problem with the SQL for in query.sql for
494 Listing Volumes to Restore All Files
497 - Additional documentation.
498 - Reduce the time the jcr mutex is locked in lib/jcr.c
499 - More null pointer printing fixes in lib/parse_conf.c (debug output only).
500 - Added daemon filename to Kaboom message so I know what daemon died.
501 - Fix big bad bug introduced in watchdog.c last update that caused
502 a segmentation violation (forgot to check for NULL pointer).
503 - Add a bit more info to bad returns from Stored when starting
508 - Fixed backup scanning forgot one T_STRING -> T_UNQUOTED_STRING
509 - changed all rwlock_t to brwlock_t to avoid conflicts with
511 - Added NPRT() macro to allow printing of NULL pointers, which
512 segment fault on Solaris.
513 - Cast printing of pid_t to int for Solaris compiler.
516 - Added expect argment to lex_get_token().
517 - Added tree.c and tree.h to lib directory.
520 - Improvements to the bootstrap compiler
521 - Implemented first cut of bootstrap code in the Storage daemon
522 - Modified the authentication code to be more explicit during
524 - Added a few more debug message numbers with more arguments (Dmsg10, ...)
525 - Added more and more precise error messages when authentication fails.
526 - Implemented new "expect" codes in the lexical scanner that allows
527 the caller to specify what he wants.
528 - Added integer, positive integer, 64 bit integer, and integer ranges,
529 and name scanning to lex.
530 - Implemented new lex code in parse_conf.c, this reduces significantly
532 - Hopefully fixed a watchdog race bug that caused the watchdog to time
533 out a line after 1 hour rather than 6 days.
536 - Implemented a Bootstrap file parser and matcher.
537 - Implemented first cut of bootstrap code in bextract
538 - Started clarifying different termination codes.
539 - Added M_ERROR_TERM to immediately terminate the daemon -- no dump.
540 Also changed a few termination codes as appropriate.
541 - Fixed create_jobmedia_record() to include all the fields such as
542 StartFile/EndFile, StartBlock/EndBlock.
543 - Print user friendly message when query mode ends.
544 - Fixed ls style print routines (bextract, bls, restore) to check
545 buffer size, to print the link if any, and to used edit_uint64()
547 - Moved scan_to_eol() and s_err() to lex.c to avoid dragging in
548 parse_conf.c for new bsr scanning code.
549 - New files: bsr.h, parse_bsr.c and match_bsr.c. parse_bsr.c parses
550 a Bootstrap file, and match_bsr.c matches a bsr against a tape.
551 - use strcasecmp() in several places instead of lcase().
552 - Add first cut of bootstrap to bextract.
553 - Added File Size limit -- writes EOF after limit exeeded.
555 ===========================================================================
556 2002-06-12 Release 1.21
557 - Fixed several problems with filenames being truncated if
558 they contain spaces. Thanks to the user that reported this.
559 - N.B. To get the new queries, after the "make" and
560 "make install" you must explicitly replace the
561 existing query.sql by query.sql.new. query.sql is a
562 user configuration file, so it is not overwritten.
563 - Added GZIP compression of Included files.
564 - Added additional fields to tape SOS record permitting better
565 recovery with no database.
566 - Be sure to remove any !terminate statements you may have
567 in your config files.
568 - MUST UPDATE ALL DAEMONS due to protocol change to handle new
572 - Updated examples directory with my most recent config files.
573 - Modified the M_TERM meaning to mean that Bacula has
574 terminated in error without producing a dump. Previously,
575 it meant that Bacula terminate (with or without error).
576 You should remove any !terminate from your messages
578 - Changed the order of the libraries in the link so that
579 tcp wrappers link properly. Thanks Phil for reporting this.
580 - A user reported that filenames containing spaces were truncated
581 in bextract. This was indeed the case. They were also truncated
582 in Restore as well as in Verify. They are, hopefully, all fixed
584 - Made a few error conditions in Verify non-fatal.
585 - Modified the Console "query" command to permit multiple SQL
586 statements per command.
587 - Implemented three new "query" options:
588 List last 10 Full Backups for a Client
589 List Volumes used by selected JobId
590 List Volumes to Restore All Files
591 To use them, simply type "query" to the Console program, and
592 select the one you want.
593 - Modified bextract to default to extracting all files (i.e. /).
594 - Cleaned up the code in bextract a bit.
597 - Improve Verify command to include files examined.
598 - Eliminate fcntl() locking of the console file and replaced
599 it with a pthreads mutex.
600 - Note Director - SD protocol is changed to handle new tape
601 information (Fileset, JobType, JobLevel).
602 - Create config.out that contains a summary of ./configure
603 to see what you previously configured: "cat config.out"
604 - Implemented GZIP compression. Added addition syntax to
605 Include { } resource to permit setting of any GZIP compression
612 Level 1 is minimum compression and level 9 is maximum. Using just
613 GZIP gives the default (level 6).
614 - Enhanced the tape format to include the unique Job name, FileSetName,
615 JobType, and JobLevel in the Start/End of Session records. The code
616 detects that tape level difference and acts accordingly. You can
617 add data in the new format to old tapes.
618 - Fixed an incorrect display message in the prune command.
619 - Began implementation of Verify Volume and Verify Data.
620 - Cleaned up File daemon restore.c a bit ensuring that termination
621 cleanup is done and all possible Emsgs are converted to Jmsgs.
622 - Modify bls.c to use common setup routines. This reduced the big
623 code duplication that creeped in when I added different listing
624 options. Also, changing tapes is now handled uniformily in a subroutine.
626 ===========================================================================
627 2002-05-27 Release 1.20
628 - Started documenting Catalog Pruning and Recycling.
629 Added catmaintenance.html and recycling.html
630 - Fixed the query command bug.
631 - Implemented PID files to prevent two copies of Bacula
632 from running at the same time. Be sure you --with-pid-dir
633 points to a working directory.
634 - Modified ASSERT() to cause a segmentation violation. This
636 - Worked on gnome-console. It paints better, it tells you if it
637 is ready to accept a command or processing one, and it is
638 almost entirely GTK+ (rather than GNOME, I'm removing GNOME
640 - Limit to 100 the number of tape labeling errors in a single Job.
641 - Add some additional ASSERT()s to the database routines. I don't
642 like ASSERTs but they do catch bugs.
643 - Tested and debugged recycling of Volumes. Needed to change
644 the Director-SD protocol slightly.
645 - Removed the experimental SIGHUP in the Director as it is a
646 potential source of errors.
647 - Added Level, Pool, Messages, and Storage keyword/value scanning
648 to the Schedule Run record.
649 - Improved printing of Schedule resources with "show schedules"
650 - Do not autoprune Jobs/Files if the Job errs.
651 - Updated newvol() to pass back the updated Media record.
652 - Fixed the "update pool" command, which was broken during a much
653 earlier code reorganization.
654 - Improved a few of the pruning messages.
655 - Removed readline inclusions from gnome-console (hang over from console).
656 - Make Jmsg use daemon message handler if no message handler is defined.
657 This is always the case in the SD and FD.
658 - Started removing __PROTO(). With C++ prototypes are manditory, so why
659 keep around legacy code.
660 - Added a good deal of message internationalization -- more to be done.
661 - Move cached Path into mdb structure and use POOLMEM.
662 - Fix verify bug introduced last update causing incorrect diffs
663 by turning off autopruning.
664 - Started adding code to distinguish Errors from Fatal Errors.
665 - Errors are now counted in message.c for a Job.
666 - More POOLMEM cleanups.
667 - Implemented Automatic pruning.
668 - Implemented Automatic recycling of Volumes.
669 - Added PruneJobs/Files/Volumes=yes or no to Job resource. If set,
670 it forces the specified pruning.
671 - Modified rwlock to accept multiple nested write lock
673 - Modified the cats directory to use the new rwlock mechanism
674 in place of P() and V().
675 - Defined db_lock(mdb) and db_unlock(mdb). They are in effect
677 - Add CVS Id's to most files.
678 - Made first cut at AutoPrune
679 - Added new autoprune file that is called at the end of
680 each Job. It then decides when and what to prune and
681 calls the UA prune routines.
682 - Modified Run (in Schedule resource) to permit overrides of
683 Level, Pool, Storage, and Messages. (not tested).
684 - Added more POOLMEM in place of char.
685 - Implemented daemon pid files. This prevents multiple
686 daemons from running simultaneously. You can run multiple
687 daemons if they listen on different ports.
688 - Documented the Schedule resource a bit better.
689 - Began gently adding a POOLMEM type (perviously void).
690 For the moment it is a #define to char, but long term
691 it should be its own typedef.
692 - Corrected a bit of spacing on the status bar of gnome-console
693 - Added Admin and Archive Job types.
694 - Implemented multiple Messages resources. Each daemon has
695 its own message resource, which defaults if not defined.
696 Jobs may now have different message handlers.
697 - Cleaned up a bit of duplicate code in backup, verify, and
698 restore by creating appropriate subroutines in job.c
699 - Added Type, Client, FileSet, and Level resource record
700 definitions to the Director. These can be used in place
701 of the Backup = ..., Verify = ..., ... commands. This needs
703 - Corrected an incorrect message in the prune code and added
704 the number of Files pruned in the message.
705 - Corrected several paint problems with gnome-console.
706 - Added a bit of printout in signal handler during traceback.
707 - Cleaned up most of sm_check() to be turned on/off by define
710 ===========================================================================
711 2002-05-10 Release 1.19
712 - Allow the user to select a new period for pruning.
713 - Lots of additions to the manual -- prune and purge
715 - Applied Phil's configure.in fix for --prefix, ...
716 - Fixed bug found by Phil (patch supplied) in updating
717 MD5 signatures (revert to 32 bit FileId, move "static"
718 variables into JCR) (catreq.c fd-cmds.c).
719 - Reverted to using INTEGER for FileId in make_sql_tables
720 due to a bug in MySQL.
721 - Change editing code to %d for FileId.
722 - Remove sqlite in make distclean in cats directory.
723 - Remove console.conf in console during make distclean.
724 - Remove gnome-console.conf during make distclean.
725 - Remove bacula-dir.conf during make distclean.
726 - Set default level when using Console if none specified.
727 Bug reported by Phil.
728 - A simple . command from Console is ignored.
729 - Change program named from filed to bacual-fd in winmain.cpp
730 - Change default config file for Win32 in winmain.cpp
731 - Free namebuf on early return from find_one.c. Bug reported by Phil.
732 - Modify testfind.c to dump orphaned buffers.
733 - Removed terabytes from parse_conf.c because of problems with
735 - Turn off gnome options in gnome-console by constructing empty argv.
736 - Fixes to Verify when only MD5 differs.
737 - Insert 0 for MD5 as default rather than space.
738 - Allow .messages "transparent" command while reading input
740 - In dird/verify.c ensure that correct filename is printed if only
741 the MD5 differs. Minor reindenting caused large diff.
742 - Delete unused code from backup.c
743 - In filed/verify.c ensure that same algorithm as backup.c is used
744 to pass back MD5 signatures -- especially for directories and files
745 that cannot be read. Change dummy filename from X to *MD5-id*.
746 This dummy value should never be printed.
747 - Make gnome-console poll Director every 5 seconds for output.
748 This means that queued up messages are displayed at reasonable
749 intervals. Delete some unused code hanging around from the tty
751 - Begin implementation of prune commands.
752 - Add command line history to gnome-console. Not yet saved across sessions.
753 - Fixed some broken URLs in the manual.
755 - Wrote first cut of "prune files" and "prune jobs".
756 - Added command line history to gnome-console 2500 lines max.
757 - Widened store_time() and associated variables to 64 bits using
758 new btime_t definition.
759 - Removed GNOME about box and replaced it with
760 a somewhat crude Gtk+ about box in the gnome-console.
761 - Widened StartDay in the Job DB record to be 64 bits.
762 - Changed edit_uint_ to edit_uint64_ everywhere. Much more
763 descriptive of what is done.
764 - Removed most llds and replaced them with %s and edit_uint64.
765 This makes the code a bit easier to read for beginners.
766 - Added a btime_t typedef which is 64 bits wide.
767 - Added most of the code needed to do Purge and Prune of
768 database. Not yet tested. Please do not use.
769 - Additional config options for Console.
770 - Started adding code for Automatic Recycling of Volumes.
771 - Allow arbitrary length filenames in Verify code.
772 - Fix incorrect filename in Verify code.
773 - Significant enhancement to number scanning in config parser.
774 - Requires initializing MySQL tables, or applying cats/alter.sql
775 to modify Media table.
776 - Modified Makefile to printer a much more visible
777 message if the make ends in error.
778 - Added the Purge value to the VolStatus in the Media table.
779 This value is set if the Volume is purged.
780 - Enhanced the db_delete_media_record() routine to delete
781 all associated records in the database.
782 - Modified Console to always write to the variable "output"
783 rather than stdout. This will permit directing output to a file.
784 - Enhanced the Console configuration file to have a Console
785 resource. This will allow us to add an rcfile and history file.
786 - Modified Find_next_vol in catreq.c to search for "Recycle"
787 volumes if there are none marked Append. Also made Get_Vol_info
788 return the VolStatus to the Storage daemon.
789 - Allow upper/lower case match on job level names.
790 - Added another warning message to the Console "delete media" command.
791 - Corrected a number of FileId types from uint64_t to FileId_t in
793 - In ua server close database before freeing JCR (because pointer is
794 kept in ua and jcr structures).
795 - parse all numbers as doubles. Do lots of checking for valid number
796 formats. Allow numbers in scientific form (e.g. 1.5e+10).
797 - Remove terabyte modifier as it doesn't work in some compilers.
798 - Fix bug in handling some modifiers.
799 - Added all necessary code for Recycle to Storage daemon. A Volume
800 marked Recycle will now be overwritten.
801 - Filled out the prune command a bit and did some testing.
802 - Make console accept redirected input.
803 - Altered the Table definitions to include Recycle,
804 FileRetention, JobRetention, and AutoPrune.
805 - Widened StartDay to 64 bits.
806 - Use JobId_t in more places.
807 - Added the new table fields to the database record definitions.
808 - Changed Recycle from string to a binary quantity.
809 - Added a Version table with a VersionId to detect.
810 future changes in the database. This should prevent
811 a Bacula from working with a database that is not in sync.
812 - Modify Console to accept input from a file. This will permit
813 the .read command and allow reading a .rc file.
814 - Added new retention and recycle variables to the Director's configuration.
815 - The UA subroutines or commands can now be called from core
816 code because the output routines detect the absence of a
817 UA socket and direct output to the Job.
818 - Added a verbose flage to the ua packet to permit reduction of
819 output while running a UA command (prune) from a Job.
820 - Did a fair amount of work on the prune command. Prune Volume now works.
821 - Purge Volume now works.
822 - Made last changes for integrating prune and purge commands.
823 - Add -ltermcap to CONS_LIBS when readline is configured.
824 More work to be done to search for termcap.
825 - Added cats/drop_sqlite_tables.in, which will delete the SQLite database.
826 - Got CWEB working so that we can compile filesys.w and immortal.w
827 - Modified depkgs to include cweb.
828 - Note, CWEB is not yet used by the core Bacula code.
829 - Made cats/alter.sql, which alters an old database to bring it
830 up to the new format. This only works with MySQL since SQLite does
831 not have the ALTER SQL command.
832 - Changed the old StartDay field in the db to be JobTDate, which is
833 the latest time/date in widened Unix time format that the Job ran.
834 This value is used when doing pruning.
835 - Added code in cats/sql.c to verify that the database internal version
836 corresponds to the db version compiled in Bacula. It is set to 1 currently.
837 - Lots of changes to cats to bring the SQL up to date with the new
838 retention period changes.
839 - Added Console command code to permit changing a Volume's retention period.
840 - Removed old code that used date_encode() and replaced it with widened
842 - Started modifying Message resource scanner so that we can have multiple
843 message resources. Much more work to be done.
844 - Moved scanning for time into new library routine string_to_btime().
846 ===========================================================================
847 2002-04-22 Release 1.18
848 - Applied Phil's configure.in fix for --prefix, ...
849 - Fixed bug found by Phil (patch supplied) in updating
850 MD5 signatures (revert to 32 bit FileId, move "static"
851 variables into JCR) (catreq.c fd-cmds.c).
852 - Reverted to using INTEGER for FileId in make_sql_tables
853 due to a bug in MySQL.
854 - Change editing code to %d for FileId.
855 - Remove sqlite in make distclean in cats directory.
856 - Remove console.conf in console during make distclean
857 - Remove gnome-console.conf during make distclean
858 - Remove bacula-dir.conf during make distclean
859 - Set default level when using Console if none specified.
860 Bug reported by Phil.
861 - A simple . command from Console is ignored.
862 - Change program named from filed to bacual-fd in winmain.cpp
863 - Change default config file for Win32 in winmain.cpp
864 - Free namebuf on early return from find_one.c. Bug reported by
866 - Modify testfind.c to dump orphaned buffers.
867 - Removed terabytes from parse_conf.c because of problems with
869 - Turn off gnome options in gnome-console by constructing empty
872 ===========================================================================
873 2002-04-18 Release 1.17 Kern Sibbald
874 - Ensure that platforms Makefiles are called for clean
876 - Hide a lot of Makefile messages with @
877 - Applied Phil's configure.in patch. Thanks.
878 - Doc updates, many to clarify points brought up by Phil.
879 - Applied Phil's make_mysql_tables.in patch. Thanks.
880 - Made authenticate.c in dird test bnet_send status.
881 - Make label a bit more friendly with extra info message.
882 - Add level 200 to debug info in run command.
883 - Remove old code from findlib/testfind.c so that it compiles.
884 - Add two minute max wait to cram-md5 authentication. Hopefully,
885 this will catch non-responding WinNT daemons.
886 - Allow time and size modifiers to be upper or lower case.
887 - Turn off old CYGWIN patch for pthread_cond_timedwait() bug that
888 now causes File daemon hangs on WinNT.
889 - Fix mount messages for restore. Previous updates to save
890 broke the restore code.
891 - By default write fixed block sizes rather than variable block
892 sizes. My Sony DAT simply does not work (reread failures) with
893 variable block sizes.
894 - Data split across tapes was not being correctly restored
895 (at least on DAT tapes).
896 - Implement MaximumBlockSize and MinumBlockSize statements in
897 Storage daemon so user can specify variable block sizes if
899 - Return error if block checksum error on read (previously
901 - Fixed some error messages in bls, and in some cases exit(1)
902 rather than ABORT. There remain ABORTs to be examined.
903 - Made a local copy of tcpd.h and corrected the function
904 prototype problem for C++.
906 ===========================================================================
907 2002-04-14 First public release 1.16 Kern Sibbald
908 - Many intervening changes/updates.
910 2001-09-29 Release 1.0 Kern Sibbald
911 - Fixes to problems found at John's
913 - See techlogs/kes25Sep01 for details
915 2001-09-25 Release 1.0 Kern Sibbald
916 - Helped John install at his site.
917 He is backing up one Linux machine and
920 2001-mm-dd Many releases
921 - Released internally.
923 2000-04-09 Release 0.4 Kern Sibbald
924 - Added a lot of Director configuration code. In
925 part (a small part), the Director now uses the
926 bacula.conf file to know what to do. There still
928 - The file search code is now integrated into the
929 MySQL database routines, and Bacula is now hooked
930 into the MySQL database (if so configured). Thus
931 all the database records are being created, though
932 there still remains some work in getting all the
933 details into the records (such as the Storage
935 - I've defined how Volume pools work (see manual).
936 - I've defined error message handling though no code
938 - The following resources and records are implemented
939 in the Director configuration file (bacula.conf):
942 Name (passed to Storage daemon)
945 Password (not yet used)
947 Name, Address, Port, Password, MediaType
951 Backup (only one permitted)
954 Schedule, Messages, Pool (not used)
957 Include (options ignored)
963 Debug, syslog, mail, append (not used)
966 Address, Port, Password (not used)
969 PoolType, MediaType (not used)
971 - Added Storage configuration routines.
973 Name, password (verified against those sent by Director)
975 Name, Address, Port (address, port must correspond to Director's values)
978 Name, MediaType (must correspond to those sent by Director)
979 Archive Device (defines device name)
982 2000-03-10 Release 0.3 Kern Sibbald
983 - Implemented new base64 encoding for attributes.
984 This eliminates some of the error messages in the
985 sprintfs on the Solaris due to different stat() sizes.
986 - Implemented the first cut of the file search routines for
987 the File daemon. The exclusion lists work including wild
988 cards. There is a lot of work to be done, but the basic
989 structure is now in place (wild cards do not yet work for
991 - Completed writing the memory pool code. Now I must
992 implement it in the daemons.
993 - Modified the bacula start/stop script so that it has a
994 better chance of working on SGI and Solaris.
995 - The catalog code has not been converted to the new file
998 2000-03-06 Release 0.2 Kern Sibbald
999 - Integrated John's fixes.
1000 - Made Makefiles self configuring when Makefile.in is changed.
1001 - Added a runit script in the top level that runs bacula
1002 - Added a "bacula" script in the top level directory that
1003 starts and stops the File daemon and the Storage daemon.
1005 2000-03-03 Release 0.1 Kern Sibbald
1006 - Basic Director, File, and Storage daemons.
1007 Standalone Catalog services using MySQL
1009 2000-01-22 Kern Sibbald
1010 * Setup basic file structure with ./configure