]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manual/progs.tex
Update
[bacula/docs] / docs / manual / progs.tex
index 78dad02b359c2ca763ba5198c89b0547ff8e30d8..7e05530c9cfae8ae4cfbc09f694201e58b6f3753 100644 (file)
@@ -793,11 +793,13 @@ read by {\bf btape}
 
 \footnotesize
 \begin{verbatim}
-Usage: btape [-c config_file] [-d debug_level] [device_name]
+Usage: btape <options> <device_name>
+       -b <file>   specify bootstrap file
        -c <file>   set configuration file to file
-       -dnn        set debug level to nn
+       -d <nn>     set debug level to nn
+       -p          proceed inspite of I/O errors
        -s          turn off signals
-       -t          open the default tape device
+       -v          be verbose
        -?          print this message.
 \end{verbatim}
 \normalsize
@@ -830,12 +832,13 @@ The full list of commands are:
 \begin{verbatim}
   Command    Description
   =======    ===========
+  autochanger test autochanger
   bsf        backspace file
   bsr        backspace record
+  bfill      fill tape using Bacula writes
   cap        list device capabilities
   clear      clear tape errors
   eod        go to end of Bacula data for append
-  test       General test Bacula tape functions
   eom        go to the physical end of medium
   fill       fill tape, write onto second volume
   unfill     read filled tape
@@ -845,15 +848,18 @@ The full list of commands are:
   label      write a Bacula label to the tape
   load       load a tape
   quit       quit btape
-  rd         read tape
+  rawfill    use write() to fill tape
   readlabel  read and print the Bacula tape label
   rectest    test record handling functions
   rewind     rewind the tape
-  scan       read tape block by block to EOT and report
+  scan       read() tape block by block to EOT and report
+  scanblocks Bacula read block by block to EOT and report
   status     print tape status
-  test       test a tape for compatibility with Bacula
+  test       General test Bacula tape functions
   weof       write an EOF on the tape
-  wr         write a single record of 2048 bytes
+  wr         write a single Bacula block
+  rr         read a single record
+  qfill      quick fill command
 \end{verbatim}
 \normalsize
 
@@ -1110,22 +1116,22 @@ you should never need to run dbcheck inspite of the
 recommendations given above, which are given so that users don't
 waste their time running dbcheck too often.
 
-\subsection*{regex}
+\subsection*{bregex}
 \label{regex}
-\index[general]{regex}
-\index[general]{program!regex}
-\addcontentsline{toc}{subsection}{regex}
+\index[general]{bregex}
+\index[general]{program!bregex}
+\addcontentsline{toc}{subsection}{bregex}
 
-{\bf regex} is a simple program that will allow you to test 
-regex expressions against a file of data. This can be useful
+{\bf bregex} is a simple program that will allow you to test 
+regular expressions against a file of data. This can be useful
 because the regex libraries on most systems differ, and in
 addition, regex expressions can be complicated.
 
-{\bf regex} is found in the src/tools directory and it is not
-normally installed. To run it, use:
+{\bf bregex} is found in the src/tools directory and it is 
+normally installed with your system binaries. To run it, use:
 
 \begin{verbatim}
-Usage: regex [-d debug_level] -f <data-file>
+Usage: bregex [-d debug_level] -f <data-file>
        -f          specify file of data to be matched
        -l          suppress line numbers
        -n          print lines that do not match
@@ -1147,6 +1153,40 @@ and you can suppress printing of line numbers with the -l option.
 This program can be useful for testing regex expressions to be 
 applied against a list of filenames.
 
+\subsection*{bwild}
+\label{wild}
+\index[general]{bwild}
+\index[general]{program!bwild}
+\addcontentsline{toc}{subsection}{bwild}
+
+{\bf bwild} is a simple program that will allow you to test 
+wild-card expressions against a file of data.
+
+{\bf bwild} is found in the src/tools directory and it is 
+normally installed with your system binaries. To run it, use:
+
+\begin{verbatim}
+Usage: bwild [-d debug_level] -f <data-file>
+       -f          specify file of data to be matched
+       -l          suppress line numbers
+       -n          print lines that do not match
+       -?          print this message.
+\end{verbatim}
+
+The \lt{}data-file\gt{} is a filename that contains lines
+of data to be matched (or not) against one or more patterns.
+When the program is run, it will prompt you for a wild-card
+pattern, then apply it one line at a time against
+the data in the file. Each line that matches will be printed 
+preceded by its line number.  You will then be prompted again  
+for another pattern.  
+
+Enter an empty line for a pattern to terminate the program. You
+can print only lines that do not match by using the -n option,
+and you can suppress printing of line numbers with the -l option.
+
+This program can be useful for testing wild expressions to be 
+applied against a list of filenames.
 
 \subsection*{testfind}
 \label{testfind}