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
28 --sd.conf password does not match dir.conf storage password
31 - Fix db_update_fileset in cats/sql_get.c
32 - Fix start/end blocks for File
33 - Add new code to scheduler.c and run_conf.c
34 - Problem with len at 362 in tree.c
35 - Volume Bytes shows bytes on last volume written in Job summary.
36 - Fix catalog filename truncation in sql_get and sql_create. Use
37 only a single filename split routine.
38 - Add command to reset VolFiles to a larger value (don't allow
39 a smaller number or print big warning).
40 - Make SD disallow writing on Volume with fewer files than in
42 - Make Restore report an error if FD or SD term codes are not OK.
43 - Convert all %x substitution variables, which are hard to remember
44 and read to %(variable-name)s. Idea from TMDA.
45 - Report volume write rate.
46 - Report compression % and other compression statistics if turned on.
47 - Add JobLevel in FD status (but make sure it is defined).
48 - Pass "Catalog Files = no" to storage daemon to eliminate
50 - Make Pool resource handle Counter resources.
51 - Remove NextId for SQLite. Optimize.
52 - Fix gethostbyname() to use gethostbyname_r()
53 - Implement ./configure --with-client-only
54 - Strip trailing / from Include
55 - Move all SQL statements into a single location.
56 - Cleanup db_update_media and db_update_pool
57 - Add UA rc and history files.
58 - put termcap (used by console) in ./configure and
59 allow -with-termcap-dir.
60 - Remove JobMediaId it is not used.
61 - Enhance time and size scanning routines.
62 - Fix Autoprune for Volumes to respect need for full save.
63 - DateWritten may be wrong.
64 - Fix Win32 config file definition name on /install
65 - When we are at EOM, we must ask each job to write JobMedia
66 record (update_volume_info).
67 - No READLINE_SRC if found in alternate directory.
68 - Add Client FS/OS id (Linux, Win95/98, ...).
69 - Put Windows files in Windows stream?
70 - Ensure that everyone uses btime routines.
75 - Make Storage daemon multi-buffer to tape (i.e. writer thread).
76 - Implement Label templates
77 - Define definitive tape format.
78 - GUI for interactive restore.
80 - Write bscan program (skeleton exists).
81 - Write a regression script
82 - Add ssl to daemon communications
83 - New daemon communications protocol.
84 - SD can buffer to disk.
86 1. Implement Base jobs.
87 Big savings in tape usage. Will require more resources.
88 i.e. DIR must send FD a list of files/attribs, and the FD must
89 search the list and compare it for each file to be saved.
91 2. Make Storage daemon multi-buffer to tape (i.e. writer thread).
92 Hopefully much faster backups. Each Job will have a pool of
93 buffers that it hands off to the tape writer thread.
95 3. Implement Label templates
96 Better automated label creation, using design that is
97 already documented in the manual.
99 4. Define definitive tape format.
100 A lot of design thought needed here.
102 5. GUI for interactive restore.
103 Probably will do in Gtk, but would be nice in Browser.
105 6. Interactive backup.
108 7. Write bscan program (skeleton exists).
109 Allows recovery from tape.
111 8. Write a regression script
112 Needed to ensure long term stability.
114 9. Add ssl to daemon communications
115 Needed for secure operations.
117 10. Multiple simultaneous Jobs.
118 I don't think this will take much.
120 11. New daemon communication protocol.
121 Use serial for all daemon communications, allow transfer
122 of any data type with type checking and optional name
125 12. SD can use intermediate file storage to buffer data
126 while waiting for tape to catch up. This requires that
127 item 2 be implemented (or simultaneously implemented).
129 I haven't put these in any particular order.
132 - Rework Storage daemon with new rwl_lock routines.
133 - Compare tape to Client files (attributes, or attributes and data)
134 - Restore options (overwrite, overwrite if older,
135 overwrite if newer, never overwrite, ...)
136 - Restore to a particular time -- e.g. before date, after date.
137 - On command write out a bootstrap file (at end of job).
138 - Make all database Ids 64 bit.
139 - Pass JCR to database routines permitting better error printing.
140 - Make bls accept bootstrap record.
141 - Write an applet for Linux.
142 - Make SD reject writing on tape where Catalog and tape # files
143 don't agree (possibly OK if tape > catalog).
144 - Implement new daemon communications protocol.
145 - Add DIR config directive to spool attributes.
146 - Pass DIR config variable to SD for no attributes.
147 - Create JobMedia record for all running Jobs when Media changes.
148 - Send Volumes needed during restore to Console (just after
149 create_volume_list) -- also in restore command?
150 - Add estimate to Console commands
151 - Find solution to blank filename (i.e. path only) problem.
154 mysqldump -f --opt bacula >bacula
158 - Remove PoolId from Job table, it exists in Media.
159 - Allow console commands to detach or run in background.
160 - Fix status delay on storage daemon during rewind.
161 - Add VerNo to each Session label record.
162 - Add Job to Session records.
163 - Add VOLUME_CAT_INFO to the EOS tape record (as
164 well as to the EOD record).
165 - Add SD message variables to control operator wait time
166 - Maximum Operator Wait
167 - Minimum Message Interval
168 - Maximum Message Interval
169 - Add EOM handling variables
171 - Require EOD records
172 - Send Operator message when cannot read tape label.
173 - Think about how to handle I/O error on MTEOM.
174 - If Storage daemon aborts a job, ensure that this
175 is printed in the error message.
176 - Verify level=Volume (scan only), level=Data (compare of data to file).
177 Verify level=Catalog, level=InitCatalog
179 - Cold start full restore (restore catalog then
180 user selects what to restore). Write summary file containing only
181 Job, Media, and Catalog information. Store on another machine.
182 - Dump/Restore database
185 - Add keyword search to show command in Console.
186 - Fix Win2000 error with no messages during startup.
187 - Events : tape has more than xxx bytes.
188 - In Storage daemon, status should include job cancelled.
189 - Write general list maintenance subroutines.
190 - Implement immortal format with EDOs.
191 - Restrict characters permitted in a Resource name.
192 - Provide definitive identification of type in backup.
193 - Complete code in Bacula Resources -- this will permit
194 reading a new config file at any time.
195 - Document new Console
196 - Handle ctl-c in Console
197 - Test restore of Windows backup
198 - Implement LabelTemplate (at least first cut).
199 - Implement script driven addition of File daemon to
202 - Bug: anonymous Volumes requires mount in some cases.
203 - see setgroup and user for Bacula p4-5 of stunnel.c
204 - Implement new serialize subroutines
205 send(socket, "string", &Vol, "uint32", &i, NULL)
206 - Add save type to Session label.
207 - Correct date on Session label.
208 - On I/O error, write EOF, then try to write again.
209 - Audit all UA commands to ensure that we always prompt where
211 - If ./btape is called without /dev, assume argument is
212 a Storage resource name.
213 - Put memory utilization in Status output of each daemon
214 if full status requested or if some level of debug on.
215 - Make database type selectable by .conf files i.e. at runtime
216 - gethostbyname failure in bnet_connect() continues
217 generating errors -- should stop.
218 - Don't create a volume that is already written. I.e. create only once.
219 - If error at end of tape, implement some way to kill waiting processes.
220 - Add HOST to Volume label.
221 - Set flag for uname -a. Add to Volume label.
222 - Implement throttled work queue.
223 - Write bscan program that will syncronize the DB Media record with
224 the contents of the Volume -- for use after a crash.
225 - Check for EOT at ENOSPC or EIO or ENXIO (unix Pc)
226 - Allow multiple Storage specifications (or multiple names on
227 a single Storage specification) in the Job record. Thus a job
228 can be backed up to a number of storage devices.
229 - Implement full MediaLabel code.
230 - Implement dump label to UA
231 - Copy volume using single drive.
232 - Copy volume with multiple driven (same or different block size).
233 - Add block size (min, max) to Vol label.
234 - Concept of VolumeSet during restore which is a list
235 of Volume names needed.
236 - Restore files modified after date
237 - Restore file modified before date
238 - Emergency restore info:
240 - Backup working directory
242 - Restore options (do not overwrite)
243 - Restore -- do nothing but show what would happen
244 - SET LD_RUN_PATH=$HOME/mysql/lib/mysql
245 - Put Job statistics in End Session Label (files saved,
246 total bytes, start time, ...).
247 - Put FileSet name in the SOS label.
248 - Implement Restore FileSet=
249 - Write a scanner for the UA (keyword, scan-routine, result, prompt).
250 - Create a protocol.h and protocol.c where all protocol messages
252 - If SD cannot open a drive, make it periodically retry.
253 - Put Bacula version somewhere in Job stream, probably Start Session
255 - Remove duplicate fields from jcr (e.g. jcr.level and
257 - Timout a job or terminate if link goes down, or reopen link and query.
258 - Define how we handle times to avoid problem with Unix dates (2049 ?).
259 - Fill all fields in Vol/Job Header -- ensure that everything
260 needed is written to tape. Think about restore to Catalog
261 from tape. Client record needs improving.
262 - Find general solution for sscanf size problems (as well
263 as sprintf. Do at run time?
265 - Concept of precious tapes (cannot be reused).
266 - Allow FD to run from inetd ???
267 - Preprocessing command per file.
268 - Postprocessing command per file (when restoring).
270 - Restore should get Device and Pool information from
271 job record rather than from config.
272 - Autolabel should be specified by DR instead of SD.
273 - Ability to recreate the catalog from a tape.
274 - Find out how to get the system tape block limits, e.g.:
275 Apr 22 21:22:10 polymatou kernel: st1: Block limits 1 - 245760 bytes.
276 Apr 22 21:22:10 polymatou kernel: st0: Block limits 2 - 16777214 bytes.
279 - AutoScan (check checksum of tape)
280 - Format command = "format /dev/nst0"
284 - Seek resolution (usually corresponds to buffer size)
285 - EODErrorCode=ENOSPC or code
286 - Partial Read error code
287 - Partial write error code
288 - Nonformatted read error
289 - Nonformatted write error
290 - WriteProtected error
294 - IgnoreCloseErrors=yes
304 - Eliminate duplicate File records to shrink database.
305 - FD sends unsaved file list to Director at end of job.
306 - Write a Storage daemon that uses pipes and
307 standard Unix programs to write to the tape.
309 - Need something that monitors the JCR queue and
310 times out jobs by asking the deamons where they are.
311 - Add daemon JCR JobId=0 to have a daemon context
315 - Client (list of clients to force client)
316 - Devices (list of devices to force device)
321 - Recycle from other pools: Yes, No
322 - Recycle to other pools: Yes, no
325 - Optional MediaType to force media?
336 if(connect(sockfd, (struct sockaddr * ) (& addr), sizeof(addr)) .lt. 0){
342 linger.l_linger = 60;
343 i = setsockopt(sockfd, SOL_SOCKET, SO_LINGER, (char *) &linger,
346 fl = fcntl(sockfd, F_GETFL);
347 fcntl(sockfd, F_SETFL, fl & (~ O_NONBLOCK) & (~ O_NDELAY));
349 - Enhance Jmsg code to permit buffering and saving to disk.
350 - device driver = "xxxx" for drives.
351 - restart: paranoid: read label fsf to
352 eom read append block, and go
353 super-paranoid: read label, read all files
354 in between, read append block, and go
355 verify: backspace, read append block, and go
356 permissive: same as above but frees drive
357 if tape is not valid.
359 - Ensure that /dev/null works
360 - File daemon should build list of files skipped, and then
361 at end of save retry and report any errors.
362 - Need report class for messages. Perhaps
363 report resource where report=group of messages
365 - enhance scan_attrib and rename scan_jobtype, and
366 fill in code for "since" option
367 - To buffer messages, we need associated jobid and Director name.
368 - Need to save contents of FileSet to tape?
369 - Director needs a time after which the report status is sent
370 anyway -- or better yet, a retry time for the job.
371 Don't reschedule a job if previous incarnation is still running.
372 - Figure out how to save the catalog (possibly a special FileSet).
373 - Figure out how to restore the catalog.
374 - Figure out how to put a Volume into the catalog (from the tape)
375 - Figure out how to do a restore from a Volume
376 - Some way to automatically backup everything is needed????
377 - Need a structure for pending actions:
379 - termination status (part of buffered msgs?)
380 - Concept of grouping Storage devices and job can use
381 any of a number of devices
383 Read, Write, Clean, Delete
384 - Login to Bacula; Bacula users with different permissions:
386 - Tape recycle destination
387 - Job Schedule Status
391 - File daemon should pass Director the operating system info
392 to be stored in the Client Record (or verified that it has
394 - Store info on each file system type (probably in the job header on tape.
395 This could be the output of df; or perhaps some sort of /etc/mtab record.
398 - Use media 1 time (so that we can do 6 days of incremental
399 backups before switching to another tape) (already)
400 specify # times (jobs)
401 specify bytes (already)
402 specify time (seconds, hours, days)
403 - Implement FSM (File System Modules).
404 - Identify unchanged or "system" files and save them to a
405 special tape thus removing them from the standard
406 backup FileSet -- BASE backup.
407 - Turn virutally all sprintfs into snprintfs.
408 - Heartbeat between daemons.
409 - Audit M_ error codes to ensure they are correct and consistent.
410 - Add variable break characters to lex analyzer.
411 Either a bit mask or a string of chars so that
412 the caller can change the break characters.
413 - Make a single T_BREAK to replace T_COMMA, etc.
414 - Ensure that File daemon and Storage daemon can
415 continue a save if the Director goes down (this
416 is NOT currently the case). Must detect socket error,
417 buffer messages for later.
420 Done: (see kernsdone for more)
421 --the console script is broken as installed and has to be hand-massaged with
422 paths, config files etc.
423 - Termination status in FD for Verify = C -- incorrect.
424 - Implement alter_sqlite_tables
425 - Fix scheduler -- see "Hourly cycle". It doesn't do both each
426 hour, rather it alternates between 0:05 and 0:35.
427 - Create Counter DB records.
428 - Fix db_get_job_volume_names() to return array of strings (now works
430 - Eliminate MySQL shared libraries from smtp and daemons not using MySQL.
431 - Compare tape File attributes to Catalog.
432 (File attributes are size, dates, MD5, but not
434 - Report bad status from smtp or mail program.
435 - Ensure that Start/End File/Block are correct.
436 - If MySQL database is not running, job terminates with
437 wierd type and wierd error code.
438 - Probably create a jcr with JobId=0 as a master
439 catchall if jcr not found or if operation involves
441 - The daemons should know when one is already
442 running and refuse to run a second copy.
443 - Figure out how to do a "full" restore from catalog
444 - Make SD send attribute stream to DR but first
445 buffering to file, then sending only when the
446 files are written to tape.
447 - Restore file xx or files xx, yy to their most recent values.
448 - Get correct block/file information in Catalog, pay attention to change of media.
449 - Write better dump of Messages resource.
450 - Authentication between SD and FD