9 - Document running multiple Jobs
10 - Document that two Verifys at same time on same client do not work.
11 - Document how to recycle a tape in 7 days even if the backup takes a long time.
12 - Document default config file locations.
13 - Document better includes (does it cross file systems ?).
14 - Document specifically how to add new File daemon to config files.
15 - Document forcing a new tape to be used.
16 - Document "Error in message.c:500 Mail program terminated in error.
19 --bindir is wrong and does not reflect prefix= in the *_sqlite_* scripts
21 --top level configure options are not passed to the depkgs, particularly
23 --Also, it might be better to split the depkgs location from the --with-sqlite
25 --should be able to specify e.g. --with-sqlite=/opt/local and have it find
26 lib, bin, sbin for itself
27 I tried this and it didn't find sqlite.h
30 - Check if GZIP1 is working -- check speed.
31 - Put MaximumVolumeSize in Director.
32 - Document how to cancel a job that is waiting on a Volume.
33 Must "cancel" then "mount".
34 - Document to have patience when SD first starts.
35 - Document running a test version.
36 - When Marking a file in Restore that is a hard link, also
37 mark the link so that the data will be reloaded.
38 - Restore program that errors in SD due to no tape reports
39 OK incorrectly in output.
40 - Make BSR accept count (total files to be restored).
41 - Make BSR return next_block when it knows record is not
42 in block, done when count is reached, and possibly other
43 optimizations. I.e. add a state word.
44 - After unmount, if restore job started, ask to mount.
45 - Fix db_get_fileset in cats/sql_get.c for multiple records.
46 - Fix start/end blocks for File devices
47 - Add new code to scheduler.c and run_conf.c
48 - Volume Bytes shows bytes on last volume written in Job summary.
49 - Fix catalog filename truncation in sql_get and sql_create. Use
50 only a single filename split routine.
51 - Add command to reset VolFiles to a larger value (don't allow
52 a smaller number or print big warning).
53 - Make SD disallow writing on Volume with fewer files than in
55 - Make Restore report an error if FD or SD term codes are not OK.
56 - Convert all %x substitution variables, which are hard to remember
57 and read to %(variable-name). Idea from TMDA.
58 - Report compression % and other compression statistics if turned on.
59 - Add JobLevel in FD status (but make sure it is defined).
60 - Make Pool resource handle Counter resources.
61 - Remove NextId for SQLite. Optimize.
62 - Fix gethostbyname() to use gethostbyname_r()
63 - Implement ./configure --with-client-only
64 - Strip trailing / from Include
65 - Move all SQL statements into a single location.
66 - Cleanup db_update_media and db_update_pool
67 - Add UA rc and history files.
68 - put termcap (used by console) in ./configure and
69 allow -with-termcap-dir.
70 - Remove JobMediaId it is not used.
71 - Enhance time and size scanning routines.
72 - Fix Autoprune for Volumes to respect need for full save.
73 - DateWritten field on tape may be wrong.
74 - Fix Win32 config file definition name on /install
75 - No READLINE_SRC if found in alternate directory.
76 - Add Client FS/OS id (Linux, Win95/98, ...).
77 - Put Windows files in Windows stream?
78 - Ensure that everyone uses btime routines.
82 Bacula Projects Roadmap
85 Item 1: Multiple simultaneous Jobs. (done)
87 What: Permit multiple simultaneous jobs in Bacula.
89 Why: An enterprise level solution needs to go fast without the
90 need for the system administrator to carefully tweak
91 timing. Based on the benchmarks, during a full
92 backup, NetWorker typically hit 10 times the bandwidth to
93 the tape compared to Bacula--largely. This is probably due to
94 running parallel jobs and multi-threaded filling of buffers
95 and writing them to tape. This should also make things work
96 better when you have a mix of fast and slow machines backing
99 Notes: Bacula was designed to run multiple simultaneous jobs. Thus
100 implementing this is a matter of some small cleanups and
104 Item 2: Make the Storage daemon use intermediate file storage to buffer data.
107 What: If data is coming into the SD too fast, buffer it to
108 disk if the user has configured this option.
110 Why: This would be nice, especially if it more or less falls out
111 when implementing (1) above. If not, it probably should not
112 be given a high priority because fundamentally the backup time
113 is limited by the tape bandwidth. Even though you may finish a
114 client job quicker by spilling to disk, you still have to
115 eventually get it onto tape. If intermediate disk buffering
116 allows us to improve write bandwidth to tape, it may make
119 Notes: Whether or not this is implemented will depend upon performance
120 testing after item 1 is implemented.
123 Item 3: Write the bscan program.
125 What: Write a program that reads a Bacula tape and puts all the
126 appropriate data into the catalog. This allows recovery
127 from a tape that is no longer in the database, or it allows
128 re-creation of a database if lost.
130 Why: This is a fundamental robustness and disaster recovery tool
131 which will increase the comfort level of a sysadmin
132 considering adopting Bacula.
134 Notes: A skeleton of this program already exists, but much work
135 needs to be done. Implementing this will also make apparent
136 any deficiencies in the current Bacula tape format.
139 Item 4: Implement Base jobs.
141 What: A base job is sort of like a Full save except that you
142 will want the FileSet to contain only files that are unlikely
143 to change in the future (i.e. a snapshot of most of your
144 system after installing it). After the base job has been run,
145 when you are doing a Full save, you can specify to exclude
146 all files saved by the base job that have not been modified.
148 Why: This is something none of the competition does, as far as we know
149 (except BackupPC, which is a Perl program that saves to disk
150 only). It is big win for the user, it makes Bacula stand out
151 as offering a unique optimization that immediately saves time
154 Notes: Big savings in tape usage. Will require more resources because
155 the e. DIR must send FD a list of files/attribs, and the FD must
156 search the list and compare it for each file to be saved.
159 Item 5: Implement Label templates
161 What: This is a mechanism whereby Bacula can automatically create
162 a tape label for new tapes according to a detailed specification
163 provided by the user.
165 Why: It is a major convenience item for folks who use automated label
168 Notes: Bacula already has a working form of automatic tape label
169 creation, but it is very crude. The design for the complete
170 tape labeling project is already documented in the manual.
173 Item 6: Write a regression script.
175 What: This is an automatic script that runs and tests as many features
176 of Bacula as possible. The output is compared to previous
177 versions of Bacula and any differences are reported.
179 Why: This is an enormous help in preventing introduction of new
180 errors in parts of the program that already work correctly.
182 Notes: This probably should be ranked higher, it's something the typical
183 user doesn't see. Depending on how it's implemented, it may
184 make sense to defer it until the archival tape format and
185 user interface mature.
188 Item 7: GUI for interactive restore
189 Item 8: GUI for interactive backup
191 What: The current interactive restore is implemented with a tty
192 interface. It would be much nicer to be able to "see" the
193 list of files backed up in typical GUI tree format.
194 The same mechanism could also be used for creating
195 ad-hoc backup FileSets (item 8).
197 Why: Ease of use -- especially for the end user.
199 Notes: Rather than implementing in Gtk, we probably should go directly
200 for a Browser implementation, even if doing so meant the
201 capability wouldn't be available until much later. Not only
202 is there the question of Windows sites, most
203 Solaris/HP/IRIX, etc, shops can't currently run Gtk programs
204 without installing lots of stuff admins are very wary about.
205 Real sysadmins will always use the command line anyway, and
206 the user who's doing an interactive restore or backup of his
207 own files will in most cases be on a Windows machine running
211 Item 9: Add SSL to daemon communications.
213 What: This provides for secure communications between the daemons.
215 Why: This would allow doing backup across the Internet without
216 privacy concerns (or with much less concern).
218 Notes: The vast majority of near term potential users will be backing up
219 a single site over a LAN and, correctly or not, they probably
220 won't be concerned with security, at least not enough to go to
221 the trouble to set up keys, etc. to screw things down. We suspect
222 that many users genuinely interested in multi-site backup
223 already run some form of VPN software in their internetwork
224 connections, and are willing to delegate security to that layer.
227 Item 10: Define definitive tape format.
229 What: Define that definitive tape format that will not change
230 for the next millennium.
232 Why: Stability, security.
234 Notes: See notes for item 11 below.
237 Item 11: New daemon communication protocol.
239 What: The current daemon to daemon protocol is basically an ASCII
240 printf() and sending the buffer. On the receiving end, the
241 buffer is sscanf()ed to unpack it. The new scheme would
242 be a binary format that allows quick packing and unpacking
243 of any data type with named fields.
245 Why: Using binary packing would be faster. Named fields will permit
246 error checking to ensure that what is sent is what the
247 receiver really wants.
249 Notes: These are internal improvements in the interest of the
250 long-term stability and evolution of the program. On the one
251 hand, the sooner they're done, the less code we have to rip
252 up when the time comes to install them. On the other hand, they
253 don't bring an immediately perceptible benefit to potential
254 users. Item 10 and possibly item 11 should be deferred until Bacula
255 is well established with a growing user community more or
256 less happy with the feature set. At that time, it will make a
257 good "next generation" upgrade in the interest of data
262 I haven't put these in any particular order.
265 - Rework Storage daemon with new rwl_lock routines.
266 - Compare tape to Client files (attributes, or attributes and data)
267 - Restore options (overwrite, overwrite if older,
268 overwrite if newer, never overwrite, ...)
269 - Restore to a particular time -- e.g. before date, after date.
270 - On command write out a bootstrap file (at end of job).
271 - Make all database Ids 64 bit.
272 - Pass JCR to database routines permitting better error printing.
273 - Make bls accept bootstrap record.
274 - Write an applet for Linux.
275 - Make SD reject writing on tape where Catalog and tape # files
276 don't agree (possibly OK if tape > catalog).
277 - Implement new daemon communications protocol.
278 - Add DIR config directive to spool attributes.
279 - Pass DIR config variable to SD for no attributes.
280 - Create JobMedia record for all running Jobs when Media changes.
281 - Send Volumes needed during restore to Console (just after
282 create_volume_list) -- also in restore command?
283 - Add estimate to Console commands
284 - Find solution to blank filename (i.e. path only) problem.
287 mysqldump -f --opt bacula >bacula
291 - Remove PoolId from Job table, it exists in Media.
292 - Allow console commands to detach or run in background.
293 - Fix status delay on storage daemon during rewind.
294 - Add VerNo to each Session label record.
295 - Add Job to Session records.
296 - Add VOLUME_CAT_INFO to the EOS tape record (as
297 well as to the EOD record).
298 - Add SD message variables to control operator wait time
299 - Maximum Operator Wait
300 - Minimum Message Interval
301 - Maximum Message Interval
302 - Add EOM handling variables
304 - Require EOD records
305 - Send Operator message when cannot read tape label.
306 - Think about how to handle I/O error on MTEOM.
307 - If Storage daemon aborts a job, ensure that this
308 is printed in the error message.
309 - Verify level=Volume (scan only), level=Data (compare of data to file).
310 Verify level=Catalog, level=InitCatalog
312 - Cold start full restore (restore catalog then
313 user selects what to restore). Write summary file containing only
314 Job, Media, and Catalog information. Store on another machine.
315 - Dump/Restore database
318 - Add keyword search to show command in Console.
319 - Fix Win2000 error with no messages during startup.
320 - Events : tape has more than xxx bytes.
321 - In Storage daemon, status should include job cancelled.
322 - Write general list maintenance subroutines.
323 - Implement immortal format with EDOs.
324 - Restrict characters permitted in a Resource name.
325 - Provide definitive identification of type in backup.
326 - Complete code in Bacula Resources -- this will permit
327 reading a new config file at any time.
328 - Document new Console
329 - Handle ctl-c in Console
330 - Test restore of Windows backup
331 - Implement LabelTemplate (at least first cut).
332 - Implement script driven addition of File daemon to
335 - Bug: anonymous Volumes requires mount in some cases.
336 - see setgroup and user for Bacula p4-5 of stunnel.c
337 - Implement new serialize subroutines
338 send(socket, "string", &Vol, "uint32", &i, NULL)
339 - Add save type to Session label.
340 - Correct date on Session label.
341 - On I/O error, write EOF, then try to write again.
342 - Audit all UA commands to ensure that we always prompt where
344 - If ./btape is called without /dev, assume argument is
345 a Storage resource name.
346 - Put memory utilization in Status output of each daemon
347 if full status requested or if some level of debug on.
348 - Make database type selectable by .conf files i.e. at runtime
349 - gethostbyname failure in bnet_connect() continues
350 generating errors -- should stop.
351 - Don't create a volume that is already written. I.e. create only once.
352 - If error at end of tape, implement some way to kill waiting processes.
353 - Add HOST to Volume label.
354 - Set flag for uname -a. Add to Volume label.
355 - Implement throttled work queue.
356 - Write bscan program that will syncronize the DB Media record with
357 the contents of the Volume -- for use after a crash.
358 - Check for EOT at ENOSPC or EIO or ENXIO (unix Pc)
359 - Allow multiple Storage specifications (or multiple names on
360 a single Storage specification) in the Job record. Thus a job
361 can be backed up to a number of storage devices.
362 - Implement full MediaLabel code.
363 - Implement dump label to UA
364 - Copy volume using single drive.
365 - Copy volume with multiple driven (same or different block size).
366 - Add block size (min, max) to Vol label.
367 - Concept of VolumeSet during restore which is a list
368 of Volume names needed.
369 - Restore files modified after date
370 - Restore file modified before date
371 - Emergency restore info:
373 - Backup working directory
375 - Restore options (do not overwrite)
376 - Restore -- do nothing but show what would happen
377 - SET LD_RUN_PATH=$HOME/mysql/lib/mysql
378 - Put Job statistics in End Session Label (files saved,
379 total bytes, start time, ...).
380 - Put FileSet name in the SOS label.
381 - Implement Restore FileSet=
382 - Write a scanner for the UA (keyword, scan-routine, result, prompt).
383 - Create a protocol.h and protocol.c where all protocol messages
385 - If SD cannot open a drive, make it periodically retry.
386 - Put Bacula version somewhere in Job stream, probably Start Session
388 - Remove duplicate fields from jcr (e.g. jcr.level and
390 - Timout a job or terminate if link goes down, or reopen link and query.
391 - Define how we handle times to avoid problem with Unix dates (2049 ?).
392 - Fill all fields in Vol/Job Header -- ensure that everything
393 needed is written to tape. Think about restore to Catalog
394 from tape. Client record needs improving.
395 - Find general solution for sscanf size problems (as well
396 as sprintf. Do at run time?
398 - Concept of precious tapes (cannot be reused).
399 - Allow FD to run from inetd ???
400 - Preprocessing command per file.
401 - Postprocessing command per file (when restoring).
403 - Restore should get Device and Pool information from
404 job record rather than from config.
405 - Autolabel should be specified by DR instead of SD.
406 - Ability to recreate the catalog from a tape.
407 - Find out how to get the system tape block limits, e.g.:
408 Apr 22 21:22:10 polymatou kernel: st1: Block limits 1 - 245760 bytes.
409 Apr 22 21:22:10 polymatou kernel: st0: Block limits 2 - 16777214 bytes.
412 - AutoScan (check checksum of tape)
413 - Format command = "format /dev/nst0"
417 - Seek resolution (usually corresponds to buffer size)
418 - EODErrorCode=ENOSPC or code
419 - Partial Read error code
420 - Partial write error code
421 - Nonformatted read error
422 - Nonformatted write error
423 - WriteProtected error
427 - IgnoreCloseErrors=yes
437 - Eliminate duplicate File records to shrink database.
438 - FD sends unsaved file list to Director at end of job.
439 - Write a Storage daemon that uses pipes and
440 standard Unix programs to write to the tape.
442 - Need something that monitors the JCR queue and
443 times out jobs by asking the deamons where they are.
444 - Add daemon JCR JobId=0 to have a daemon context
448 - Client (list of clients to force client)
449 - Devices (list of devices to force device)
454 - Recycle from other pools: Yes, No
455 - Recycle to other pools: Yes, no
458 - Optional MediaType to force media?
469 if(connect(sockfd, (struct sockaddr * ) (& addr), sizeof(addr)) .lt. 0){
475 linger.l_linger = 60;
476 i = setsockopt(sockfd, SOL_SOCKET, SO_LINGER, (char *) &linger,
479 fl = fcntl(sockfd, F_GETFL);
480 fcntl(sockfd, F_SETFL, fl & (~ O_NONBLOCK) & (~ O_NDELAY));
482 - Enhance Jmsg code to permit buffering and saving to disk.
483 - device driver = "xxxx" for drives.
484 - restart: paranoid: read label fsf to
485 eom read append block, and go
486 super-paranoid: read label, read all files
487 in between, read append block, and go
488 verify: backspace, read append block, and go
489 permissive: same as above but frees drive
490 if tape is not valid.
492 - Ensure that /dev/null works
493 - File daemon should build list of files skipped, and then
494 at end of save retry and report any errors.
495 - Need report class for messages. Perhaps
496 report resource where report=group of messages
498 - enhance scan_attrib and rename scan_jobtype, and
499 fill in code for "since" option
500 - To buffer messages, we need associated jobid and Director name.
501 - Need to save contents of FileSet to tape?
502 - Director needs a time after which the report status is sent
503 anyway -- or better yet, a retry time for the job.
504 Don't reschedule a job if previous incarnation is still running.
505 - Figure out how to save the catalog (possibly a special FileSet).
506 - Figure out how to restore the catalog.
507 - Figure out how to put a Volume into the catalog (from the tape)
508 - Figure out how to do a restore from a Volume
509 - Some way to automatically backup everything is needed????
510 - Need a structure for pending actions:
512 - termination status (part of buffered msgs?)
513 - Concept of grouping Storage devices and job can use
514 any of a number of devices
516 Read, Write, Clean, Delete
517 - Login to Bacula; Bacula users with different permissions:
519 - Tape recycle destination
520 - Job Schedule Status
524 - File daemon should pass Director the operating system info
525 to be stored in the Client Record (or verified that it has
527 - Store info on each file system type (probably in the job header on tape.
528 This could be the output of df; or perhaps some sort of /etc/mtab record.
531 - Use media 1 time (so that we can do 6 days of incremental
532 backups before switching to another tape) (already)
533 specify # times (jobs)
534 specify bytes (already)
535 specify time (seconds, hours, days)
536 - Implement FSM (File System Modules).
537 - Identify unchanged or "system" files and save them to a
538 special tape thus removing them from the standard
539 backup FileSet -- BASE backup.
540 - Turn virutally all sprintfs into snprintfs.
541 - Heartbeat between daemons.
542 - Audit M_ error codes to ensure they are correct and consistent.
543 - Add variable break characters to lex analyzer.
544 Either a bit mask or a string of chars so that
545 the caller can change the break characters.
546 - Make a single T_BREAK to replace T_COMMA, etc.
547 - Ensure that File daemon and Storage daemon can
548 continue a save if the Director goes down (this
549 is NOT currently the case). Must detect socket error,
550 buffer messages for later.
553 Done: (see kernsdone for more)
554 --the console script is broken as installed and has to be hand-massaged with
555 paths, config files etc.
556 - Termination status in FD for Verify = C -- incorrect.
557 - Implement alter_sqlite_tables
558 - Fix scheduler -- see "Hourly cycle". It doesn't do both each
559 hour, rather it alternates between 0:05 and 0:35.
560 - Create Counter DB records.
561 - Fix db_get_job_volume_names() to return array of strings (now works
563 - Eliminate MySQL shared libraries from smtp and daemons not using MySQL.
564 - Compare tape File attributes to Catalog.
565 (File attributes are size, dates, MD5, but not
567 - Report bad status from smtp or mail program.
568 - Ensure that Start/End File/Block are correct.
569 - If MySQL database is not running, job terminates with
570 wierd type and wierd error code.
571 - Probably create a jcr with JobId=0 as a master
572 catchall if jcr not found or if operation involves
574 - The daemons should know when one is already
575 running and refuse to run a second copy.
576 - Figure out how to do a "full" restore from catalog
577 - Make SD send attribute stream to DR but first
578 buffering to file, then sending only when the
579 files are written to tape.
580 - Restore file xx or files xx, yy to their most recent values.
581 - Get correct block/file information in Catalog, pay attention to change of media.
582 - Write better dump of Messages resource.
583 - Authentication between SD and FD
584 - In restore job, print some summary information at end, such
585 as rate, ... job status, ...
586 - Problem with len at 362 in tree.c
587 - Report volume write rate.
588 - Pass "Catalog Files = no" to storage daemon to eliminate network traffic.
589 - When we are at EOM, we must ask each job to write JobMedia
590 record (update_volume_info).
591 - Create all pools when Director starts
592 - Correct Warning: Volume name mismatch. Wanted test2 got test1
593 when reading a tape and want the next one.
594 - Implement autochanger for restore. ARRRGGG! I forgot!
595 - sd.conf password does not match dir.conf storage password
596 - Apparently Description records are not freed. Storage daemon
597 Device reported orphaned buffer 45 bytes probably for a Description.
598 - Take another stab at 64 bit file addresses
599 - Had to label second tape using the autochanger two times. The
600 first time the second tape was apparently loaded but not labeled.
601 3903 Failed to label Volume: ERR=dev.c:285 Bad call to rewind_dev. Device /dev/nst0 not open
602 - Attempt to label autochanger tape which is unloaded.
603 rufus-dir: Start Backup JobId 1, Job=kernsave.2002-09-21.21:07:34
604 rufus-sd: Job kernsave.2002-09-21.21:07:34 waiting. Cannot find any appendable volumes.
605 Please use the "label" command to create a new Volume for:
609 rufus-dir: Error in getmsg.c:129 Job not found: Jmsg Job= type=6 level=0 rufus-sd: Issuing autochanger "load slot 2" command.
611 Another try with tape mounted and Job hung in Director.
612 - Write updated bootstrap after every Job.