]> git.sur5r.net Git - bacula/bacula/blob - bacula/kernstodo
09b22fd96c79d526a4a8f3779eaab76c861d98c7
[bacula/bacula] / bacula / kernstodo
1                     Kern's ToDo List
2                    07 Septermber 2004
3
4 Major development:      
5 Project                     Developer
6 =======                     =========                         
7 IPv6_2                      Meno Abels
8 Data encryption             Meno Abels (see projects)
9 Communication encryption    Meno Abels  
10 Version 1.35                Kern (see below)
11 ========================================================
12
13 1.35 Items to do for release:
14 - Restore c: with a prefix into /prefix/c/ to prevent c: and d:
15   files with the same name from overwritting each other.
16 - Add new DCR calling sequences everywhere in SD. This will permit 
17   simultaneous use of multiple devices by a single job.
18
19 - Document a get out of jail procedure if everything breaks if 
20   you lost/broke the Catalog -- do the same for "I know my
21   file is there how do I get it back?".
22
23    
24 Maybe for 1.35:
25 - Look at patches/bacula_db.b2z postgresql that loops during restore.
26   See Gregory Wright.
27 - Add delete JobId to regression.
28 - Add bscan to four-concurrent-jobs regression.
29 - Add IPv6 to regression
30 - Perhaps add read/write programs and/or plugins to FileSets.
31 - How to handle backing up portables ...
32
33 Documentation to do: (any release a little bit at a time)
34 - Alternative to static linking "ldd prog" save all binaries listed,
35   restore them and point LD_LIBRARY_PATH to them.
36 - Document add "</dev/null >/dev/null 2>&1" to the bacula-fd command line
37 - Document query file format.
38 - Add more documentation for bsr files.
39 - Document problems with Verify and pruning.
40 - Document how to use multiple databases.
41 - VXA drives have a "cleaning required"
42   indicator, but Exabyte recommends preventive cleaning after every 75
43   hours of operation.
44   From Phil:
45     In this context, it should be noted that Exabyte has a command-line
46     vxatool utility available for free download.  (The current version is
47     vxatool-3.72.) It can get diagnostic info, read, write and erase tapes,
48     test the drive, unload tapes, change drive settings, flash new firmware,
49     etc.
50     Of particular interest in this context is that vxatool <device> -i will
51     report, among other details, the time since last cleaning in tape motion
52     minutes.  This information can be retrieved (and settings changed, for
53     that matter) through the generic-SCSI device even when Bacula has the
54     regular tape device locked.  (Needless to say, I don't recommend
55     changing tape settings while a job is running.)
56 - Lookup HP cleaning recommendations.
57 - Lookup HP tape replacement recommendations (see trouble shooting autochanger)
58 - Add more obvious documentation of @ for conf files.
59 - Document doing table repair
60   
61           
62 Testing to do: (painful)
63
64
65 For 1.37 Testing/Documentation:
66 - Add "Allow multiple connections" in Catalog resource to open a new 
67   database connection for each job.
68 - Allow Simultaneous Priorities = yes  => run up to Max concurrent jobs even
69   with multiple priorities.
70 - Fix find_device in stored/dircmd.c:462 (see code) 
71 - Add db check test to regression. Test each function like delete,
72   purge, ...
73 - If you use restore replace=never, the directory attributes for
74   non-existent directories will not be restored properly.
75
76 Fix:
77    Kern,
78
79    mt status and tapeinfo output are attached. Default blocksize was
80    originally 512 bytes. I ran the following test on my machine:
81
82    - set defblksize to 512
83    - started bacula, labelled tape, ran job
84    - job completes with the following in log
85            SD termination status:  OK
86            Termination:            Backup OK
87    - restore attempts with blocksize set to 0 or 512 result in the familiar
88            "Volume data error! Wanted block-id BB02, got . Buffer discarded."
89
90
91    # tapeinfo -f /dev/sg0
92    Product Type: Tape Drive
93    Vendor ID: 'SONY    '
94    Product ID: 'TSL-11000       '
95    Revision: 'L100'
96    Attached Changer: Yes
97    SerialNumber: '0010000443'
98    MinBlock:1
99    MaxBlock:16777215
100    SCSI ID: 1
101    SCSI LUN: 0
102    Ready: yes
103    BufferedMode: yes
104    Medium Type: Not Loaded
105    Density Code: 0x26
106    BlockSize: 512
107    DataCompEnabled: no
108    DataCompCapable: yes
109    DataDeCompEnabled: yes
110    CompType: 0x20
111    DeCompType: 0x20
112    BOP: yes
113    Block Position: 0
114
115    # mt -f /dev/nst0 status
116    SCSI 2 tape drive:
117    File number=0, block number=132, partition=0.
118    Tape block size 512 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
119    Soft error count since last status=0
120    General status bits on (1010000):
121     ONLINE IM_REP_EN
122
123
124
125 Wish list:  
126 - see lzma401.zip in others directory for new compression
127   algorithm/library.
128 - Minimal autochanger handling in Bacula and in btape.
129 - Look into how tar does not save sockets and the possiblity of
130   not saving them in Bacula (Martin Simmons reported this).
131   The next two lines will show them.
132   localmounts=`awk '/ext/ { print $2 }' /proc/mounts`   # or whatever
133   find $localmounts -xdev -type s -ls
134 - Fix restore jobs so that multiple jobs can run if they
135   are not using the same tape(s).
136 - Allow the user to select JobType for manual pruning/purging.
137 - Look at adding Client run command that will use the
138   port opened by the client.
139 - bscan does not put first of two volumes back with all info in
140   bscan-test.
141 - Implement the FreeBSD nodump flag in chflags.
142 - Figure out how to make named console messages go only to that
143   console and to the non-restricted console (new console class?).
144 - Make restricted console prompt for password if *ask* is set or
145   perhaps if password is undefined.
146 - Implement "from ISO-date/time every x hours/days/weeks/months" in
147   schedules.
148 ==== from Marc Schoechlin
149 - the help-command should be more verbose
150   (it should explain the paramters of the different 
151   commands in detail)
152   -> it´s time-comsuming to consult the manual anytime
153      you need a special parameter
154   -> maybe it´s more easy to maintain this, if the
155      descriptions of that commands are outsourced to
156      a ceratin-file
157 - the cd-command should allow complete paths
158   i.e. cd /foo/bar/foo/bar
159   -> if a customer mails me the path to a certain file,
160      it´s faster to enter the specified directory
161 - if the password is not configured in bconsole.conf
162   you should be asked for it.
163   -> sometimes you like to do restore on a customer-machine
164      which shouldn´t know the password for bacula.
165   -> adding the password to the file favours admins
166      to forget to remove the password after usage
167   -> security-aspects
168      the protection of that file is less important
169 - long-listed-output of commands should be scrollable
170   like the unix more/less-command does
171   -> if someone runs 200 and more machines, the lists could
172      be a little long and complex
173 - command-output should be shown column by column
174   to reduce scrolling and to increase clarity
175   -> see last item
176 - lsmark should list the selected files with full
177   paths
178 - wildcards for selecting and file and directories would be nice
179 - any actions should be interuptable with STRG+C
180 - command-expansion would be pretty cool
181 ====
182 - Compaction of Disk space by "migrating" Volumes that have pruned
183   Jobs (what criteria? size, #jobs, time).
184 - Add prune all command
185 - Document fact that purge can destroy a part of a restore by purging
186   one volume while others remain valid -- perhaps mark Jobs.
187 - Add multiple-media-types.txt
188 - look at mxt-changer.html
189 - Make ? do a help command (no return needed).
190 - Implement restore directory.
191 - Add All Local Partitions = yes to new style saves.
192 - Document streams and how to implement them.
193 - Possibly implement "Ensure Full Backup = yes" looks for a failed full backup
194   and upgrades the current backup if one exists.
195 - Check that barcode reading and update slots scan works.
196 - Try not to re-backup a file if a new hard link is added.
197 - Add feature to backup hard links only, but not the data.
198 - Add "All Local = yes" option to save to include all local partitions.
199 - Fix stream handling to be simpler.
200 - Add Priority and Bootstrap to Run a Job.
201 - Eliminate Restore "Run Restore Job" prompt by allowing new "run command
202   to be issued"
203 - Remove View FileSet button from Run a Job dialog.
204 - Don't count higher level non-saved directories in Files expected
205   in restore report.
206 - Handle prompt for restore job at end of Restore command.
207 - Add display of total selected files to Restore window.
208 - Add tree pane to left of window.
209 - Add progress meter.
210 - Polling does not work for restore. It tries a number of times,
211   gives up, and crashes the SD.
212 - Lock jcr_chain when doing attach/detach in acquire.c
213 - Add assert in free_jcr if attach/detach chain active.
214 - Max wait time or max run time causes seg fault -- see runtime-bug.txt
215 - Document writing to a CD/DVD with Bacula.
216 - Add check for tape alerts.
217 - Add a "base" package to the window installer for pthreadsVCE.dll
218   which is needed by all packages.
219 - Add message to user to check for fixed block size when the forward
220   space test fails in btape.
221 - When unmarking a directory check if all files below are unmarked and
222   then remove the + flag -- in the restore tree.
223 - Possibly implement: Action = Unmount Device="TapeDrive1" in Admin jobs.
224 - Setup lrrd graphs: (http://www.linpro.no/projects/lrrd/) Mike Acar.
225 - Revisit the question of multiple Volumes (disk) on a single device.
226 - Finish SIGHUP work.
227 - Check that all change in wait status in the SD are        
228   signaled to the Director.
229 - Add a block copy option to bcopy.
230 - Investigate adding Mac Resource Forks.
231 - Finish work on Gnome restore GUI.
232 - Fix "llist jobid=xx" where no fileset or client exists.
233 - Check pruning of restore jobs.
234 - From Chris Hull:
235    it seems to be complaining about 12:00pm which should be a valid 12
236    hour time.  I changed the time to 11:59am and everything works fine.
237    Also 12:00am works fine.  0:00pm also works (which I don't think
238    should).  None of the values 12:00pm - 12:59pm work for that matter.
239 - Add level to estimate command.
240 - For each job type (Admin, Restore, ...) require only the really necessary
241   fields.
242 - Fix option 2 of restore -- list where file is backed up -- require Client,
243   then list last 20 backups.
244 - Add all pools in Dir conf to DB also update them to catch changed
245   LabelFormats and such.
246 - Update volumes FromPool=xxx does all volumes.
247 - Pass Director resource name as an option to the Console.
248 - Add a "batch" mode to the Console (no unsolicited queries, ...).
249 - Add code to check for tape alerts -- tapeinfo.
250 - Make sure list of Volumes needed is in correct order for restore.
251   See havana.
252 - Remove paths (and files that reference them) that have no trailing slash   
253   in dbcheck -- or add a trailing slash.
254 - Remove Filenames (and files that reference them) that have a trailing
255   slash in dbcheck -- or remove the trailing slash.
256 - Remove orphaned paths/filenames by copying them to a new table with a 
257   reference count, then mark all referenced files/paths and remove unreferenced
258   ones.
259 - Add a .list all files in the restore tree (probably also a list all files)
260   Do both a long and short form.
261 - Allow browsing the catalog to see all versions of a file (with 
262   stat data on each file).
263 - Restore attributes of directory if replace=never set but directory
264   did not exist.
265 - Allow "delete job jobid=xxx,yyy,aaa-bbb" i.e. list + ranges.
266 - Use SHA1 on authentication if possible.
267 - See comtest-xxx.zip for Windows code to talk to USB.
268 - Make btape accept Device Names in addition to Archive names.
269 - Add Events and Perl scripting.
270 - Add John's appended files:
271    Appended = {     /files/server/logs/http/*log   }
272    and such files would be treated as follows.On a FULL backup, they would
273    be backed up like any other file.On an INCREMENTAL backup, where a
274    previous INCREMENTAL or FULL was already in thecatalogue and the length
275    of the file wasgreater than the length of the last backup, only thedata
276    added since the last backup will be dumped.On an INCREMENTAL backup, if
277    the length of the file is less than thelength of the file with the same
278    name last backed up, the completefile is dumped.On Windows systems, with
279    creation date of files, we can be evensmarter about this and not count
280    entirely upon the length.On a restore, the full and all incrementals
281    since it will beapplied in sequence to restore the file.  
282 - Add a regression test for dbcheck.  
283 - Add disk seeking on restore.  - Allow
284    for optional cancelling of SD and FD in case DIR
285   gets a fatal error. Requested by Jesse Guardiani <jesse@wingnet.net>
286 - Bizarre message: Error: Could not open WriteBootstrap file:
287 - Build console in client only build.
288 - Add "limit=n" for "list jobs"
289 - Check new HAVE_WIN32 open bits.    
290 - Check if the tape has moved before writing.  
291 - Handling removable disks -- see below:
292 - Multiple drive autochanger support -- see below.
293 - Keep track of tape use time, and report when cleaning is necessary.
294 - Fix FreeBSD mt_count problem.
295 - Add FromClient and ToClient keywords on restore command (or
296   BackupClient RestoreClient).
297 - Automatic "update slots" on user configuration directive when a
298   slot error occurs.
299 - Implement a JobSet, which groups any number of jobs. If the
300   JobSet is started, all the jobs are started together.
301   Allow Pool, Level, and Schedule overrides.
302 - Enhance cancel to timeout BSOCK packets after a specific delay.
303 - When I restore to Windows the Created, Accessed and Modifiedtimes are
304   those of the time of the restore, not those of the originalfile.  
305   The dates you will find in your restore log seem to be the original
306    creation dates
307 - Volume "add"ed to Pool gets recycled in first use. VolBytes=0
308 - If a tape is recycled while it is mounted, Stanislav Tvrudy must do an
309   additional mount to deblock the job.
310 - From Johan Decock:
311   bscan: sql_update.c:65 UPDATE File SET MD5='Ij+5kwN6TFIxK+8l8+/I+A' WHERE FileId=0
312   bscan: bscan.c:1074 Could not add MD5/SHA1 to File record. ERR=sql_update.c:65 Update problem: affected_rows=0
313 - Do scheduling by UTC using gmtime_r() in run_conf, scheduler, and   
314   ua_status.!!! Thanks to Alan Brown for this tip.
315 - Look at updating Volume Jobs so that Max Volume Jobs = 1 will work
316   correctly for multiple simultaneous jobs.
317 - Correct code so that FileSet MD5 is calculated for < and | filename   
318   generation.
319 - Mark Volume in error on error from WEOF.
320 - Implement the Media record flag that indicates that the Volume does disk 
321   addressing.
322 - Implement VolAddr, which is used when Volume is addressed like a disk,
323   and form it from VolFile and VolBlock.
324 - Make multiple restore jobs for multiple media types specifying 
325   the proper storage type.
326 - Implement MediaType keyword in bsr?   
327 - Fix fast block rejection (stored/read_record.c:118). It passes a null
328   pointer (rec) to try_repositioning().
329 - Look at extracting Win data from BackupRead.
330 - Having dashes in filenames apparently creates problems for restore
331   by filename??? hard to believe.
332 - Implement RestoreJobRetention? Maybe better "JobRetention" in a Job,
333   which would take precidence over the Catalog "JobRetention".
334 - Implement Label Format in Add and Label console commands.
335 - Possibly up network buffers to 65K. Put on variable.
336 - Put email tape request delays on one or more variables. User wants
337   to cancel the job after a certain time interval.  Maximum Mount Wait?
338 - Job, Client, Device, Pool, or Volume?
339   Is it possible to make this a directive which is *optional* in multiple
340   resources, like Level? If so, I think I'd make it an optional directive
341   in Job, Client, and Pool, with precedence such that Job overrides Client
342   which in turn overrides Pool.
343 - Print a message when a job starts if the conf file is not current.
344
345 - Spooling ideas taken from Volker Sauer's and other's emails:
346    > IMHO job spooling should be turned on
347    > 
348    > 1) by job
349    > 2) by schedule
350    > 3) by sd
351    > 
352    > where and 2) overrides 1) and 3) is independent.
353
354    Yes, this is the minimum that I think is necessary.
355
356    > 
357    > Reason(s):
358    > It should be switched by job, because the job that backs up the machine 
359    > with the bacula-sd on doesn't need spooling.
360    > It should be switched by schedule, because for full-backups I don't need 
361    > spooling, so I can switch it off (because the network faster then the 
362    > tapedrive) 
363
364    True, with the exception that if you have enough disk spool space,
365    and you want to run concurrent jobs, spooling can eliminate the block
366    interleaving restore inefficiencies.
367
368    > And you should be able to turn it of by sd for sd-machines with low disk 
369    > capacity or if you just don't need or want this feature.
370    > 
371    > There should be:
372    > - definitly the possibility for multipe spool direcories
373
374    Having multiple directories is no problem -- having different maximum
375    sizes creates specification problems.  At some point, I will probably
376    have a common SD pool of spool directories as well as a set of
377    private spool directories for each device.  The first implementation
378    will be a set of private spool directories for each device since
379    managing a global pool with a bunch of threads writing into the same
380    directory is *much* more complicated and prone to error.
381
382    > - the ability to spool parts of a backup (not the whole client)
383
384    This may change in the future, but for the moment, it will spool
385    either to a job high water mark, or until the directory is full
386    (reaches max spool size or I/O error).  It will then write to tape,
387    truncate the spool file, and begin spooling again.
388
389    > - spooling while writing to tape
390
391    Not within a job, but yes, if you run concurrent jobs -- each is a
392    different thread.  Within a job could be a feature, but *much* later.
393
394    > - parallel spooling (like parallel jobs/ concurrent jobs) of clients
395
396    Yes, this is one of my main motivations for doing it (aside from
397    eliminating tape "shoe shine" during incremental backups.
398
399    > - flushing a backup that only went to disk (like amflush in amanda)
400
401    This will be a future feature, since spooling is different from backing
402    up to disk. The future feature will be "migration" which will move a job
403    from one backup Volume to another.
404
405 - New Storage specifications:
406   Passed to SD as a sort of BSR record called Storage Specification
407     Record or SSR.
408     SSR                    
409       Next -> Next SSR
410       MediaType -> Next MediaType
411       Pool -> Next Pool
412       Device -> Next Device
413   Write Copy Resource that makes a copy of a resource.
414   Job Resource
415      Allow multiple Storage specifications
416      New flags
417         One Archive = yes
418         One Device = yes
419         One Storage = yes
420         One MediaType = yes
421         One Pool = yes
422   Storage
423      Allow Multiple Pool specifications (note, Pool currently
424        in Job resource).
425      Allow Multiple MediaType specifications
426      Allow Multiple Device specifications
427      Perhaps keep this in a single SSR
428   Tie a Volume to a specific device by using a MediaType that 
429     is contained in only one device.
430   In SD allow Device to have Multiple MediaTypes
431
432 After 1.33:
433 - Look at www.nu2.nu/pebuilder as a helper for full windows
434   bare metal restore.
435 Ideas from Jerry Scharf:
436   First let's point out some big pluses that bacula has for this
437         it's open source
438         more importantly it's active. Thank you so much for that
439         even more important, it's not flaky
440         it has an open access catalog, opening many possibilities
441         it's pushing toward heterogeneous systems capability
442   simple things:
443         I don't remember an include file directive for config files
444                 (not filesets, actual config directives)
445         can you check the configs without starting the daemon?
446         some warnings about possible common mistakes
447   big things:
448    doing the testing and blessing of concurrent backup writes
449         this is absolutely necessary in the enterprise
450    easy user recovery GUI with full access checking
451    Macintosh file client
452         macs are an interesting niche, but I fear a server is a rathole
453    working bare iron recovery for windows
454    much better handling on running config changes
455         thinking through the logic of what happens to jobs in progress
456    the option for  inc/diff backups not reset on fileset revision
457         a) use both change and inode update time against base time
458         b) do the full catalog check (expensive but accurate)
459    sizing guide (how much system is needed to back up N systems/files)
460    consultants on using bacula in building a disaster recovery system
461    an integration guide
462         or how to get at fancy things that one could do with bacula
463    logwatch code for bacula logs (or similar)
464    linux distro inclusion of bacula (brings good and bad, but necessary)
465    win2k/XP server capability (icky but you asked)
466    support for Oracle database ??
467 ===
468 - Look at adding SQL server and Exchange support for Windows. 
469 - Restore: Enter Filename: 'C:/Documents and Settings/Comercial/My
470   Documents/MOP/formulário de registro BELAS ARTES.doc' causes Bacula to
471   crash.
472 - Each DVD-RAM disk would be a volume, just like each tape is 
473   a volume. It's a 4.7GB media with random access, but there's nothing about 
474   it that I can see that makes it so different than a tape from  bacula's 
475   perspective. Why couldn't I back up to a bare floppy as a volume (ignoring 
476   the media capacity?)
477 - Make dev->file and dev->block_num signed integers so that -1 can
478   be an invalid value which happens with BSR.
479 - Create VolAddr for disk files in place of VolFile and VolBlock. This
480   is needed to properly specify ranges.
481 - Print bsmtp output to job report so that problems will be seen.
482 - Pass the number of files to be restored to the FD for reporting 
483 - Add progress of files/bytes to SD and FD.
484 - Don't continue Restore if no files selected.
485 - Print warning message if FileId > 4 billion
486 - do a "messages" before the first prompt in Console
487 - Add a date and time stamp at the beginning of every line in the 
488   Job report (Volker Sauer).
489 - Client does not show busy during Estimate command.
490 - Implement Console mtx commands.
491 - Add a default DB password to MySQL.  
492   GRANT all privileges ON bacula.* TO bacula@localhost IDENTIFIED BY 
493      'bacula_password';
494   FLUSH PRIVILEGES;
495 - Implement a Mount Command and an Unmount Command where
496   the users could specify a system command to be performed
497   to do the mount, after which Bacula could attempt to
498   read the device. This is for Removeable media such as a CDROM.
499   - Most likely, this mount command would be invoked explicitly
500   by the user using the current Console "mount" and "unmount" 
501   commands -- the Storage Daemon would do the right thing 
502   depending on the exact nature of the device.
503   - As with tape drives, when Bacula wanted a new removable
504   disk mounted, it would unmount the old one, and send a message
505   to the user, who would then use "mount" as described above 
506   once he had actually inserted the disk.
507 - Implement dump/print label to UA
508 - Implement disk spooling. Two parts: 1. Spool to disk then
509   immediately to tape to speed up tape operations. 2. Spool to
510   disk only when the tape is full, then when a tape is hung move
511   it to tape.
512 - Scratch Pool where the volumes can be re-assigned to any Pool.
513 - bextract is sending everything to the log file ****FIXME****
514 - Add Progress command that periodically reports the progress of
515   a job or all jobs.
516 - Restrict characters permitted in a Resource name, and don't permit
517   duplicate names.
518 - Allow multiple Storage specifications (or multiple names on
519   a single Storage specification) in the Job record. Thus a job 
520   can be backed up to a number of storage devices.
521 - Implement some way for the File daemon to contact the Director 
522   to start a job or pass its DHCP obtained IP number.
523 - Implement multiple Consoles.
524 - Implement a query tape prompt/replace feature for a console
525 - From Johan?
526     Two jobs ready to go, first one blocked waiting for media
527     Cancel 2nd job ("waiting execution" one)
528     Cancel blocked job
529     boom - segfault*
530 - Copy console @ code to gnome2-console
531 - Make AES the only encryption algorithm see 
532   http://csrc.nist.gov/CryptoToolkit/aes/).  It's
533   an officially adopted standard, has survived peer
534   review, and provides keys up to 256 bits.
535 - Think about how space could be freed up on a tape -- perhaps this
536   is a Merge or Compact feature that is needed.
537 - Modify FileSet, did not upgrade the current Increment job, but
538   waited for the next job to be upgraded.
539 - Take a careful look at SetACL http://setacl.sourceforge.net     
540 - Implement a where command for the tree telling where a file
541   is located.
542 - Take a careful look at Level for the estimate command, maybe make
543   it a command line option.
544 - Add Volume name to "I cannot write on this volume because"
545 - Make tree walk routines like cd, ls, ... more user friendly
546   by handling spaces better.
547 - Write your PID file and chown root:wheel before drop.
548 - Make sure there is no symlink in a file before creating a
549   file (attack).
550 - Look at mktemp or mkstemp(3).
551     mktemp and mkstemp create files with predictable names too.  That's
552     not the vulnerability.  The vulnerability is in creating files without
553     using the O_EXCL flag, which means "only create this file if it doesn't
554     exist, including if the file is a dangling symlink."
555
556     It is *NOT* enough to do the equivalent of
557
558       if doesn't exist $filename
559        then create $filename
560
561     because between the test and the create another process could have
562     gotten the CPU and created the file.  You must use atomic functions
563     (those that don't get interrupted by other processes) and O_EXCL is
564     the only way for this particular example.
565 - Automatically create pools, but instead of looking for what
566   in in Job records, walk through the pool resources.
567 - Check and double check tree code, why does it take so long?
568 - Add device name to "Current Volume not acceptable because ..."
569 - Make sure that Bacula rechecks the tape after the 20 min wait.
570 - Set IO_NOWAIT on Bacula TCP/IP packets.
571 - Try doing a raw partition backup and restore by mounting a
572   Windows partition.
573 - From Lars Kellers:
574     Yes, it would allow to highly automatic the request for new tapes. If a 
575     tape is empty, bacula reads the barcodes (native or simulated), and if 
576     an unused tape is found, it runs the label command with all the 
577     necessary parameters.
578
579     By the way can bacula automatically "move" an empty/purged volume say 
580     in the "short" pool to the "long" pool if this pool runs out of volume 
581     space?
582 - Eliminate orphaned jobs: dbcheck, normal pruning, delete job command.
583   Hm.  Well, there are the remaining orphaned job records:
584
585      |   105 | Llioness Save  | 0000-00-00 00:00:00 | B    | D     |        0 |             0 | f         |
586      |   110 | Llioness Save  | 0000-00-00 00:00:00 | B    | I     |        0 |             0 | f         |
587      |   115 | Llioness Save  | 2003-09-10 02:22:03 | B    | I     |        0 |             0 | A         |
588      |   128 | Catalog Save   | 2003-09-11 03:53:32 | B    | I     |        0 |             0 | C         |
589      |   131 | Catalog Save   | 0000-00-00 00:00:00 | B    | I     |        0 |             0 | f         |
590
591      As you can see, three of the five are failures.  I already deleted the
592      one restore and one other failure using the by-client option.  Deciding
593      what is an orphaned job is a tricky problem though, I agree.  All these
594      records have or had 0 files/ 0 bytes, except for the restore.  With no
595      files, of course, I don't know of the job ever actually becomes
596      associated with a Volume.
597
598      (I'm not sure if this is documented anywhere -- what are the meanings of
599      all the possible JobStatus codes?)
600
601      Looking at my database, it appears to me as though all the "orphaned"
602      jobs fit into one of two categories:
603
604      1)  The Job record has a StartTime but no EndTime, and the job is not
605          currently running;
606      or
607      2)  The Job record has an EndTime, indicating that it completed, but
608          it has no associated JobMedia record.
609
610
611      This does suggest an approach.  If failed jobs (or jobs that, for some
612      other reason, write no files) are associated with a volume via a
613      JobMedia record, then they should be purged when the associated volume
614      is purged.  I see two ways to handle jobs that are NOT associated with a
615      specific volume:
616
617      1)  purge them automatically whenever any volume is manually purged;
618      or
619      2)  add an option to the purge command to manually purge all jobs with
620          no associated volume.
621
622      I think Restore jobs also fall into category 2 above ....  so one might
623      want to make that "The Job record has an EndTime,, but no associated
624      JobMedia record, and is not a Restore job."  
625 - make "btape /tmp" work.
626 - Make sure a rescheduled job is properly reported by status.
627 - Walk through the Pool records rather than the Job records
628   in dird.c to create/update pools.
629 - What to do about "list files job=xxx".
630 - When job rescheduled, status gives is waiting for Client Rufus 
631   to connect to Storage File. Dir needs to inform SD that job
632   is rescheduled.
633 - Make Dmsg look at global before calling subroutine.
634 - Enable trace output at runtime for Win32
635 - Available volumes for autochangers (see patrick@baanboard.com 3 Sep 03 
636   and 4 Sep) scan slots.
637 - Get and test MySQL 4.0
638 - Do a complete audit of all pthreads_mutex, cond, ... to ensure that
639   any that are dynamically initialized are destroyed when no longer used.
640 - Look at how fuser works and /proc/PID/fd that is how Nic found the
641   file descriptor leak in Bacula.
642 - Implement WrapCounters in Counters.
643 - Turn on SIGHUP in dird.c and test.
644 - Use system dependent calls to get more precise info on tape errors.
645 - Add heartbeat from FD to SD if hb interval expires.
646 - Suppress read error on blank tape when doing a label.
647 - Can we dynamically change FileSets?
648 - If pool specified to label command and Label Format is specified,
649   automatically generate the Volume name.
650 - Why can't SQL do the filename sort for restore?
651 - Look at libkse (man kse) for FreeBSD threading.
652 - Look into Microsoft Volume Shadowcopy Service VSS for backing
653   up system state components (Active Directory, System Volume, ...)
654 - Add ExhautiveRestoreSearch
655 - Look at the possibility of loading only the necessary 
656   data into the restore tree (i.e. do it one directory at a
657   time as the user walks through the tree).
658 - Possibly use the hash code if the user selects all for a restore command.
659 - Orphaned Dir buffer at parse_conf.c:373 =>  store_dir
660 - Fix "restore all" to bypass building the tree.
661 - Prohibit backing up archive device (findlib/find_one.c:128)
662 - Implement Release Device in the Job resource to unmount a drive.
663 - Implement Acquire Device in the Job resource to mount a drive,
664   be sure this works with admin jobs so that the user can get
665   prompted to insert the correct tape.  Possibly some way to say to
666   run the job but don't save the files.
667 - Implement FileOptions (see end of this document)
668 - Make things like list where a file is saved case independent for
669   Windows.
670 - Implement migrate
671 - Bacula needs to propagate SD errors.
672   > > cluster-dir: Start Backup JobId 252, Job=REUTERS.2003-08-11_15.04.12
673   > > prod4-sd: REUTERS.2003-08-11_15.04.12 Error: Write error on device 
674        /dev/nst0. ERR=Input/output error.
675   > > prod4-sd: REUTERS.2003-08-11_15.04.12 Error: Re-read of last block failed. 
676        Last block=5162 Current block=5164.
677   > > prod4-sd: End of medium on Volume "REU007" Bytes=16,303,521,933 
678
679 - Use autochanger to handle multiple devices.
680 - Add SuSE install doc to list.
681 - Check and rechedk "Invalid block number"
682 - Make bextract release the drive properly between tapes 
683   so that an autochanger can be made to work.
684 - User wants to NOT backup up certain big files (email files).
685 - Maybe remove multiple simultaneous devices code in SD.
686 - On Windows with very long path names, it may be impossible to create 
687   a file (and thus restore it) because the total length is too long.
688   We must cd into the directory then create the file without the
689   full path name.
690 - lstat() is not going to work on Win32 for testing date.
691 - Implement a Recycle command
692 - Add client name to cram-md5 challenge so Director can immediately
693   verify if it is the correct client.
694 - Add JobLevel in FD status (but make sure it is defined).
695 - Audit all UA commands to ensure that we always prompt where possible.
696 - Check Jmsg in bnet, may not work, must dup bsock.
697 - Suppress Job Name in Jmsg for console
698 - Create Pools that are referenced in a Run statement at startup if possible.
699 - Use runbeforejob to unload, then reload a volume previously used,
700   then the next job run gets an error reading the drive.
701 - Make bootstrap filename unique.
702 - Test a second language e.g. french.
703 - Start working on Base jobs.
704 - Make "make binary-release" work from any directory.
705 - Implement UnsavedFiles DB record.
706 - Implement argc/argv for daemon command line scanning using table driven
707   stuff below.
708 - Implement table driven single argc/argv scanner to pickup all arguments.
709   Much like xxx_conf.c scan table.
710   keyword, handler(store_routine), store_address, code, flags, default.
711 - From Phil Stracchino:
712   It would probably be a per-client option, and would be called
713   something like, say, "Automatically purge obsoleted jobs".  What it
714   would do is, when you successfully complete a Differential backup of a
715   client, it would automatically purge all Incremental backups for that
716   client that are rendered redundant by that Differential.  Likewise,
717   when a Full backup on a client completed, it would automatically purge
718   all Differential and Incremental jobs obsoleted by that Full backup.
719   This would let people minimize the number of tapes they're keeping on
720   hand without having to master the art of retention times.
721 - Implement a M_SECURITY message class.
722 - When doing a Backup send all attributes back to the Director, who
723   would then figure out what files have been deleted.
724 - Currently in mount.c:236 the SD simply creates a Volume. It should have
725   explicit permission to do so.  It should also mark the tape in error
726   if there is an error.
727 - Make sure all restore counters are working correctly in the FD.
728 - SD Bytes Read is wrong.
729 - Look at ALL higher level routines that call block.c to be sure
730   they don't expect something in errmsg.
731 - Investigate doing RAW backup of Win32 partition.
732 - Add thread specific data to hold the jcr -- send error messages from
733   low level routines by accessing it and using Jmsg().
734 - Cancel waiting for Client connect in SD if FD goes away.
735
736 - Examine Bare Metal restore problem (a FD crash exists somewhere ...).
737 - Implement timeout in response() when it should come quickly.
738 - Implement console @echo command.
739 - Implement a Slot priority (loaded/not loaded).
740 - Implement "vacation" Incremental only saves.
741 - Implement single pane restore (much like the Gftp panes).
742 - Implement Automatic Mount even in operator wait.
743 - Implement create "FileSet"?
744 - Fix watchdog pthread crash on Win32 (this is pthread_kill() Cygwin bug)
745 - Implement "scratch pool" where tapes are defined and can be
746   taken by any pool that needs them.
747 - Implement restore "current system", but take all files without
748   doing selection tree -- so that jobs without File records can
749   be restored.
750 - Add prefixlinks to where or not where absolute links to FD.
751 - Issue message to mount a new tape before the rewind.
752 - Simplified client job initiation for portables.
753 - If SD cannot open a drive, make it periodically retry.
754 - Add more of the config info to the tape label.
755
756 - If tape is marked read-only, then try opening it read-only rather than
757   failing, and remember that it cannot be written.
758 - Refine SD waiting output:
759     Device is being positioned
760     >     Device is being positioned for append
761     >     Device is being positioned to file x
762     > 
763 - Figure out some way to estimate output size and to avoid splitting
764   a backup across two Volumes -- this could be useful for writing CDROMs
765   where you really prefer not to have it split -- not serious.
766 - Have SD compute MD5 or SHA1 and compare to what FD computes.
767 - Make VolumeToCatalog calculate an MD5 or SHA1 from the 
768   actual data on the Volume and compare it.                  
769 - Implement Bacula plugins -- design API
770 - Make bcopy read through bad tape records.
771 - Program files (i.e. execute a program to read/write files).
772   Pass read date of last backup, size of file last time.
773 - Add Signature type to File DB record.
774 - CD into subdirectory when open()ing files for backup to
775   speed up things.  Test with testfind().
776 - Priority job to go to top of list.
777 - Why are save/restore of device different sizes (sparse?)   Yup! Fix it.
778 - Implement some way for the Console to dynamically create a job.
779 - Restore to a particular time -- e.g. before date, after date. 
780 - Solaris -I on tar for include list
781 - Need a verbose mode in restore, perhaps to bsr.
782 - bscan without -v is too quiet -- perhaps show jobs.
783 - Add code to reject whole blocks if not wanted on restore.
784 - Check if we can increase Bacula FD priorty in Win2000
785 - Make sure the MaxVolFiles is fully implemented in SD
786 - Check if both CatalogFiles and UseCatalog are set to SD.
787 - Figure out how to do a bare metal Windows restore
788 - Possibly add email to Watchdog if drive is unmounted too
789   long and a job is waiting on the drive.
790 - Restore program that errs in SD due to no tape, reports
791   OK incorrectly in output.
792 - After unmount, if restore job started, ask to mount.
793 - Convert all %x substitution variables, which are hard to remember
794   and read to %(variable-name).  Idea from TMDA.
795 - Remove NextId for SQLite. Optimize.
796 - Move all SQL statements into a single location.
797 - Add UA rc and history files.
798 - put termcap (used by console) in ./configure and
799   allow -with-termcap-dir.
800 - Fix Autoprune for Volumes to respect need for full save.
801 - Fix Win32 config file definition name on /install
802 - Compare tape to Client files (attributes, or attributes and data) 
803 - Make all database Ids 64 bit.
804 - Write an applet for Linux.
805 - Allow console commands to detach or run in background.
806 - Fix status delay on storage daemon during rewind.
807 - Add SD message variables to control operator wait time
808   - Maximum Operator Wait
809   - Minimum Message Interval
810   - Maximum Message Interval
811 - Send Operator message when cannot read tape label.
812 - Verify level=Volume (scan only), level=Data (compare of data to file).
813   Verify level=Catalog, level=InitCatalog
814 - Events file
815 - Add keyword search to show command in Console.
816 - Events : tape has more than xxx bytes.
817 - Complete code in Bacula Resources -- this will permit
818   reading a new config file at any time.
819 - Handle ctl-c in Console
820 - Implement script driven addition of File daemon to config files.
821 - Think about how to make Bacula work better with File (non-tape) archives.
822 - Write Unix emulator for Windows.
823 - Put memory utilization in Status output of each daemon
824   if full status requested or if some level of debug on.
825 - Make database type selectable by .conf files i.e. at runtime
826 - Set flag for uname -a.  Add to Volume label.
827 - Implement throttled work queue.
828 - Restore files modified after date
829 - SET LD_RUN_PATH=$HOME/mysql/lib/mysql
830 - Implement Restore FileSet=
831 - Create a protocol.h and protocol.c where all protocol messages
832   are concentrated.
833 - Remove duplicate fields from jcr (e.g. jcr.level and jcr.jr.Level, ...).
834 - Timout a job or terminate if link goes down, or reopen link and query.
835 - Concept of precious tapes (cannot be reused).
836 - Make bcopy copy with a single tape drive.
837 - Permit changing ownership during restore.
838
839 - From Phil:
840   > My suggestion:  Add a feature on the systray menu-icon menu to request
841   > an immediate backup now.  This would be useful for laptop users who may
842   > not be on the network when the regular scheduled backup is run.
843   > 
844   > My wife's suggestion: Add a setting to the win32 client to allow it to
845   > shut down the machine after backup is complete (after, of course,
846   > displaying a "System will shut down in one minute, click here to cancel"
847   > warning dialog).  This would be useful for sites that want user
848   > woorkstations to be shut down overnight to save power.
849   > 
850
851 - Autolabel should be specified by DIR instead of SD.
852 - Storage daemon    
853   - Add media capacity
854   - AutoScan (check checksum of tape)
855   - Format command = "format /dev/nst0"
856   - MaxRewindTime
857   - MinRewindTime
858   - MaxBufferSize
859   - Seek resolution (usually corresponds to buffer size)
860   - EODErrorCode=ENOSPC or code
861   - Partial Read error code
862   - Partial write error code
863   - Nonformatted read error
864   - Nonformatted write error
865   - WriteProtected error
866   - IOTimeout
867   - OpenRetries
868   - OpenTimeout
869   - IgnoreCloseErrors=yes
870   - Tape=yes
871   - NoRewind=yes
872 - Pool
873   - Maxwrites
874   - Recycle period
875 - Job
876   - MaxWarnings
877   - MaxErrors (job?)
878 =====
879 - FD sends unsaved file list to Director at end of job (see
880   RFC below).
881 - File daemon should build list of files skipped, and then
882   at end of save retry and report any errors.
883 - Write a Storage daemon that uses pipes and
884   standard Unix programs to write to the tape.
885   See afbackup.
886 - Need something that monitors the JCR queue and
887   times out jobs by asking the deamons where they are.
888 - Enhance Jmsg code to permit buffering and saving to disk.
889 - device driver = "xxxx" for drives.
890 - Verify from Volume
891 - Ensure that /dev/null works
892 - Need report class for messages. Perhaps
893   report resource where report=group of messages
894 - enhance scan_attrib and rename scan_jobtype, and
895   fill in code for "since" option 
896 - Director needs a time after which the report status is sent
897   anyway -- or better yet, a retry time for the job.
898 - Don't reschedule a job if previous incarnation is still running.
899 - Some way to automatically backup everything is needed????
900 - Need a structure for pending actions:
901   - buffered messages
902   - termination status (part of buffered msgs?)
903 - Drive management
904   Read, Write, Clean, Delete
905 - Login to Bacula; Bacula users with different permissions:
906    owner, group, user, quotas
907 - Store info on each file system type (probably in the job header on tape.
908   This could be the output of df; or perhaps some sort of /etc/mtab record.
909
910 ========= ideas ===============
911 From: "Jerry K. Schieffer" <jerry@skylinetechnology.com>
912 To: <kern@sibbald.com>
913 Subject: RE: [Bacula-users] future large programming jobs
914 Date: Thu, 26 Feb 2004 11:34:54 -0600
915
916 I noticed the subject thread and thought I would offer the following
917 merely as sources of ideas, i.e. something to think about, not even as
918 strong as a request.  In my former life (before retiring) I often
919 dealt with backups and storage management issues/products as a
920 developer and as a consultant.  I am currently migrating my personal
921 network from amanda to bacula specifically because of the ability to
922 cross media boundaries during storing backups.
923 Are you familiar with the commercial product called ADSM (I think IBM
924 now sells it under the Tivoli label)?  It has a couple of interesting
925 ideas that may apply to the following topics.
926
927 1. Migration:  Consider that when you need to restore a system, there
928 may be pressure to hurry.  If all the information for a single client
929 can eventually end up on the same media (and in chronological order),
930 the restore is facillitated by not having to search past information
931 from other clients.  ADSM has the concept of "client affinity" that
932 may be associated with it's storage pools.  It seems to me that this
933 concept (as an optional feature) might fit in your architecture for
934 migration.
935
936 ADSM also has the concept of defining one or more storage pools as
937 "copy pools" (almost mirrors, but only in the sense of contents).
938 These pools provide the ability to have duplicte data stored both
939 onsite and offsite.  The copy process can be scheduled to be handled
940 by their storage manager during periods when there is no backup
941 activity.  Again, the migration process might be a place to consider
942 implementing something like this.
943
944 >
945 > It strikes me that it would be very nice to be able to do things
946 like
947 > have the Job(s) backing up the machines run, and once they have all
948 > completed, start a migration job to copy the data from disks Volumes
949 to
950 > a tape library and then to offsite storage. Maybe this can already
951 be
952 > done with some careful scheduling and Job prioritzation; the events
953 > mechanism described below would probably make it very easy.
954
955 This is the goal. In the first step (before events), you simply
956 schedule
957 the Migration to tape later.
958
959 2. Base jobs:  In ADSM, each copy of each stored file is tracked in
960 the database.  Once a file (unique by path and metadata such as dates,
961 size, ownership, etc.) is in a copy pool, no more copies are made.  In
962 other words, when you start ADSM, it begins like your concept of a
963 base job.  After that it is in the "incremental" mode.  You can
964 configure the number of "generations" of files to be retained, plus a
965 retention date after which even old generations are purged.  The
966 database tracks the contents of media and projects the percentage of
967 each volume that is valid.  When the valid content of a volume drops
968 below a configured percentage, the valid data are migrated to another
969 volume and the old volume is marked as empty.  Note, this requires
970 ADSM to have an idea of the contents of a client, i.e. marking the
971 database when an existing file was deleted, but this would solve your
972 issue of restoring a client without restoring deleted files.
973
974 This is pretty far from what bacula now does, but if you are going to
975 rip things up for Base jobs,.....
976 Also, the benefits of this are huge for very large shops, especially
977 with media robots, but are a pain for shops with manual media
978 mounting.
979
980 >
981 > Base jobs sound pretty useful, but I'm not dying for them.
982
983 Nobody is dying for them, but when you see what it does, you will die
984 without it.
985
986 3. Restoring deleted files:  Since I think my comments in (2) above
987 have low probability of implementation, I'll also suggest that you
988 could approach the issue of deleted files by a mechanism of having the
989 fd report to the dir, a list of all files on the client for every
990 backup job.  The dir could note in the database entry for each file
991 the date that the file was seen.  Then if a restore as of date X takes
992 place, only files that exist from before X until after X would be
993 restored.  Probably the major cost here is the extra date container in
994 each row of the files table.
995
996 Thanks for "listening".  I hope some of this helps.  If you want to
997 contact me, please send me an email - I read some but not all of the
998 mailing list traffic and might miss a reply there.
999
1000 Please accept my compliments for bacula.  It is doing a great job for
1001 me!!  I sympathize with you in the need to wrestle with excelence in
1002 execution vs. excelence in feature inclusion.
1003
1004 Regards,
1005 Jerry Schieffer
1006
1007 ==============================
1008
1009 Longer term to do:
1010 - Design at hierarchial storage for Bacula. Migration and Clone. 
1011 - Implement FSM (File System Modules).
1012 - Audit M_ error codes to ensure they are correct and consistent.
1013 - Add variable break characters to lex analyzer.
1014   Either a bit mask or a string of chars so that
1015   the caller can change the break characters.
1016 - Make a single T_BREAK to replace T_COMMA, etc.
1017 - Ensure that File daemon and Storage daemon can
1018   continue a save if the Director goes down (this
1019   is NOT currently the case). Must detect socket error,
1020   buffer messages for later. 
1021 - Enhance time/duration input to allow multiple qualifiers e.g. 3d2h
1022 - Add ability to backup to two Storage devices (two SD sessions) at
1023   the same time -- e.g. onsite, offsite.
1024 - Add the ability to consolidate old backup sets (basically do a restore
1025   to tape and appropriately update the catalog). Compress Volume sets.
1026   Might need to spool via file is only one drive is available.
1027 - Compress or consolidate Volumes of old possibly deleted files. Perhaps
1028   someway to do so with every volume that has less than x% valid 
1029   files.
1030
1031
1032 Migration: Move a backup from one Volume to another
1033 Clone:     Copy a backup -- two Volumes
1034
1035 Bacula Migration is based on Jobs (apparently Networker is file by file).
1036
1037 Migration triggered by:
1038   Number of Jobs
1039   Number of Volumes
1040   Age of Jobs
1041   Highwater mark (keep total size)
1042   Lowwater mark
1043   
1044
1045
1046 ======================================================
1047         Base Jobs design
1048 It is somewhat like a Full save becomes an incremental since
1049 the Base job (or jobs) plus other non-base files.
1050 Need:
1051 - A Base backup is same as Full backup, just different type.
1052 - New BaseFiles table that contains:
1053     BaseId - index
1054     BaseJobId - Base JobId referenced for this FileId (needed ???)
1055     JobId - JobId currently running
1056     FileId - File not backed up, exists in Base Job
1057     FileIndex - FileIndex from Base Job.
1058   i.e. for each base file that exists but is not saved because
1059   it has not changed, the File daemon sends the JobId, BaseId,
1060   FileId, FileIndex back to the Director who creates the DB entry.
1061 - To initiate a Base save, the Director sends the FD 
1062   the FileId, and full filename for each file in the Base.
1063 - When the FD finds a Base file, he requests the Director to
1064   send him the full File entry (stat packet plus MD5), or
1065   conversely, the FD sends it to the Director and the Director
1066   says yes or no. This can be quite rapid if the FileId is kept
1067   by the FD for each Base Filename.          
1068 - It is probably better to have the comparison done by the FD
1069   despite the fact that the File entry must be sent across the
1070   network.
1071 - An alternative would be to send the FD the whole File entry
1072   from the start. The disadvantage is that it requires a lot of
1073   space. The advantage is that it requires less communications
1074   during the save.
1075 - The Job record must be updated to indicate that one or more
1076   Bases were used.
1077 - At end of Job, FD returns:   
1078    1. Count of base files/bytes not written to tape (i.e. matches)
1079    2. Count of base file that were saved i.e. had changed.
1080 - No tape record would be written for a Base file that matches, in the
1081   same way that no tape record is written for Incremental jobs where
1082   the file is not saved because it is unchanged.
1083 - On a restore, all the Base file records must explicitly be
1084   found from the BaseFile tape. I.e. for each Full save that is marked
1085   to have one or more Base Jobs, search the BaseFile for all occurrences
1086   of JobId.
1087 - An optimization might be to make the BaseFile have:
1088      JobId
1089      BaseId
1090      FileId
1091   plus
1092      FileIndex
1093   This would avoid the need to explicitly fetch each File record for
1094   the Base job.  The Base Job record will be fetched to get the
1095   VolSessionId and VolSessionTime.
1096 =========================================================  
1097
1098
1099 ========================================================== 
1100     Unsaved File design
1101 For each Incremental job that is run, there may be files that
1102 were found but not saved because they were locked (this applies
1103 only to Windows). Such a system could send back to the Director
1104 a list of Unsaved files.
1105 Need:
1106 - New UnSavedFiles table that contains:
1107   JobId
1108   PathId
1109   FilenameId
1110 - Then in the next Incremental job, the list of Unsaved Files will be
1111   feed to the FD, who will ensure that they are explicitly chosen even
1112   if standard date/time check would not have selected them.
1113 =============================================================
1114
1115
1116 Done: (see kernsdone for more)
1117
1118 === after 1.32c
1119 - John's Full save failed with 1.32c FD and 1.31 Dir no FD status,
1120   and no error message.
1121 - Add fd and st as Console keywords.
1122 - Recycling volume with a Slot requires an operator intervention:
1123     rufus-dir: Start Backup JobId 18, Job=kernsave.2003-11-01_21.23.52
1124     rufus-dir: Pruned 1 Job on Volume Vol01 from catalog.
1125     rufus-dir: There are no Jobs associated with Volume Vol01. Marking it purged.
1126     rufus-dir: Recycled volume "Vol01"
1127     rufus-sd: Please mount Volume "Vol01" on Storage Device "DDS-4" for Job kernsave.2003-11-01_21.23.52
1128     Use "mount" command to release Job.
1129 - Implement Dan's bacula script (email of 26 Oct).
1130 - Add JobName= to VerifyToCatalog so that all verifies can be done at the end.
1131 - Edit the Client/Storage name into authentication failure messages.
1132 - Fix packet too big problem. This is most likely a Windows TCP stack 
1133   problem.
1134 - Implement ClientRunBeforeJob and ClientRunAfterJob.
1135 - Implement forward spacing block/file: position_device(bsr) --
1136   just before read_block_from_device();
1137
1138 =====
1139    Multiple drive autochanger data:  see Alan Brown
1140    mtx -f xxx unloadStorage Element 1 is Already Full(drive 0 was empty)
1141    Unloading Data Transfer Element into Storage Element 1...source Element 
1142    Address 480 is Empty
1143
1144    (drive 0 was empty and so was slot 1)
1145    >   mtx -f xxx load 15 0
1146    no response, just returns to the command prompt when complete.
1147    >   mtx -f xxx status  Storage Changer /dev/changer:2 Drives, 60 Slots ( 2 Import/Export )
1148    Data Transfer Element 0:Full (Storage Element 15 Loaded):VolumeTag = HX001
1149    Data Transfer Element 1:Empty
1150          Storage Element 1:Empty
1151          Storage Element 2:Full :VolumeTag=HX002
1152          Storage Element 3:Full :VolumeTag=HX003
1153          Storage Element 4:Full :VolumeTag=HX004
1154          Storage Element 5:Full :VolumeTag=HX005
1155          Storage Element 6:Full :VolumeTag=HX006
1156          Storage Element 7:Full :VolumeTag=HX007
1157          Storage Element 8:Full :VolumeTag=HX008
1158          Storage Element 9:Full :VolumeTag=HX009
1159          Storage Element 10:Full :VolumeTag=HX010
1160          Storage Element 11:Empty
1161          Storage Element 12:Empty
1162          Storage Element 13:Empty
1163          Storage Element 14:Empty
1164          Storage Element 15:Empty
1165          Storage Element 16:Empty....
1166          Storage Element 28:Empty
1167          Storage Element 29:Full :VolumeTag=CLNU01L1
1168          Storage Element 30:Empty....
1169          Storage Element 57:Empty
1170          Storage Element 58:Full :VolumeTag=NEX261L2
1171          Storage Element 59 IMPORT/EXPORT:Empty
1172          Storage Element 60 IMPORT/EXPORT:Empty
1173    $  mtx -f xxx unload
1174    Unloading Data Transfer Element into Storage Element 15...done
1175
1176    (just to verify it remembers where it came from, however it can be
1177     overrriden with mtx unload {slotnumber} to go to any storage slot.)
1178    Configuration wise:
1179    There needs to be a table of drive # to devices somewhere - If there are
1180    multiple changers or drives there may not be a 1:1 correspondance between
1181    changer drive number and system device name - and depending on the way the
1182    drives are hooked up to scsi busses, they may not be linearly numbered
1183    from an offset point either.something like 
1184
1185    Autochanger drives = 2
1186    Autochanger drive 0 = /dev/nst1
1187    Autochanger drive 1 = /dev/nst2
1188    IMHO, it would be _safest_ to use explicit mtx unload commands at all
1189    times, not just for multidrive changers. For a 1 drive changer, that's
1190    just:
1191
1192    mtx load xx 0
1193    mtx unload xx 0
1194
1195    MTX's manpage (1.2.15):
1196          unload [<slotnum>] [ <drivenum> ]
1197                     Unloads media from drive  <drivenum>  into  slot
1198                     <slotnum>. If <drivenum> is omitted, defaults to
1199                     drive 0 (as do all commands).  If  <slotnum>  is
1200                     omitted, defaults to the slot that the drive was
1201                     loaded from. Note that there's currently no  way
1202                     to  say  'unload  drive 1's media to the slot it
1203                     came from', other than to  explicitly  use  that
1204                     slot number as the destination.AB
1205 ====
1206
1207 ====
1208 SCSI info:
1209 FreeBSD
1210 undef# camcontrol devlist
1211 <WANGTEK 51000  SCSI M74H 12B3>    at scbus0 target 2 lun 0 (pass0,sa0)
1212 <ARCHIVE 4586XX 28887-XXX 4BGD>    at scbus0 target 4 lun 0 (pass1,sa1)
1213 <ARCHIVE 4586XX 28887-XXX 4BGD>    at scbus0 target 4 lun 1 (pass2)
1214
1215 tapeinfo -f /dev/sg0 with a bad tape in drive 1:
1216 [kern@rufus mtx-1.2.17kes]$ ./tapeinfo -f /dev/sg0
1217 Product Type: Tape Drive
1218 Vendor ID: 'HP      '
1219 Product ID: 'C5713A          '
1220 Revision: 'H107'
1221 Attached Changer: No
1222 TapeAlert[3]:   Hard Error: Uncorrectable read/write error.
1223 TapeAlert[20]:    Clean Now: The tape drive neads cleaning NOW.
1224 MinBlock:1
1225 MaxBlock:16777215
1226 SCSI ID: 5
1227 SCSI LUN: 0
1228 Ready: yes
1229 BufferedMode: yes
1230 Medium Type: Not Loaded
1231 Density Code: 0x26
1232 BlockSize: 0
1233 DataCompEnabled: yes
1234 DataCompCapable: yes
1235 DataDeCompEnabled: yes
1236 CompType: 0x20
1237 DeCompType: 0x0
1238 Block Position: 0
1239 =====
1240
1241 ====
1242    Handling removable disks
1243
1244    From: Karl Cunningham <karlc@keckec.com>
1245
1246    My backups are only to hard disk these days, in removable bays. This is my
1247    idea of how a backup to hard disk would work more smoothly. Some of these
1248    things Bacula does already, but I mention them for completeness. If others
1249    have better ways to do this, I'd like to hear about it.
1250
1251    1. Accommodate several disks, rotated similar to how tapes are.  Identified
1252    by partition volume ID or perhaps by the name of a subdirectory.
1253    2. Abort & notify the admin if the wrong disk is in the bay.
1254    3. Write backups to different subdirectories for each machine to be backed
1255    up.
1256    4. Volumes (files) get created as needed in the proper subdirectory, one
1257    for each backup.
1258    5. When a disk is recycled, remove or zero all old backup files. This is
1259    important as the disk being recycled may be close to full. This may be
1260    better done manually since the backup files for many machines may be
1261    scattered in many subdirectories.
1262 ====
1263
1264
1265 === Done in 1.34.3
1266 - To pass Include 1 or two letter commands
1267   I Name           Include name - first record
1268   B Name           Base name - repeat
1269   R "xxx"          Regexp
1270   W "xxx"          Wild Card
1271   E zzz            Exclude expression (wild card)
1272   P "plugin"       Plugin
1273   D "reader"       Reader program
1274   T "writer"       Writer program
1275   O Options        In current commpressed format
1276     (compression, signature, onefs, recurse, sparse,
1277      replace, verify options, ...)
1278   N                End option set
1279   B BaseName       Start second option set any letter
1280   ...
1281   E
1282   F Number         Number of filenames to follow
1283   <file-name>
1284   B Name
1285   ...
1286   N                End option set
1287   F Number         Number of filenames to follow
1288   <file-name>
1289   ...
1290 - Add regression of btape "fill" 
1291 ==== Done in 1.34.4
1292 - Implement "label slots=1,2... pool=yyy barcodes"
1293 - Mark a non-removable disk Volume in error rather than asking sys op to
1294   mount it.
1295 - Implement Fixed storage LabelFormat test.
1296 - Add reporting in attr despooling.
1297 - Figure out how to use ssh or stunnel to protect Bacula communications.
1298   Add Dan's work to manual See ssl.txt
1299
1300 ==== Done in 1.35.0
1301 - Implement fast tree insert (doubly linked list)
1302 - Disallow using Internal database
1303 - Feedback while the restore tree is being built.    
1304 - Add detection of Whitebox release in ./configure
1305 - Add InChanger to "list media"
1306 - Implement second cut of SIGHUP in Dir
1307   (Implement resources on a single pointer)
1308 - Add regular expressions to FileSets (needs testing).
1309 - Test new despooling error recovery code when partition fills.
1310 - Sort Scheduled jobs status listing by start time.
1311 - Add priority to Scheduled jobs status listing.
1312 - Look at Win32 inc problem when new directory added files not saved???
1313 - Require resource names to be unique.
1314 - Make sure that all errors from libacl are printed.
1315 - Make FD run on Win95 if possible (not really possible).
1316 - Fix GROUP BYs in all SQL (done by Dan -- thanks)
1317 - Make entering multiple Storage names in Dir illegal.
1318 - Make btape release the drive during the "test" append.
1319 - Fix restore:
1320    You have selected the following JobIds: 739,856,797
1321    Building directory tree for JobId 739 ...
1322    Building directory tree for JobId 856 ...
1323    Building directory tree for JobId 797 ...3 
1324    Jobs inserted into the tree.
1325 - Fix errno handling in win32 compat routines.
1326 - Add better error codes to run_program (10000+)
1327 - Revisit and revise Disaster Recovery (fix SCSI and RAID 
1328   disk detection)
1329 - When passwords do not match, print message that points the
1330   user to the doc.
1331 - Do tape alerts -- see tapealert.txt
1332 - Find memory leaks in address_conf.c
1333 - Network order of port and ip addresses.
1334 - SetIP in dird/fd_cmds.c is broken.
1335 - don't use inet_addr() it is deprecated.
1336 - Fix code in filed.c for init_bsock();
1337 - Fix code in console.c for init_bsock();
1338 - Solve the termcap.h problem on Solaris configure.
1339 - Make Verify jobs require exclusive use of Volume as Restore 
1340   jobs do.
1341 - Fix restore ++++ that get intermingled with "Building directory tree"
1342 - Fix doc in dirdconf.html for @, where the file must
1343   have not a list of files, but 
1344    file = xxx
1345    file = yyy
1346 - Test Win32 errno handling.
1347 - port 1.34.6-block.patch to 1.35
1348 - Look at Chris' patch for bscan bug.
1349 - Fix error handling in spooling both data and attribute.
1350 - Implement Ignore FileSet Change.
1351 - Doc new duration time input editing.
1352 - Bacula rescue CDROM implement isolinux
1353 - Make sure Qmsgs are dequeued by FD and SD.
1354 - Check if ACLs allocated at dird_conf.c:1214 are being properly
1355   released.
1356 - Test/doc Tape Alerts
1357 - Doc dbcheck eliminate orphaned clients.
1358 - Doc Phil's new delete job jobid scanning code.
1359 - Document that console commands can be abbreviated.
1360 - Doc update AllFromVol
1361 - Doc -p option in stored
1362 - New IP address specification is used as follows:
1363     [sdaddresses|diraddresses|fdaddresses] = { [[ip|ipv4|ipv6] = { 
1364            [[addr|port] = [^ ]+[\n;]+] }] }
1365
1366   so it could look for example like this:
1367      SDaddresses  = { ip = {
1368             addr = 1.2.3.4; port = 1205; }
1369         ipv4 = {
1370             addr = 1.2.3.4; port = http; }
1371         ipv6 = {
1372             addr = 1.2.3.4;
1373             port = 1205;
1374         }
1375         ip = {
1376             addr = 1.2.3.4
1377             port = 1205
1378         }
1379         ip = {
1380             addr = 1.2.3.4
1381         }
1382         ip = {
1383             addr = 201:220:222::2
1384         }
1385         ip = {
1386             addr = bluedot.thun.net
1387         }
1388      }
1389   as a consequence, you can now specify multiple IP addresses and
1390   ports to be used. In the case of a server, it will listen on
1391   all those that you specify. In the case of connecting to the server,
1392   Bacula will attempt connecting to one at a time until it succeeds.
1393   And, in a few other special cases, Bacula will use only the first
1394   address specified.
1395
1396   The default port numbers are still the same and the services and hosts 
1397   are also resolved by name. So now  you could use the real names for the 
1398   port numbers.
1399
1400   An ip section will allow resolution to either an ipv4 or an ipv6 address.
1401   An ipv4 section forces the resolution to be only ipv4, and an ipv6 section
1402   forces the resolution to be only ipv6.
1403 - Fix silly restriction requiring Include { Options { xxx } } to be
1404   on separate lines.
1405
1406