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