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