]> git.sur5r.net Git - bacula/bacula/blob - bacula/ChangeLog
Version 1.22
[bacula/bacula] / bacula / ChangeLog
1 2002-07-07 Release 1.22
2 - All the basic Restore code to handle the boostrap file is
3   now implemented with the exception of the Console Restore command.
4 - Retained compatibility with previous Restore providing no 
5   bootstrap file is specified. However, the old code (JobId based)
6   will go away in a future release.
7 - Fixed a number of segmentation faults in the Console program due
8   to printing of NULL pointers -- thanks to Chuck and his Sun for
9   finding and reporting them -- mostly in ua_output.c.
10
11   From kes25Jun02
12 - Null pointers now are printed as *None* if NPRT() is used.
13 - At the request of Phil, all resources are now chained in in the
14   order they appear in the config file.
15 - Implement Bootstrap record in the Director's config file, which
16   allows you to specify a predefined bootstrap file for Restore Jobs.
17 - Allow Bootstrap on the Restore record. This is deprecated.
18 - Implemented code to pass the Bootstrap file, if defined, to the
19   File daemon, then from the File daemon to the Storage daemon.
20 - Added ability to set Bootstrap file in the Console when running a Restore.
21 - Allow scan_error() routine to be passed to lex_open_file(). This permits
22   using lex in the Storage daemon without worrying that it will ABORT on
23   a syntax error.  More work is needed to direct the error messages correctly.
24 - Improved error messages a bit when config syntax errors are found.
25 - Tested and corrected some errors in match_bsr.c
26 - Removed askdir.c from bls and bextract by defining dummy entry points.
27 - bextract now has bootstrap pretty well integrated.
28 - Changed bextract ABORTs into FATAL and exit(1) or ERROR_TERMINATE.
29   More user friendly.
30 - Eliminated at least one lld and replaced it by edit_uint64() 
31 - Eliminated a few more _PROTO()s.
32 - Corrected a problem with the SQL for in query.sql for 
33   Listing Volumes to Restore All Files
34
35   From kes22Jun02
36 - Additional documentation.
37 - Reduce the time the jcr mutex is locked in lib/jcr.c
38 - More null pointer printing fixes in lib/parse_conf.c (debug output only).
39 - Added daemon filename to Kaboom message so I know what daemon died.
40 - Fix big bad bug introduced in watchdog.c last update that caused
41   a segmentation violation (forgot to check for NULL pointer).
42 - Add a bit more info to bad returns from Stored when starting
43   a job fails.
44
45   From kes21Jun02
46 - Fixed scan_to_eol
47 - Fixed backup scanning forgot one T_STRING -> T_UNQUOTED_STRING
48 - changed all rwlock_t to brwlock_t to avoid conflicts with
49   Solaris library.
50 - Added NPRT() macro to allow printing of NULL pointers, which
51   segment fault on Solaris.
52 - Cast printing of pid_t to int for Solaris compiler.
53
54   From kes20Jun02
55 - Added expect argment to lex_get_token().
56 - Added tree.c and tree.h to lib directory.
57
58   From kes19Jun02
59 - Improvements to the bootstrap compiler
60 - Implemented first cut of bootstrap code in the Storage daemon
61 - Modified the authentication code to be more explicit during 
62   failures.
63 - Added a few more debug message numbers with more arguments (Dmsg10, ...)
64 - Added more and more precise error messages when authentication fails.
65 - Implemented new "expect" codes in the lexical scanner that allows
66   the caller to specify what he wants.                   
67 - Added integer, positive integer, 64 bit integer, and integer ranges,
68   and name scanning to lex.
69 - Implemented new lex code in parse_conf.c, this reduces significantly
70   the code.
71 - Hopefully fixed a watchdog race bug that caused the watchdog to time
72   out a line after 1 hour rather than 6 days.
73
74   From kes15Jun02
75 - Implemented a Bootstrap file parser and matcher.
76 - Implemented first cut of bootstrap code in bextract  
77 - Started clarifying different termination codes.
78 - Added M_ERROR_TERM to immediately terminate the daemon -- no dump.
79   Also changed a few termination codes as appropriate.
80 - Fixed create_jobmedia_record() to include all the fields such as
81   StartFile/EndFile, StartBlock/EndBlock.
82 - Print user friendly message when query mode ends.
83 - Fixed ls style print routines (bextract, bls, restore) to check
84   buffer size, to print the link if any, and to used edit_uint64()
85   instead of %lld.
86 - Moved scan_to_eol() and s_err() to lex.c to avoid dragging in 
87   parse_conf.c for new bsr scanning code.
88 - New files: bsr.h, parse_bsr.c and match_bsr.c. parse_bsr.c parses
89   a Bootstrap file, and match_bsr.c matches a bsr against a tape.
90 - use strcasecmp() in several places instead of lcase().
91 - Add first cut of bootstrap to bextract.
92 - Added File Size limit -- writes EOF after limit exeeded.
93
94 2002-06-12 Release 1.21
95 - Fixed several problems with filenames being truncated if
96   they contain spaces. Thanks to the user that reported this.
97 - N.B. To get the new queries, after the "make" and 
98   "make install" you must explicitly replace the
99   existing query.sql by query.sql.new.  query.sql is a
100   user configuration file, so it is not overwritten.
101 - Added GZIP compression of Included files.  
102 - Added additional fields to tape SOS record permitting better
103   recovery with no database.
104 - Be sure to remove any !terminate statements you may have
105   in your config files.
106 - MUST UPDATE ALL DAEMONS due to protocol change to handle new
107   tape format.
108
109   From kes11Jun02:
110 - Updated examples directory with my most recent config files.
111 - Modified the M_TERM meaning to mean that Bacula has
112   terminated in error without producing a dump. Previously,
113   it meant that Bacula terminate (with or without error).
114   You should remove any !terminate from your messages
115   resources.
116 - Changed the order of the libraries in the link so that
117   tcp wrappers link properly. Thanks Phil for reporting this.
118 - A user reported that filenames containing spaces were truncated
119   in bextract. This was indeed the case. They were also truncated
120   in Restore as well as in Verify. They are, hopefully, all fixed
121   now.
122 - Made a few error conditions in Verify non-fatal.
123 - Modified the Console "query" command to permit multiple SQL
124   statements per command. 
125 - Implemented three new "query" options: 
126     List last 10 Full Backups for a Client
127     List Volumes used by selected JobId
128     List Volumes to Restore All Files
129   To use them, simply type "query" to the Console program, and
130   select the one you want.
131 - Modified bextract to default to extracting all files (i.e. /).
132 - Cleaned up the code in bextract a bit.
133
134   From kes03Jun02:
135 - Improve Verify command to include files examined.
136 - Eliminate fcntl() locking of the console file and replaced
137   it with a pthreads mutex.
138 - Note Director - SD protocol is changed to handle new tape
139   information (Fileset, JobType, JobLevel).
140 - Create config.out that contains a summary of ./configure
141   to see what you previously configured: "cat config.out"
142 - Implemented GZIP compression.  Added addition syntax to
143   Include { } resource to permit setting of any GZIP compression
144   level:
145      compression=GZIP
146      compression=GZIP1
147      ...
148      compression=GZIP9
149
150   Level 1 is minimum compression and level 9 is maximum. Using just
151   GZIP gives the default (level 6).
152 - Enhanced the tape format to include the unique Job name, FileSetName,
153   JobType, and JobLevel in the Start/End of Session records. The code
154   detects that tape level difference and acts accordingly. You can 
155   add data in the new format to old tapes.
156 - Fixed an incorrect display message in the prune command.
157 - Began implementation of Verify Volume and Verify Data.
158 - Cleaned up File daemon restore.c a bit ensuring that termination 
159   cleanup is done and all possible Emsgs are converted to Jmsgs.
160 - Modify bls.c to use common setup routines. This reduced the big
161   code duplication that creeped in when I added different listing
162   options. Also, changing tapes is now handled uniformily in a subroutine.
163
164
165 2002-05-27 Release 1.20
166 - Started documenting Catalog Pruning and Recycling.
167   Added catmaintenance.html and recycling.html
168 - Fixed the query command bug.
169 - Implemented PID files to prevent two copies of Bacula
170   from running at the same time. Be sure you --with-pid-dir
171   points to a working directory.
172 - Modified ASSERT() to cause a segmentation violation. This
173   permits a core dump.
174 - Worked on gnome-console. It paints better, it tells you if it
175   is ready to accept a command or processing one, and it is
176   almost entirely GTK+ (rather than GNOME, I'm removing GNOME
177   a bit at a time).
178 - Limit to 100 the number of tape labeling errors in a single Job.
179 - Add some additional ASSERT()s to the database routines. I don't
180   like ASSERTs but they do catch bugs.
181 - Tested and debugged recycling of Volumes.  Needed to change
182   the Director-SD protocol slightly.
183 - Removed the experimental SIGHUP in the Director as it is a
184   potential source of errors.
185 - Added Level, Pool, Messages, and Storage keyword/value scanning
186   to the Schedule Run record.
187 - Improved printing of Schedule resources with "show schedules"
188 - Do not autoprune Jobs/Files if the Job errs.
189 - Updated newvol() to pass back the updated Media record.   
190 - Fixed the "update pool" command, which was broken during a much
191   earlier code reorganization.
192 - Improved a few of the pruning messages.
193 - Removed readline inclusions from gnome-console (hang over from console).
194 - Make Jmsg use daemon message handler if no message handler is defined.
195   This is always the case in the SD and FD.
196 - Started removing __PROTO(). With C++ prototypes are manditory, so why
197   keep around legacy code.
198 - Added a good deal of message internationalization -- more to be done.
199 - Move cached Path into mdb structure and use POOLMEM.
200 - Fix verify bug introduced last update causing incorrect diffs 
201   by turning off autopruning.
202 - Started adding code to distinguish Errors from Fatal Errors.
203 - Errors are now counted in message.c for a Job.
204 - More POOLMEM cleanups.
205 - Implemented Automatic pruning.
206 - Implemented Automatic recycling of Volumes.
207 - Added PruneJobs/Files/Volumes=yes or no to Job resource. If set,
208   it forces the specified pruning.
209 - Modified rwlock to accept multiple nested write lock
210   requests.
211 - Modified the cats directory to use the new rwlock mechanism
212   in place of P() and V(). 
213 - Defined db_lock(mdb) and db_unlock(mdb). They are in effect
214   transaction locks. 
215 - Add CVS Id's to most files.
216 - Made first cut at AutoPrune
217 - Added new autoprune file that is called at the end of
218   each Job. It then decides when and what to prune and
219   calls the UA prune routines.
220 - Modified Run (in Schedule resource) to permit overrides of
221   Level, Pool, Storage, and Messages. (not tested).
222 - Added more POOLMEM in place of char.
223 - Implemented daemon pid files. This prevents multiple 
224   daemons from running simultaneously. You can run multiple
225   daemons if they listen on different ports.
226 - Documented the Schedule resource a bit better.
227 - Began gently adding a POOLMEM type (perviously void).
228   For the moment it is a #define to char, but long term
229   it should be its own typedef.
230 - Corrected a bit of spacing on the status bar of gnome-console
231 - Added Admin and Archive Job types.
232 - Implemented multiple Messages resources. Each daemon has
233   its own message resource, which defaults if not defined.
234   Jobs may now have different message handlers.
235 - Cleaned up a bit of duplicate code in backup, verify, and
236   restore by creating appropriate subroutines in job.c
237 - Added Type, Client, FileSet, and Level resource record
238   definitions to the Director. These can be used in place
239   of the Backup = ..., Verify = ..., ... commands.  This needs
240   documenting.
241 - Corrected an incorrect message in the prune code and added
242   the number of Files pruned in the message.
243 - Corrected several paint problems with gnome-console.
244 - Added a bit of printout in signal handler during traceback.
245 - Cleaned up most of sm_check() to be turned on/off by define
246   in version.h
247
248 2002-05-10 Release 1.19
249 - Allow the user to select a new period for pruning.
250 - Lots of additions to the manual -- prune and purge
251   commands documented.
252 - Applied Phil's configure.in fix for --prefix, ...
253 - Fixed bug found by Phil (patch supplied) in updating
254   MD5 signatures (revert to 32 bit FileId, move "static"
255   variables into JCR) (catreq.c fd-cmds.c).
256 - Reverted to using INTEGER for FileId in make_sql_tables
257   due to a bug in MySQL.
258 - Change editing code to %d for FileId.
259 - Remove sqlite in make distclean in cats directory.
260 - Remove console.conf in console during make distclean.
261 - Remove gnome-console.conf during make distclean.
262 - Remove bacula-dir.conf during make distclean.
263 - Set default level when using Console if none specified.
264   Bug reported by Phil.
265 - A simple . command from Console is ignored.   
266 - Change program named from filed to bacual-fd in winmain.cpp
267 - Change default config file for Win32 in winmain.cpp
268 - Free namebuf on early return from find_one.c. Bug reported by Phil.
269 - Modify testfind.c to dump orphaned buffers.
270 - Removed terabytes from parse_conf.c because of problems with
271   older gcc compilers.
272 - Turn off gnome options in gnome-console by constructing empty argv.
273 - Fixes to Verify when only MD5 differs.
274 - Insert 0 for MD5 as default rather than space.
275 - Allow .messages "transparent" command while reading input
276   in UserAgent server.
277 - In dird/verify.c ensure that correct filename is printed if only
278   the MD5 differs. Minor reindenting caused large diff.
279 - Delete unused code from backup.c
280 - In filed/verify.c ensure that same algorithm as backup.c is used
281   to pass back MD5 signatures -- especially for directories and files
282   that cannot be read. Change dummy filename from X to *MD5-id*.
283   This dummy value should never be printed.
284 - Make gnome-console poll Director every 5 seconds for output.
285   This means that queued up messages are displayed at reasonable
286   intervals. Delete some unused code hanging around from the tty
287   console program.
288 - Begin implementation of prune commands.
289 - Add command line history to gnome-console. Not yet saved across sessions.
290 - Fixed some broken URLs in the manual.
291 - Added JobId type.
292 - Wrote first cut of "prune files" and "prune jobs".
293 - Added command line history to gnome-console 2500 lines max.
294 - Widened store_time() and associated variables to 64 bits using
295   new btime_t definition.
296 - Removed GNOME about box and replaced it with 
297   a somewhat crude Gtk+ about box in the gnome-console.
298 - Widened StartDay in the Job DB record to be 64 bits.
299 - Changed edit_uint_ to edit_uint64_ everywhere. Much more
300   descriptive of what is done.
301 - Removed most llds and replaced them with %s and edit_uint64.
302   This makes the code a bit easier to read for beginners.
303 - Added a btime_t typedef which is 64 bits wide.
304 - Added most of the code needed to do Purge and Prune of
305   database. Not yet tested. Please do not use.
306 - Additional config options for Console.
307 - Started adding code for Automatic Recycling of Volumes.
308 - Allow arbitrary length filenames in Verify code.
309 - Fix incorrect filename in Verify code.
310 - Significant enhancement to number scanning in config parser.
311 - Requires initializing MySQL tables, or applying cats/alter.sql
312   to modify Media table.
313 - Modified Makefile to printer a much more visible
314   message if the make ends in error.
315 - Added the Purge value to the VolStatus in the Media table.
316   This value is set if the Volume is purged.
317 - Enhanced the db_delete_media_record() routine to delete
318   all associated records in the database.
319 - Modified Console to always write to the variable "output"       
320   rather than stdout. This will permit directing output to a file.
321 - Enhanced the Console configuration file to have a Console 
322   resource. This will allow us to add an rcfile and history file.
323 - Modified Find_next_vol in catreq.c to search for "Recycle"
324   volumes if there are none marked Append. Also made Get_Vol_info
325   return the VolStatus to the Storage daemon.
326 - Allow upper/lower case match on job level names.
327 - Added another warning message to the Console "delete media" command.
328 - Corrected a number of FileId types from uint64_t to FileId_t in
329   ua_retention.c.
330 - In ua server close database before freeing JCR (because pointer is
331   kept in ua and jcr structures).
332 - parse all numbers as doubles. Do lots of checking for valid number
333   formats. Allow numbers in scientific form (e.g. 1.5e+10).
334 - Remove terabyte modifier as it doesn't work in some compilers.
335 - Fix bug in handling some modifiers.
336 - Added all necessary code for Recycle to Storage daemon. A Volume
337   marked Recycle will now be overwritten.
338 - Filled out the prune command a bit and did some testing.
339 - Make console accept redirected input.
340 - Altered the Table definitions to include Recycle,
341   FileRetention, JobRetention, and AutoPrune.
342 - Widened StartDay to 64 bits.
343 - Use JobId_t in more places. 
344 - Added the new table fields to the database record definitions.
345 - Changed Recycle from string to a binary quantity.
346 - Added a Version table with a VersionId to detect.
347   future changes in the database. This should prevent
348   a Bacula from working with a database that is not in sync.
349 - Modify Console to accept input from a file. This will permit
350   the .read command and allow reading a .rc file.
351 - Added new retention and recycle variables to the Director's configuration.
352 - The UA subroutines or commands can now be called from core
353   code because the output routines detect the absence of a 
354   UA socket and direct output to the Job.
355 - Added a verbose flage to the ua packet to permit reduction of
356   output while running a UA command (prune) from a Job.
357 - Did a fair amount of work on the prune command. Prune Volume now works.
358 - Purge Volume now works.
359 - Made last changes for integrating prune and purge commands.
360 - Add -ltermcap to CONS_LIBS when readline is configured.
361   More work to be done to search for termcap.
362 - Added cats/drop_sqlite_tables.in, which will delete the SQLite database.
363 - Got CWEB working so that we can compile filesys.w and immortal.w
364 - Modified depkgs to include cweb.             
365 - Note, CWEB is not yet used by the core Bacula code.
366 - Made cats/alter.sql, which alters an old database to bring it
367   up to the new format. This only works with MySQL since SQLite does
368   not have the ALTER SQL command.
369 - Changed the old StartDay field in the db to be JobTDate, which is
370   the latest time/date in widened Unix time format that the Job ran.
371   This value is used when doing pruning.
372 - Added code in cats/sql.c to verify that the database internal version
373   corresponds to the db version compiled in Bacula. It is set to 1 currently.
374 - Lots of changes to cats to bring the SQL up to date with the new 
375   retention period changes.
376 - Added Console command code to permit changing a Volume's retention period.
377 - Removed old code that used date_encode() and replaced it with widened
378   Unix time().
379 - Started modifying Message resource scanner so that we can have multiple
380   message resources. Much more work to be done.
381 - Moved scanning for time into new library routine string_to_btime().
382
383 2002-04-22 Release 1.18
384 - Applied Phil's configure.in fix for --prefix, ...
385 - Fixed bug found by Phil (patch supplied) in updating
386   MD5 signatures (revert to 32 bit FileId, move "static"
387   variables into JCR) (catreq.c fd-cmds.c).
388 - Reverted to using INTEGER for FileId in make_sql_tables
389   due to a bug in MySQL.
390 - Change editing code to %d for FileId.
391 - Remove sqlite in make distclean in cats directory.
392 - Remove console.conf in console during make distclean
393 - Remove gnome-console.conf during make distclean
394 - Remove bacula-dir.conf during make distclean
395 - Set default level when using Console if none specified.
396   Bug reported by Phil.
397 - A simple . command from Console is ignored.   
398 - Change program named from filed to bacual-fd in winmain.cpp
399 - Change default config file for Win32 in winmain.cpp
400 - Free namebuf on early return from find_one.c. Bug reported by
401   Phil.
402 - Modify testfind.c to dump orphaned buffers.
403 - Removed terabytes from parse_conf.c because of problems with
404   older gcc compilers.
405 - Turn off gnome options in gnome-console by constructing empty
406   argv.
407
408 2002-04-18 Release 1.17 Kern Sibbald
409 - Ensure that platforms Makefiles are called for clean  
410   and distclean.
411 - Hide a lot of Makefile messages with @
412 - Applied Phil's configure.in patch. Thanks.
413 - Doc updates, many to clarify points brought up by Phil.
414 - Applied Phil's make_mysql_tables.in patch. Thanks.
415 - Made authenticate.c in dird test bnet_send status.
416 - Make label a bit more friendly with extra info message.
417 - Add level 200 to debug info in run command.
418 - Remove old code from findlib/testfind.c so that it compiles.
419 - Add two minute max wait to cram-md5 authentication. Hopefully,
420   this will catch non-responding WinNT daemons.
421 - Allow time and size modifiers to be upper or lower case.
422 - Turn off old CYGWIN patch for pthread_cond_timedwait() bug that
423   now causes File daemon hangs on WinNT.
424 - Fix mount messages for restore. Previous updates to save
425   broke the restore code.
426 - By default write fixed block sizes rather than variable block
427   sizes.  My Sony DAT simply does not work (reread failures) with
428   variable block sizes.
429 - Data split across tapes was not being correctly restored
430   (at least on DAT tapes). 
431 - Implement MaximumBlockSize and MinumBlockSize statements in
432   Storage daemon so user can specify variable block sizes if
433   desired.
434 - Return error if block checksum error on read (previously 
435   ignored).
436 - Fixed some error messages in bls, and in some cases exit(1)
437   rather than ABORT. There remain ABORTs to be examined.
438 - Made a local copy of tcpd.h and corrected the function 
439   prototype problem for C++.
440
441 2002-04-14 First public release 1.16 Kern Sibbald
442  - Many intervening changes/updates.
443
444 2001-09-29 Release 1.0 Kern Sibbald
445  - Fixes to problems found at John's
446    installation.
447  - See techlogs/kes25Sep01 for details
448
449 2001-09-25 Release 1.0 Kern Sibbald
450  - Helped John install at his site.
451    He is backing up one Linux machine and
452    one Win2000 machine.
453
454 2001-mm-dd Many releases
455  - Released internally.
456   
457 2000-04-09 Release 0.4 Kern Sibbald
458  - Added a lot of Director configuration code. In      
459    part (a small part), the Director now uses the
460    bacula.conf file to know what to do. There still
461    remains a lot to do.
462  - The file search code is now integrated into the
463    MySQL database routines, and Bacula is now hooked
464    into the MySQL database (if so configured). Thus
465    all the database records are being created, though
466    there still remains some work in getting all the
467    details into the records (such as the Storage 
468    coordinates).
469  - I've defined how Volume pools work (see manual).
470  - I've defined error message handling though no code
471    is yet written.
472  - The following resources and records are implemented
473    in the Director configuration file (bacula.conf):
474     
475    Director
476      Name (passed to Storage daemon)
477    Client
478      Name, Address, Port
479      Password (not yet used)
480    Storage    
481      Name, Address, Port, Password, MediaType
482    Job
483      Name    
484      Type (not yet used)
485      Backup (only one permitted) 
486        Client, FileSet
487      Storage
488      Schedule, Messages, Pool (not used)
489    FileSet
490      Name  
491      Include (options ignored)
492      Exclude (no options)
493    Schedule (not used)
494      Name
495    Messages (not used)
496      Name       
497      Debug, syslog, mail, append (not used)
498    Catalog
499      Name
500      Address, Port, Password (not used)
501    Pool (not used)
502      Name
503      PoolType, MediaType (not used)
504
505  - Added Storage configuration routines.
506    Director
507      Name, password (verified against those sent by Director)
508    Storage
509      Name, Address, Port (address, port must correspond to Director's values)
510      Password, MediaType
511    Device
512      Name, MediaType (must correspond to those sent by Director)
513      Archive Device (defines device name)
514
515
516
517 2000-03-10 Release 0.3 Kern Sibbald
518  - Implemented new base64 encoding for attributes.
519    This eliminates some of the error messages in the
520    sprintfs on the Solaris due to different stat() sizes.
521  - Implemented  the first cut of the file search routines for
522    the File daemon.  The exclusion lists work including wild
523    cards.   There is a lot of work to be done, but the basic
524    structure is now in place (wild cards do not yet work for
525    the include).
526  - Completed writing the memory pool code.  Now I must
527    implement it in the daemons.
528  - Modified the bacula start/stop script so that it has a
529    better chance of working on SGI and Solaris.
530  - The catalog code has not been converted to the new file
531    search code.
532
533 2000-03-06 Release 0.2 Kern Sibbald
534  - Integrated John's fixes.
535  - Made Makefiles self configuring when Makefile.in is changed.
536  - Added a runit script in the top level that runs bacula
537  - Added a "bacula" script in the top level directory that
538    starts and stops the File daemon and the Storage daemon.
539
540 2000-03-03 Release 0.1 Kern Sibbald
541  - Basic Director, File, and Storage daemons.
542    Standalone Catalog services using MySQL
543
544 2000-01-22 Kern Sibbald
545    * Setup basic file structure with ./configure