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.
18 - Report volume write rate.
19 - Fix db_get_job_volume_names() to return array of strings.
20 - Report compression % and other compression statistics if turned on.
21 - Add JobLevel in FD status (but make sure it is defined).
22 - Eliminate MySQL shared libraries from smtp and daemons not
24 - Pass "Catalog Files = no" to storage daemon to eliminate
26 - Implement alter_sqlite_tables
27 - Fix scheduler -- see "Hourly cycle". It doesn't do both each
28 hour, rather it alternates between 0:05 and 0:35.
29 - Create Counter DB records.
30 - Make Pool resource handle Counter resources.
31 - Remove NextId for SQLite. Optimize.
32 - Termination status in FD for Verify = C -- incorrect.
33 - Fix strerror() to use strerror_r()
34 - Fix gethostbyname() to use gethostbyname_r()
35 - Cleanup path/filename separation in sql_get.c and sql_create.c
36 - Implement ./configure --with-client-only
37 - Strip trailing / from Include
38 - Move all SQL statements into a single location.
39 - Cleanup db_update_media and db_update_pool
40 - Add UA rc and history files.
41 - put termcap (used by console) in ./configure and
42 allow -with-termcap-dir.
43 - Remove JobMediaId it is not used.
44 - Enhance time and size scanning routines.
45 - Fix Autoprune for Volumes to respect need for full save.
46 - DateWritten may be wrong.
47 - Fix Win32 config file definition name on /install
48 - When we are at EOM, we must ask each job to write JobMedia
49 record (update_volume_info).
50 - No READLINE_SRC if found in alternate directory.
51 - Add Client FS/OS id (Linux, Win95/98, ...).
52 - Put Windows files in Windows stream?
54 ====== 31 May 2002 ========
55 Now that Bacula 1.20 is released, virtually all the
56 basic features are implemented (some are still quite
57 primitive though). Over the next month or two, I'm
58 planning to focus on the following items:
61 - Fix any bugs I find or you report.
62 - Finish the implementation of automatic pruning
63 (add pruning of Restore and Verify jobs).
64 - Make sure pruning of Volumes won't prune the
65 only backup of a FileSet
68 - Improve the Restore capabilities of Bacula
69 * Restore to most recent system state (i.e.
70 figure out what tapes need to be mounted and
72 * Restore to a particular time (perhaps several
73 variations -- e.g. before date, after date).
74 * Interactive Restore where you get to select
75 what files are to be restored (much like the Unix
76 "restore" program permits). Now that we have a
77 catalog of all files saved, it would be nice to
79 * Restore options (overwrite, overwrite if older,
80 overwrite if newer, never overwrite, ...)
81 * Improve the standalone programs (bls and bextract)
82 to have pattern matching capabilities (e.g. restore
83 by FileSet, Job, JobType, JobLevel, ...).
84 * Ideally after each Job, Bacula could write out a
85 set of commands to a file that if later feed to
86 bextract would restore your system to the current
87 state (at least for the saved FileSet). This would
88 provide a simple disaster recovery that could be
89 initiated from a "floppy" and one simple ASCII control
90 file. I'm not exactly sure how to do this, but it
91 shouldn't be too hard and I'll
92 be trying to go in this direction.
95 - Implement tape verification to ensure that the data
96 written for a particular Job can really be read.
97 - Compare tape File attributes to Catalog.
98 (File attributes are size, dates, MD5, but not
100 - Compare tape to Client files (attributes, or
104 - With the current Bacula 1.21 (not yet in the CVS) I
105 expect there is about 95% chance that running multiple
106 simultaneous Jobs will actually work without stepping
107 on each other. I'm planning to try this sometime soon.
112 - Rework Storage daemon with new rwl_lock routines.
113 - Implement Label templates
114 - Pass JCR to database routines permitting better error printing.
117 - Verify against Full.
120 mysqldump -f --opt bacula >bacula
124 - Probably add End of Data tape records (this would make
125 the tape format incompatible with the previous version).
126 - I'll most likely enhance the current tape format
127 in the way that I previously described, which will make
128 some of the labels incompatible, but the change will
129 not affect the current restore code since it does not
130 look at the details of the labels.
131 - I may add a few more waiting conditions in the Storage
132 daemon where it will current immediately aborts a
133 Job if the necessary resources are not available (e.g.
134 tape is being written and a read request arrives).
135 - Write an applet for Linux.
137 - Remove PoolId from Job table, it exists in Media.
138 - Allow commands to detach or run in background.
139 - Write better dump of Messages resource.
140 - Fix status delay on storage daemon during rewind.
141 - Add VerNo to each Session label record.
142 - Add Job to Session records.
143 - Add VOLUME_CAT_INFO to the EOS tape record (as
144 well as to the EOD record).
145 - Add SD message variables to control operator wait time
146 - Maximum Operator Wait
147 - Minimum Message Interval
148 - Maximum Message Interval
149 - Add EOM handling variables
151 - Require EOD records
152 - Send Operator message when cannot read tape label.
153 - Think about how to handle I/O error on MTEOM.
154 - If Storage daemon aborts a job, ensure that this
155 is printed in the error message.
156 - Verify level=Volume (scan only), level=Data (compare of data to file).
157 Verify level=Catalog, level=InitCatalog
158 - Scan tape contents into database.
160 - Cold start full restore (restore catalog then
161 user selects what to restore). Write summary file containing only
162 Job, Media, and Catalog information. Store on another machine.
163 - Dump/Restore database
166 - Implement first cut of Catalog Retention period (remove old
167 entries from database).
168 - Add SessionTime/Id filters to bextract.
170 - Ensure that Start/End File/Block are correct.
171 - Add keyword search to show command in Console.
172 - If MySQL database is not running, job terminates with
173 wierd type and wierd error code.
174 - Write a regression script
175 - Report bad status from smtp or mail program.
176 - Fix Win2000 error with no messages during startup.
177 - Add estimate to Console
178 - Events : tape has more than xxx bytes.
179 - In Storage daemon, status should include job cancelled.
180 - Write general list maintenance subroutines.
181 - Implement immortal format with EDOs.
182 - Restrict characters permitted in a Resource name.
183 - Restore file xx or files xx, yy to their most recent values.
184 - Provide definitive identification of type in backup.
185 - Complete code in Bacula Resources -- this will permit
186 reading a new config file at any time.
187 - Document new Console
188 - Handle ctl-c in Console
189 - Test restore of Windows backup
190 - Implement LabelTemplate (at least first cut).
191 - Implement script driven addition of File daemon to
194 - Bug: anonymous Volumes requires mount in some cases.
195 - see setgroup and user for Bacula p4-5 of stunnel.c
196 - Implement new serialize subroutines
197 send(socket, "string", &Vol, "uint32", &i, NULL)
198 - Add save type to Session label.
199 - Correct date on Session label.
200 - On I/O error, write EOF, then try to write again.
201 - Audit all UA commands to ensure that we always prompt where
203 - If ./btape is called without /dev, assume argument is
204 a Storage resource name.
205 - Put memory utilization in Status output of each daemon
206 if full status requested or if some level of debug on.
207 - Make database type selectable by .conf files i.e. at runtime
208 - gethostbyname failure in bnet_connect() continues
209 generating errors -- should stop.
210 - Don't create a volume that is already written. I.e. create only once.
211 - If error at end of tape, implement some way to kill waiting processes.
212 - Get correct block/file information in Catalog, pay attention
214 - Add HOST to Volume label.
215 - Set flag for uname -a. Add to Volume label.
216 - Implement throttled work queue.
217 - Write bscan program that will syncronize the DB Media record with
218 the contents of the Volume -- for use after a crash.
219 - Check for EOT at ENOSPC or EIO or ENXIO (unix Pc)
220 - Allow multiple Storage specifications (or multiple names on
221 a single Storage specification) in the Job record. Thus a job
222 can be backed up to a number of storage devices.
223 - Implement full MediaLabel code.
224 - Implement dump label to UA
225 - Copy volume using single drive.
226 - Copy volume with multiple driven (same or different block size).
227 - Add block size (min, max) to Vol label.
228 - Concept of VolumeSet during restore which is a list
229 of Volume names needed.
230 - Restore files modified after date
231 - Restore file modified before date
232 - Emergency restore info:
234 - Backup working directory
236 - Restore options (do not overwrite)
237 - Restore -- do nothing but show what would happend
238 - Authentication between SD and FD
239 - SET LD_RUN_PATH=$HOME/mysql/lib/mysql
240 - Send Volumes needed during restore to Console
241 - Put Job statistics in End Session Label (files saved,
242 total bytes, start time, ...).
243 - Put FileSet name in the SOS label.
244 - Implement Restore FileSet=
245 - Write a scanner for the UA (keyword, scan-routine, result, prompt).
246 - Create a protocol.h and protocol.c where all protocol messages
248 - If SD cannot open a drive, make it periodically retry.
249 - Put Bacula version somewhere in Job stream, probably Start Session
251 - Remove duplicate fields from jcr (e.g. jcr.level and
253 - Timout a job or terminate if link goes down, or reopen link and query.
254 - Define how we handle times to avoid problem with Unix dates (2049 ?).
255 - The daemons should know when one is already
256 running and refuse to run a second copy.
257 - Fill all fields in Vol/Job Header -- ensure that everything
258 needed is written to tape. Think about restore to Catalog
259 from tape. Client record needs improving.
260 - Find general solution for sscanf size problems (as well
261 as sprintf. Do at run time?
263 - Concept of precious tapes (cannot be reused).
264 - Allow FD to run from inetd ???
265 - Preprocessing command per file.
266 - Postprocessing command per file (when restoring).
268 - Restore should get Device and Pool information from
269 job record rather than from config.
270 - Make SD send attribute stream to DR but first
271 buffering to file, then sending only when the
272 files are written to tape.
273 - Autolabel should be specified by DR instead of SD.
274 - Ability to recreate the catalog from a tape.
275 - Find out how to get the system tape block limits, e.g.:
276 Apr 22 21:22:10 polymatou kernel: st1: Block limits 1 - 245760 bytes.
277 Apr 22 21:22:10 polymatou kernel: st0: Block limits 2 - 16777214 bytes.
280 - AutoScan (check checksum of tape)
281 - Format command = "format /dev/nst0"
285 - Seek resolution (usually corresponds to buffer size)
286 - EODErrorCode=ENOSPC or code
287 - Partial Read error code
288 - Partial write error code
289 - Nonformatted read error
290 - Nonformatted write error
291 - WriteProtected error
295 - IgnoreCloseErrors=yes
305 - Eliminate duplicate File records to shrink database.
306 - FD sends unsaved file list to Director at end of job.
307 - Implement InsertUniqueDB.
308 - Write a Storage daemon that uses pipes and
309 standard Unix programs to write to the tape.
311 - Need something that monitors the JCR queue and
312 times out jobs by asking the deamons where they are.
313 - Add daemon JCR JobId=0 to have a daemon context
317 - Client (list of clients to force client)
318 - Devices (list of devices to force device)
323 - Recycle from other pools: Yes, No
324 - Recycle to other pools: Yes, no
327 - Optional MediaType to force media?
338 if(connect(sockfd, (struct sockaddr * ) (& addr), sizeof(addr)) .lt. 0){
344 linger.l_linger = 60;
345 i = setsockopt(sockfd, SOL_SOCKET, SO_LINGER, (char *) &linger,
348 fl = fcntl(sockfd, F_GETFL);
349 fcntl(sockfd, F_SETFL, fl & (~ O_NONBLOCK) & (~ O_NDELAY));
351 - Add "0nnn" in front of all sscanf %s fields
352 to prevent field overflow.
354 What: jobid or file list
355 From: tape, file, ...
356 Where: original location, another path
357 How: Always replace, Replace if newer, Never replace
358 Report: files restored; files not restored; errors; warnings
360 - Enhance Jmsg code to permit buffering and saving to disk.
361 - Probably create a jcr with JobId=0 as a master
362 catchall if jcr not found or if operation involves
364 - device driver = "xxxx" for drives.
365 - restart: paranoid: read label fsf to
366 eom read append block, and go
367 super-paranoid: read label, read all files
368 in between, read append block, and go
369 verify: backspace, read append block, and go
370 permissive: same as above but frees drive
371 if tape is not valid.
373 - Ensure that /dev/null works
374 - File daemon should build list of files skipped, and then
375 at end of save retry and report any errors.
376 - Need report class for messages. Perhaps
377 report resource where report=group of messages
378 - Extract what=(session_id|file_list); where
380 - enhance scan_attrib and rename scan_jobtype, and
381 fill in code for "since" option
382 - dir_config: get rid of all printfs
383 - To buffer messages, we need associated jobid and Director name.
384 - Need to save contents of FileSet to tape?
385 - Director needs a time after which the report status is sent
386 anyway -- or better yet, a retry time for the job.
387 Don't reschedule a job if previous incarnation is still running.
388 - Figure out how to do a "full" restore from catalog
389 - Figure out how to save the catalog (possibly a special FileSet).
390 - Figure out how to restore the catalog.
391 - Figure out how to put a Volume into the catalog (from the tape)
392 - Figure out how to do a restore from a Volume
393 - Some way to automatically backup everything is needed????
394 - Need a structure for pending actions:
396 - termination status (part of buffered msgs?)
397 - Concept of grouping Storage devices and job can use
398 any of a number of devices
400 Read, Write, Clean, Delete
401 - Login to Bacula; Bacula users with different permissions:
403 - Tape recycle destination
404 - Job Schedule Status
408 - File daemon should pass Director the operating system info
409 to be stored in the Client Record (or verified that it has
411 - Store info on each file system type (probably in the job header on tape.
412 This could be the output of df; or perhaps some sort of /etc/mtab record.
415 - Use media 1 time (so that we can do 6 days of incremental
416 backups before switching to another tape) (already)
417 specify # times (jobs)
418 specify bytes (already)
419 specify time (seconds, hours, days)
420 - Implement FSM (File System Modules).
421 - Identify unchanged or "system" files and save them to a
422 special tape thus removing them from the standard
423 backup FileSet -- BASE backup.
424 - Turn virutally all sprintfs into snprintfs.
425 - Heartbeat between daemons.
426 - Audit M_ error codes to ensure they are correct and
428 - Add variable break characters to lex analyzer.
429 Either a bit mask or a string of chars so that
430 the caller can change the break characters.
431 - Make a single T_BREAK to replace T_COMMA, etc.
432 - Ensure that File daemon and Storage daemon can
433 continue a save if the Director goes down (this
434 is NOT currently the case). Must detect socket error,
435 buffer messages for later.
438 Done: (see kernsdone for more)