5 - Document to have patience when SD first starts.
6 - Document running a test version.
7 - Document saving MySQL databases, where to find code for shutting
8 down and saving other databases.
9 http://www.backupcentral.com/free-backup-software1.html
10 - Document -i option on FD
13 - that restore options work in FD.
14 - that mod of restore options works.
15 - that console command line options work
16 - blocksize recognition code.
17 - make sure that update of volume new parameters works
20 - Fix intmax_t on FreeBSD.
23 - Ensure that restore of differential jobs works (check SQL).
24 - Enhance schedule to have 1stSat, ...
25 - Make sure the MaxVolFiles is fully implemented in SD
26 - Make Job err if WriteBootstrap fails.
27 - Flush all the daemon messages at the end of every job.
28 - Check if both CatalogFiles and UseCatalog are set to SD.
29 - Check if we can bump Bacula FD priorty in Win2000
30 - Implement FileOptions.
31 - Make bcopy read through bad tape records.
32 - Need return status on read_cb() from read_records(). Need multiple
33 records -- one per Job, maybe a JCR or some other structure with
35 - Continue improving the restore process (handling
36 of tapes, efficiency improvements e.g. use FSF to
37 position the tape, ...)
38 - Work more on how to to a Bacula restore beginning with
39 just a Bacula tape and a boot floppy (bare metal recovery).
40 - Try bare metal Windows restore
41 - Fix read_record to handle multiple sessions.
42 - Program files (i.e. execute a program to read/write files).
43 Pass read date of last backup, size of file last time.
44 - Put system type returned by FD into catalog.
45 - Add VOLUME_CAT_INFO to the EOS tape record (as
46 well as to the EOD record).
47 - Add code to fast seek to proper place on tape/file
48 when doing Restore. If it doesn't work, try linear
50 - Add code to reject whole blocks if not wanted on restore.
51 - Possibly add email to Watchdog if drive is unmounted too
52 long and a job is waiting on the drive.
53 - Strip trailing slashes from Include directory names in the FD.
54 - Use read_record.c in SD code.
55 - Add EOM records ???????
56 - Why don't we get an error message from Win32 FD when bootstrap
57 file cannot be created for restore command?
58 - Put MaximumVolumeSize in Director (MaximumVolumeJobs, MaximumVolumeFiles,
60 - When Marking a file in Restore that is a hard link, also
61 mark the link so that the data will be reloaded.
62 - Restore program that errors in SD due to no tape reports
63 OK incorrectly in output.
64 - Make BSR accept count (total files to be restored).
65 - Make BSR return next_block when it knows record is not
66 in block, done when count is reached, and possibly other
67 optimizations. I.e. add a state word.
69 - Running multiple simultaneous jobs has a problem when one Job
70 must label the volume -- the others apparently do not wait.
72 > 13-Nov-2002 02:06 dump01-dir: Start Backup JobId 20, Job=save-rho.2002-11-13_02.06.00
73 > 13-Nov-2002 02:06 dump01-dir: Start Backup JobId 21, Job=save-beta.2002-11-13_02.06.01
74 > 13-Nov-2002 02:06 dump01-dir: Start Backup JobId 22, Job=save-dump01.2002-11-13_02.06.02
75 > 13-Nov-2002 02:06 dump01-sd: Created Volume label File0013 on device /dump7/bacula.
76 > 13-Nov-2002 02:06 dump01-sd: Wrote label to prelabeled Volume File0013 on device /dump7/bacula
77 > 13-Nov-2002 02:06 dump01-sd: save-beta.2002-11-13_02.06.01 Fatal error: Device /dump7/bacula is
78 > busy writing with another Volume.
79 > 13-Nov-2002 02:06 dump01-sd: save-dump01.2002-11-13_02.06.02 Fatal error: Device /dump7/bacula is
80 > busy writing with another Volume.
81 > 13-Nov-2002 02:06 beta-fd: save-beta.2002-11-13_02.06.01 Error: bnet.c:292 Write error sending to
82 > Storage daemon:dump01:9103: ERR=Broken pipe
83 > 13-Nov-2002 02:06 dump01-fd: save-dump01.2002-11-13_02.06.02 Error: bnet.c:319 Write error sending
84 > to Storage daemon:dump01:9103: ERR=Broken pipe
85 > 13-Nov-2002 02:08 dump01-dir: 13-Nov-2002 02:08
88 - Add VolumeUseDuration and MaximumVolumeJobs to Pool db record and
90 - Figure out how compress everything except .gz,... files.
91 - Make bcopy copy with a single tape drive.
92 - Make sure catalog doesn't keep growing.
93 - Permit changing ownership during restore.
94 - After unmount, if restore job started, ask to mount.
95 - Fix db_get_fileset in cats/sql_get.c for multiple records.
96 - Fix start/end blocks for File devices
97 - Add new code to scheduler.c and run_conf.c
98 schedule options (1-sat, 2-sat, ...).
99 - Fix catalog filename truncation in sql_get and sql_create. Use
100 only a single filename split routine.
101 - Add command to reset VolFiles to a larger value (don't allow
102 a smaller number or print big warning).
103 - Make Restore report an error if FD or SD term codes are not OK.
104 - Convert all %x substitution variables, which are hard to remember
105 and read to %(variable-name). Idea from TMDA.
106 - Add JobLevel in FD status (but make sure it is defined).
107 - Make Pool resource handle Counter resources.
108 - Remove NextId for SQLite. Optimize.
109 - Fix gethostbyname() to use gethostbyname_r()
110 - Implement ./configure --with-client-only
111 - Strip trailing / from Include
112 - Move all SQL statements into a single location.
113 - Cleanup db_update_media and db_update_pool
114 - Add UA rc and history files.
115 - put termcap (used by console) in ./configure and
116 allow -with-termcap-dir.
117 - Enhance time and size scanning routines.
118 - Fix Autoprune for Volumes to respect need for full save.
119 - DateWritten field on tape may be wrong.
120 - Fix Win32 config file definition name on /install
121 - No READLINE_SRC if found in alternate directory.
122 - Add Client FS/OS id (Linux, Win95/98, ...).
126 Bacula Projects Roadmap
128 last update 7 October 2002
130 Item 1: Multiple simultaneous Jobs. (done)
133 What: Permit multiple simultaneous jobs in Bacula.
135 Why: An enterprise level solution needs to go fast without the
136 need for the system administrator to carefully tweak
137 timing. Based on the benchmarks, during a full
138 backup, NetWorker typically hit 10 times the bandwidth to
139 the tape compared to Bacula--largely. This is probably due to
140 running parallel jobs and multi-threaded filling of buffers
141 and writing them to tape. This should also make things work
142 better when you have a mix of fast and slow machines backing
145 Notes: Bacula was designed to run multiple simultaneous jobs. Thus
146 implementing this is a matter of some small cleanups and
150 Item 2: Make the Storage daemon use intermediate file storage to buffer data.
151 Deferred -- not necessary yet.
153 What: If data is coming into the SD too fast, buffer it to
154 disk if the user has configured this option.
156 Why: This would be nice, especially if it more or less falls out
157 when implementing (1) above. If not, it probably should not
158 be given a high priority because fundamentally the backup time
159 is limited by the tape bandwidth. Even though you may finish a
160 client job quicker by spilling to disk, you still have to
161 eventually get it onto tape. If intermediate disk buffering
162 allows us to improve write bandwidth to tape, it may make
165 Notes: Whether or not this is implemented will depend upon performance
166 testing after item 1 is implemented.
169 Item 3: Write the bscan program.
172 What: Write a program that reads a Bacula tape and puts all the
173 appropriate data into the catalog. This allows recovery
174 from a tape that is no longer in the database, or it allows
175 re-creation of a database if lost.
177 Why: This is a fundamental robustness and disaster recovery tool
178 which will increase the comfort level of a sysadmin
179 considering adopting Bacula.
181 Notes: A skeleton of this program already exists, but much work
182 needs to be done. Implementing this will also make apparent
183 any deficiencies in the current Bacula tape format.
186 Item 4: Implement Base jobs.
188 What: A base job is sort of like a Full save except that you
189 will want the FileSet to contain only files that are unlikely
190 to change in the future (i.e. a snapshot of most of your
191 system after installing it). After the base job has been run,
192 when you are doing a Full save, you can specify to exclude
193 all files saved by the base job that have not been modified.
195 Why: This is something none of the competition does, as far as we know
196 (except BackupPC, which is a Perl program that saves to disk
197 only). It is big win for the user, it makes Bacula stand out
198 as offering a unique optimization that immediately saves time
201 Notes: Big savings in tape usage. Will require more resources because
202 the e. DIR must send FD a list of files/attribs, and the FD must
203 search the list and compare it for each file to be saved.
206 Item 5: Implement Label templates
208 What: This is a mechanism whereby Bacula can automatically create
209 a tape label for new tapes according to a detailed specification
210 provided by the user.
212 Why: It is a major convenience item for folks who use automated label
215 Notes: Bacula already has a working form of automatic tape label
216 creation, but it is very crude. The design for the complete
217 tape labeling project is already documented in the manual.
220 Item 6: Write a regression script.
223 What: This is an automatic script that runs and tests as many features
224 of Bacula as possible. The output is compared to previous
225 versions of Bacula and any differences are reported.
227 Why: This is an enormous help in preventing introduction of new
228 errors in parts of the program that already work correctly.
230 Notes: This probably should be ranked higher, it's something the typical
231 user doesn't see. Depending on how it's implemented, it may
232 make sense to defer it until the archival tape format and
233 user interface mature.
236 Item 7: GUI for interactive restore
237 Item 8: GUI for interactive backup
239 What: The current interactive restore is implemented with a tty
240 interface. It would be much nicer to be able to "see" the
241 list of files backed up in typical GUI tree format.
242 The same mechanism could also be used for creating
243 ad-hoc backup FileSets (item 8).
245 Why: Ease of use -- especially for the end user.
247 Notes: Rather than implementing in Gtk, we probably should go directly
248 for a Browser implementation, even if doing so meant the
249 capability wouldn't be available until much later. Not only
250 is there the question of Windows sites, most
251 Solaris/HP/IRIX, etc, shops can't currently run Gtk programs
252 without installing lots of stuff admins are very wary about.
253 Real sysadmins will always use the command line anyway, and
254 the user who's doing an interactive restore or backup of his
255 own files will in most cases be on a Windows machine running
259 Item 9: Add SSL to daemon communications.
261 What: This provides for secure communications between the daemons.
263 Why: This would allow doing backup across the Internet without
264 privacy concerns (or with much less concern).
266 Notes: The vast majority of near term potential users will be backing up
267 a single site over a LAN and, correctly or not, they probably
268 won't be concerned with security, at least not enough to go to
269 the trouble to set up keys, etc. to screw things down. We suspect
270 that many users genuinely interested in multi-site backup
271 already run some form of VPN software in their internetwork
272 connections, and are willing to delegate security to that layer.
275 Item 10: Define definitive tape format.
276 Mostly done (version 1.27)
278 What: Define that definitive tape format that will not change
279 for the next millennium.
281 Why: Stability, security.
283 Notes: See notes for item 11 below.
286 Item 11: New daemon communication protocol.
288 What: The current daemon to daemon protocol is basically an ASCII
289 printf() and sending the buffer. On the receiving end, the
290 buffer is sscanf()ed to unpack it. The new scheme would
291 be a binary format that allows quick packing and unpacking
292 of any data type with named fields.
294 Why: Using binary packing would be faster. Named fields will permit
295 error checking to ensure that what is sent is what the
296 receiver really wants.
298 Notes: These are internal improvements in the interest of the
299 long-term stability and evolution of the program. On the one
300 hand, the sooner they're done, the less code we have to rip
301 up when the time comes to install them. On the other hand, they
302 don't bring an immediately perceptible benefit to potential
303 users. Item 10 and possibly item 11 should be deferred until Bacula
304 is well established with a growing user community more or
305 less happy with the feature set. At that time, it will make a
306 good "next generation" upgrade in the interest of data
311 I haven't put these in any particular order.
314 - Rework Storage daemon with new rwl_lock routines.
315 - Compare tape to Client files (attributes, or attributes and data)
316 - Restore options (overwrite, overwrite if older,
317 overwrite if newer, never overwrite, ...)
318 - Restore to a particular time -- e.g. before date, after date.
319 - Make all database Ids 64 bit.
320 - Write an applet for Linux.
321 - Add estimate to Console commands
322 - Find solution to blank filename (i.e. path only) problem.
323 - Implement new daemon communications protocol.
326 mysqldump -f --opt bacula >bacula
330 - Remove PoolId from Job table, it exists in Media.
331 - Allow console commands to detach or run in background.
332 - Fix status delay on storage daemon during rewind.
333 - Add SD message variables to control operator wait time
334 - Maximum Operator Wait
335 - Minimum Message Interval
336 - Maximum Message Interval
337 - Add EOM handling variables
339 - Require EOD records
340 - Send Operator message when cannot read tape label.
341 - Think about how to handle I/O error on MTEOM.
342 - Verify level=Volume (scan only), level=Data (compare of data to file).
343 Verify level=Catalog, level=InitCatalog
345 - Add keyword search to show command in Console.
346 - Fix Win2000 error with no messages during startup.
347 - Events : tape has more than xxx bytes.
348 - Write general list maintenance subroutines.
349 - Restrict characters permitted in a Resource name.
350 - Complete code in Bacula Resources -- this will permit
351 reading a new config file at any time.
352 - Handle ctl-c in Console
353 - Implement LabelTemplate (at least first cut).
354 - Implement script driven addition of File daemon to config files.
356 - see setgroup and user for Bacula p4-5 of stunnel.c
357 - Implement new serialize subroutines
358 send(socket, "string", &Vol, "uint32", &i, NULL)
359 - On I/O error, write EOF, then try to write again ????
360 - Audit all UA commands to ensure that we always prompt where possible.
361 - If ./btape is called without /dev, assume argument is a Storage resource name.
362 - Put memory utilization in Status output of each daemon
363 if full status requested or if some level of debug on.
364 - Make database type selectable by .conf files i.e. at runtime
365 - gethostbyname failure in bnet_connect() continues
366 generating errors -- should stop.
367 - Add HOST to Volume label.
368 - Set flag for uname -a. Add to Volume label.
369 - Implement throttled work queue.
370 - Check for EOT at ENOSPC or EIO or ENXIO (unix Pc)
371 - Allow multiple Storage specifications (or multiple names on
372 a single Storage specification) in the Job record. Thus a job
373 can be backed up to a number of storage devices.
374 - Implement full MediaLabel code.
375 - Implement dump label to UA
376 - Copy volume using single drive.
377 - Copy volume with multiple driven (same or different block size).
378 - Add block size (min, max) to Vol label.
379 - Concept of VolumeSet during restore which is a list
380 of Volume names needed.
381 - Restore files modified after date
382 - Restore file modified before date
383 - Emergency restore info:
385 - Backup working directory
387 - Restore options (do not overwrite)
388 - Restore -- do nothing but show what would happen
389 - SET LD_RUN_PATH=$HOME/mysql/lib/mysql
390 - Implement Restore FileSet=
391 - Write a scanner for the UA (keyword, scan-routine, result, prompt).
392 - Create a protocol.h and protocol.c where all protocol messages
394 - If SD cannot open a drive, make it periodically retry.
395 - Put Bacula version somewhere in Job stream, probably Start Session
397 - Remove duplicate fields from jcr (e.g. jcr.level and jcr.jr.Level, ...).
398 - Timout a job or terminate if link goes down, or reopen link and query.
399 - Fill all fields in Vol/Job Header -- ensure that everything
400 needed is written to tape. Think about restore to Catalog
401 from tape. Client record needs improving.
402 - Find general solution for sscanf size problems (as well
403 as sprintf. Do at run time?
404 - Concept of precious tapes (cannot be reused).
405 - Allow FD to run from inetd ???
407 - Restore should get Device and Pool information from
408 job record rather than from config.
409 - Autolabel should be specified by DR instead of SD.
410 - Find out how to get the system tape block limits, e.g.:
411 Apr 22 21:22:10 polymatou kernel: st1: Block limits 1 - 245760 bytes.
412 Apr 22 21:22:10 polymatou kernel: st0: Block limits 2 - 16777214 bytes.
415 - AutoScan (check checksum of tape)
416 - Format command = "format /dev/nst0"
420 - Seek resolution (usually corresponds to buffer size)
421 - EODErrorCode=ENOSPC or code
422 - Partial Read error code
423 - Partial write error code
424 - Nonformatted read error
425 - Nonformatted write error
426 - WriteProtected error
430 - IgnoreCloseErrors=yes
440 - FD sends unsaved file list to Director at end of job.
441 - Write a Storage daemon that uses pipes and
442 standard Unix programs to write to the tape.
444 - Need something that monitors the JCR queue and
445 times out jobs by asking the deamons where they are.
447 - Enhance Jmsg code to permit buffering and saving to disk.
448 - device driver = "xxxx" for drives.
449 - restart: paranoid: read label fsf to
450 eom read append block, and go
451 super-paranoid: read label, read all files
452 in between, read append block, and go
453 verify: backspace, read append block, and go
454 permissive: same as above but frees drive
455 if tape is not valid.
457 - Ensure that /dev/null works
458 - File daemon should build list of files skipped, and then
459 at end of save retry and report any errors.
460 - Need report class for messages. Perhaps
461 report resource where report=group of messages
462 - enhance scan_attrib and rename scan_jobtype, and
463 fill in code for "since" option
464 - To buffer messages, we need associated jobid and Director name.
465 - Need to save contents of FileSet to tape?
466 - Director needs a time after which the report status is sent
467 anyway -- or better yet, a retry time for the job.
468 Don't reschedule a job if previous incarnation is still running.
469 - Figure out how to save the catalog (possibly a special FileSet).
470 - Figure out how to restore the catalog.
471 - Some way to automatically backup everything is needed????
472 - Need a structure for pending actions:
474 - termination status (part of buffered msgs?)
475 - Concept of grouping Storage devices and job can use
476 any of a number of devices
478 Read, Write, Clean, Delete
479 - Login to Bacula; Bacula users with different permissions:
480 owner, group, user, quotas
481 - Tape recycle destination
482 - Job Schedule Status
486 - Store info on each file system type (probably in the job header on tape.
487 This could be the output of df; or perhaps some sort of /etc/mtab record.
490 - Use media 1 time (so that we can do 6 days of incremental
491 backups before switching to another tape) (already)
492 specify # times (jobs)
493 specify bytes (already)
494 specify time (seconds, hours, days)
495 - Implement FSM (File System Modules).
496 - Identify unchanged or "system" files and save them to a
497 special tape thus removing them from the standard
498 backup FileSet -- BASE backup.
499 - Turn virutally all sprintfs into snprintfs.
500 - Heartbeat between daemons.
501 - Audit M_ error codes to ensure they are correct and consistent.
502 - Add variable break characters to lex analyzer.
503 Either a bit mask or a string of chars so that
504 the caller can change the break characters.
505 - Make a single T_BREAK to replace T_COMMA, etc.
506 - Ensure that File daemon and Storage daemon can
507 continue a save if the Director goes down (this
508 is NOT currently the case). Must detect socket error,
509 buffer messages for later.
512 Done: (see kernsdone for more)
515 - Check if GZIP1 is working -- check speed.
516 - Document forcing a new tape to be used.
517 - Ensure that AcceptAnyVolume works.
518 - Document running multiple Jobs
519 - Preserve block number when EOT and writing on next tape.
520 - Document how to cancel a job that is waiting on a Volume.
521 Must "cancel" then "mount".
522 - Document Volume Bytes shows bytes on last volume written in Job summary.
523 - Restore all Windows attributes. Leave hooks for ACLs and security.
524 (Handle x = (HANDLE)get_osfhandle(fd);
525 - Test Windows restore.
527 - Implement sparse files.
528 - Document sparse files.
529 - Document better Include (does it cross file systems ?).
530 - Document default config file locations.
531 - Document specifically how to add new File daemon to config files.
532 - Add VerNo to each Session label record.
533 - Add Job to Session records.
534 - Cold start full restore (restore catalog then
535 user selects what to restore). Write summary file containing only
536 Job, Media, and Catalog information. Store on another machine.
537 - Dump/Restore database
538 - Write bscan program that will syncronize the DB Media record with
539 the contents of the Volume -- for use after a crash.
540 - Figure out how to put a Volume into the catalog (from the tape)
541 - Figure out how to do a restore from a Volume
542 - Report compression % and other compression statistics if turned on.
543 - Put Windows files in Windows stream?
544 - Ensure that everyone uses btime routines (mostly done).
545 - Put Job statistics in End Session Label (files saved,
546 total bytes, start time, ...).
547 - Put FileSet name in the SOS label.
548 - Eliminate duplicate File records to shrink database.
549 - If Storage daemon aborts a job, ensure that this
550 is printed in the error message.
551 - Add save type to Session label.
552 - Correct date on Session label.
553 - Test restore of Windows backup
554 - Ability to recreate the catalog from a tape.
555 - Bug: anonymous Volumes requires mount in some cases.
556 - Define how we handle times to avoid problem with Unix dates (2049 ?).
557 - Add daemon JCR JobId=0 to have a daemon context
558 - Implement full restoration of all Windows attributes
559 (such as Hidden, System, creation dates, ...)
560 - Handle sparse files (i.e. files with holes in them)
561 - Enhance testing for Bacula compatibility with
563 - Turn on new BB02 tape format implemented in 1.26 but
565 - More testing of restoring on Unix systems.
566 - Implement additional tape format enhancements to better
567 support Windows and other non-Unix systems e.g.
569 - Upgrade to latest version of cygwin. (not possible)
570 - Add configure for gettimeofday.
571 - At line 51 of ua_input.c, why is = 0 necessary. Previously without
572 it, if cancel gnome-console during sql command, DIR crashed. However,
573 with it, blank line input for Where: is not possible.
574 - Make SD disallow writing on Volume with fewer files than in
576 - Label (asks for slot, return and it stops).
577 - Make SD reject writing on tape where Catalog and tape # files
578 don't agree (possibly OK if tape > catalog).
579 - Document all daemon tools MUST have a config file.
580 - Why does btape error when pointed to a file?
581 - Disallow compile if long long not 64 bits.
582 - Send Volumes needed during restore to Console (just after
583 create_volume_list) -- also in restore command?
584 - File system type from File daemon
585 - Move block size code from block.c to init_dev().
586 - Add FileSet MD5 to bscan.
587 - Finish implementation of restore "replace" options, and document.
589 - Document buffer size considerations with Sparse files --
590 - that restore prints volumes.
591 - Document that two Verifys at same time on same client do not work.
593 - MD5 in bscan is set in FileSet.
594 - that Bacula won't write on tape where tape/catalog files differ.
595 - Document how to recycle a tape in 7 days even if the backup takes a long time.
596 - Document tape cycling
597 - Implement VolumeUseDuration (maximum duration/period) a volume can be used).
598 Possibly VolumeUseTimes (MaximumVolumeJobs) This permits a volume to be
599 recycled even if it is not full.
600 - Decide what to do with JobTDate in catalog (make real utime_t?)
601 - Implement VolMaxJob and Duration check in next_volume().
602 - Make sure pruning of Jobs removes JobMediaId
603 - Write bcopy program -- recovery of bad tape.
604 - Make gethostbyname() thread safe in bnet.c
605 - Add ORDER BY JobId to list of Jobs in query.sql, and in
606 ua_output.c (list command).
607 - drive MaxVolJobs, VolUseDuration from media record
608 rather than Resource.